Hi. In <[EMAIL PROTECTED]>, on "Thu, 22 Feb 2001 10:01:43 -0500", with "Bug#87026: xcalendar-i18n: fails to build, sys/time.h changes", Ben Collins <[EMAIL PROTECTED]> wrote:
> Package: xcalendar-i18n > Severity: serious > > The recent libc6-dev has changes to be more standards compliant. Of > these changes, xcalendar-i18n falls into one of them. Using sys/time.h > can lead to things not defined, so time.h needs to be included aswell. > For a complete build log see: > > http://vore.debian.org/buildlogs/xcalendar-i18n Thanks for your report. In fact, xcalendar-i18n just uses "#include <X11/Xos.h>" for timeval definition, and that file does have "#include <sys/time.h>". relevant section is: /* * Get struct timeval */ #ifdef SYSV ... #else /* not SYSV */ #if defined(_POSIX_SOURCE) && defined(SVR4) /* need to omit _POSIX_SOURCE in order to get what we want in SVR4 */ #undef _POSIX_SOURCE #include <sys/time.h> #define _POSIX_SOURCE #elif defined(WIN32) ... #elif defined(AMOEBA) #include <time.h> #include <sys/time.h> #elif defined(MINIX) || defined(_SEQUENT_) || defined(Lynx) #include <time.h> #else #ifdef __QNX__ typedef unsigned long fd_mask; /* Make sure we get 256 bit select masks */ #define FD_SETSIZE 256 #include <sys/select.h> #include <sys/time.h> #include <time.h> #else #include <sys/time.h> #endif /* QNX */ #endif /* defined(_POSIX_SOURCE) && defined(SVR4) */ #endif /* SYSV */ I think this header file (Xos.h) should also be modified to add "#include <time.h>" for Linux in order to match the recent modification of libc6-dev. I don't reassign this bug report to xlib6g-dev because I wish to ask X-mentors first about this problem on debian-x list. I'll add a trick to avoid this problem in xcalendar-i18n, and will close this report, but if it is necessary, then I'll do reopen this bug report and reassign it to xlib6g-dev. Regards. -- Taketoshi Sano: <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>