Summary: | bsd-games-2.17 compile error | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bruno Lustosa <bruno> |
Component: | Current packages | Assignee: | Gentoo Games <games> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | brodigan, tacvbo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Bruno Lustosa
2005-08-15 18:52:47 UTC
The problem appears to be with a confusion over the definition of struct utmpx in bits/utmpx.h. If you check the #if statement on line 70 in bits/utmpx.h it evaluates "#if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32" to true, and defines struct ut_tv to... 72 struct 73 { 74 __int32_t tv_sec; /* Seconds. */ 75 __int32_t tv_usec; /* Microseconds. */ 76 } ut_tv; /* Time entry was made. */ Instead of... 79 struct timeval ut_tv; /* Time entry was made. */ Furthermore, if you check the sizeofs of utmpx.ut_tv and struct timeval, you get 8 and 16 bytes respectively. dm/utmpentry.c appears to be thinking ut_tv is of type timeval, which in this case it is not. Now correct me if I'm wrong but I don't have multilib enabled, but __WORDSIZE_COMPAT32 is set, this confuses me. 64bit-only issue ... fixed in cvs now |