12 Oct
2005
12 Oct
'05
2:57 p.m.
Hi,
the client code compiled well under AIX 4.3.3. But under AIX 5.2 I got the following error:
gcc -O -D_REENTRANT -DAIX -I. -I/home/pallas/hobbit-4.1.2/include
-DCLIENTONLY=1 -I. -I../include -c -o sendmsg.o sendmsg.c
In file included from /home/pallas/hobbit-4.1.2/include/libbbgen.h:24,
from sendmsg.c:35:
/home/pallas/hobbit-4.1.2/lib/osdefs.h:21: error: conflicting types for
socklen_t' /usr/include/sys/socket.h:80: error: previous declaration of socklen_t'
sendmsg.c: In function sendtobbd': sendmsg.c:322: warning: passing arg 5 of getsockopt' from incompatible
pointer type
make[1]: *** [sendmsg.o] Error 1
make[1]: Leaving directory `/home/pallas/hobbit-4.1.2/lib'
make: *** [lib-client] Error 2
I edited the file hobbit-4.1.2/lib/osdefs.h and commented out the following lines:
/* #ifndef HAVE_SOCKLEN_T typedef int socklen_t; #endif */
After that the compilation worked.
Regards, Dirk