Menu

#103 netutils.c does not compile on aix4.1

open
nobody
netutils (2)
5
2002-01-26
2002-01-26
Anonymous
No

gcc -v
Reading specs from /usr/local/lib/gcc-lib/powerpc-ibm-aix4.1.4.0/2.95.3/specs
gcc version 2.95.3 20010315 (release)

netsaint-0.0.7b8 does compile fine..

but netsaint-plugins-1.2.9-4 won't:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/local/include -g -O2 -c netutils.c
netutils.c: In function `process_tcp_request2':
netutils.c:122: `fd_set' undeclared (first use in this function)
netutils.c:122: (Each undeclared identifier is reported only once
netutils.c:122: for each function it appears in.)
netutils.c:122: parse error before `readfds'
netutils.c:140: `readfds' undeclared (first use in this function)
netutils.c: In function `process_request':
netutils.c:191: `fd_set' undeclared (first use in this function)
netutils.c:191: parse error before `readfds'
netutils.c:209: `readfds' undeclared (first use in this function)
make[1]: *** [netutils.o] Error 1
make[1]: Leaving directory `/work/install/net/netsaint/netsaint-plugins-1.2.9-4/plugins'
make: *** [all-recursive] Error 1

finally it works with a hack:

add
#include <sys/select.h>
to netutils.c

regards,
mike

Discussion


Log in to post a comment.

MongoDB Logo MongoDB