On 08 Aug 2001 16:09:04 +0200, torben fjerdingstad wrote:
> I could compile daemontools-0.70 on several platforms,
> but had no luck on Linux Mandrake 8.0:
> 
> ./compile tai64n.c
> ./load tai64n time.a unix.a byte.a 
> ./compile tai64nlocal.c
> tai64nlocal.c: In function `main':
> tai64nlocal.c:54: warning: assignment makes pointer from integer without a cast
> tai64nlocal.c:55: dereferencing pointer to incomplete type
> tai64nlocal.c:56: dereferencing pointer to incomplete type
> tai64nlocal.c:57: dereferencing pointer to incomplete type
> tai64nlocal.c:58: dereferencing pointer to incomplete type
> tai64nlocal.c:59: dereferencing pointer to incomplete type
> tai64nlocal.c:60: dereferencing pointer to incomplete type
> make: *** [tai64nlocal.o] Error 1
> 
> gcc -v says:
> Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.96/specs
> gcc version 2.96 20000731 (Linux-Mandrake 8.0 2.96-0.48mdk)
> 
> tai64nlocal, line 54-60 say:
>       out(num,fmt_ulong(num,1900 + t->tm_year));
>       out("-",1); out(num,fmt_uint0(num,1 + t->tm_mon,2));
>       out("-",1); out(num,fmt_uint0(num,t->tm_mday,2));
>       out(" ",1); out(num,fmt_uint0(num,t->tm_hour,2));
>       out(":",1); out(num,fmt_uint0(num,t->tm_min,2));
>       out(":",1); out(num,fmt_uint0(num,t->tm_sec,2));
>       out(".",1); out(num,fmt_uint0(num,nanosecs,9));
> 
> How to fix?
> 
> -- 
> Med venlig hilsen / Regards 
> Netdriftgruppen / Network Management Group
> UNI-C          
> 
> Tlf./Phone   +45 35 87 89 41   |  UNI-C
> Fax.         +45 35 87 89 90   |  Bygning 304
>                                |  DK-2800 Lyngby
> 

in tail64nlocal.c change 

<sys/time.h> to <time.h>

As stated in LWQ..


-- 
Jake Roersma
Network Engineer
Triton Technologies Inc.
(800)-837-4253/364-8761

Reply via email to