daemontools won't compile

2001-04-25 Thread Mike Jackson

Hi,
 Box is Mandrake 8.0 final, kernel 2.4.3-20mdk. I get the following
error when trying to compile daemontools. It also happened to me on a
Redhat 7.1 box. I think it's something gcc version 2.96 2731
related. Somebody please help me patch this file so it will compile.

This is the error I am receiving:

./compile tai64nlocal.c
tai64nlocal.c: In function `main':
tai64nlocal.c:58: warning: assignment makes pointer from integer without
a cast
tai64nlocal.c:59: dereferencing pointer to incomplete type
tai64nlocal.c:61: dereferencing pointer to incomplete type
tai64nlocal.c:63: dereferencing pointer to incomplete type
tai64nlocal.c:65: dereferencing pointer to incomplete type
tai64nlocal.c:67: dereferencing pointer to incomplete type
tai64nlocal.c:69: dereferencing pointer to incomplete type
make: *** [tai64nlocal.o] Error 1

Here are lines 59-69 from tai64nlocal.c
---
out(num,fmt_ulong(num,(unsigned long) (1900 + t-tm_year)));
out(-,1);
out(num,fmt_uint0(num,(unsigned int) (1 + t-tm_mon),2));
out(-,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_mday,2));
out( ,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_hour,2));
out(:,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_min,2));
out(:,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_sec,2));


Thanks,
Mike



Re: daemontools won't compile

2001-04-25 Thread David Talkington

-BEGIN PGP SIGNED MESSAGE-

Mike Jackson wrote:

Hi,
 Box is Mandrake 8.0 final, kernel 2.4.3-20mdk. I get the following
error when trying to compile daemontools. It also happened to me on a
Redhat 7.1 box. I think it's something gcc version 2.96 2731
related. Somebody please help me patch this file so it will compile.

Mr. Jackson - this apparently affects Linux 2.4.x kernels.  The fix
(also applicable to a similar error when compiling the clockspeed
package) is to change sys/time.h on line 2 of the problem file to
time.h.

Hope this helps. -d


- -- 
David Talkington
http://www.spotnet.org

PGP key: http://www.prairienet.org/~dtalk/dt000823.asc

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.8
Comment: Made with pgp4pine 1.75-6

iQEVAwUBOudWQ71ZYOtSwT+tAQFYUwgAgNlkV17/iP2v6H6EQO/FGkRC4/hsM1xv
U+j33OoWTzyDQZhpmrg2LGOVCP+SYZqTZIgIezTVYnCm92TfZ6G1T8AZYdEVZM1X
l4NQLB/ABa6QTA//V5StYyGyQ+ZilM2nOkhFdTDQwsePEghOEup2BjGybrldv9th
nkdez7E5CHJV9zuF5yigGlzLxpdomLrpRhNPusS8oEHAv7CESFp7GTXTquSz/V/K
IEF9Fmvn0revreiDN45kXNK8M2flOG6xFxtpVE+fRfwATVfglfO+G5F6LfPdxL9o
y4EWSC40QMBRE7VAvF7d/qoqzH9nX3cLqtIWmB5TDRIrNuwWw60P3w==
=JmOb
-END PGP SIGNATURE-