On Thu, May 31, 2001 at 01:35:13PM +0800, Derrick wrote:
> HI,
> While compiling, i encountered this error when I typed "make" after I 
> finished "make config"
> 
> make[1]: Entering directory `/home/ircadmin/ircu2.10/ircd'
> gcc -g -O3 -pipe -I../include -I../config -c userload.c -o userload.o
> userload.c: In function `update_load':
> userload.c:60: storage size of `tm_now' isn't known
> userload.c:60: storage size of `tm_now' isn't known
> userload.c:100: invalid type argument of `unary *'
> make[1]: *** [userload.o] Error 1
> make[1]: Leaving directory `/home/ircadmin/ircu2.10/ircd'

I've come across this several weeks ago, it seems to be a problem with the
header files of newer glibc versions (not sure about that though). I have
fixed it by editing userload.c, deleting the line "#include <sys/time.h>"
and instead using this:

#ifdef TIME_WITH_SYS_TIME
# include <time.h>
# include <sys/time.h>
#else /* ! TIME_WITH_SYS_TIME */
# ifdef TM_IN_SYS_TIME
#  include <sys/time.h>
# else /* ! TM_IN_SYS_TIME */
#  include <time.h>
# endif /* ! TM_IN_SYS_TIME */
#endif /* ! TIME_WITH_SYS_TIME */

Hope that helps,
Richard

Reply via email to