[oe-issues] [Bug 1533] util-linux 2.12r compile error

bugzilla-daemon at tinman.treke.net bugzilla-daemon at tinman.treke.net
Wed Nov 15 22:00:13 UTC 2006


http://bugs.openembedded.org/show_bug.cgi?id=1533


gerwin at vanderkruis.be changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #6 from gerwin at vanderkruis.be  2006-11-15 14:00 -------
You need to apply the patch furthermore you need to update the cmos.c file :

You could that with this patch :

+--- util-linux-2.12d/hwclock/cmos.c.orig       2004-09-17 15:26:29.521524328
+0000
++++ util-linux-2.12d/hwclock/cmos.c    2004-09-17 15:26:57.085333992 +0000
+@@ -46,11 +46,16 @@
+ 
+ #include <unistd.h>           /* for geteuid() */
+ #include <fcntl.h>            /* for O_RDWR */
++#include <linux/version.h>
+ 
+ #include "nls.h"
+ 
+ #if defined(__i386__)
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
+ #include <asm/io.h>           /* for inb, outb */
++#else
++#include <sys/io.h>           /* for inb, outb */
++#endif
+ #elif defined(__alpha__)
+ /* <asm/io.h> fails to compile, probably because of u8 etc */
+ extern unsigned int     inb(unsigned long port);
+ 


-- 
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the Openembedded-issues mailing list