Xymon Mailing List Archive search

Error compiling on AIX 5.2

list Neil D. ManTech Ctr Camp
Fri, 10 Feb 2006 13:53:11 -0500
Message-Id: <user-54cefd8f1dff@xymon.invalid>

Try this, another member suggested it for me.

 
Change the file lib/osdefs.h to have the following (because my install

complained that socklen_t and snprintf were already defined):

 
Line 21:

typedef int hobbit_socklen_t;

 
Line 25:

extern int hobbit_snprintf(char *str, size_t size, const char *format,

...);

 
--neil

 
ManTech

DeCA Operations Systems Administrator

(XXX) XXX-XXXX

user-22a6a1b96d9d@xymon.invalid

 
From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] Sent: Friday, February 10, 2006 1:43 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Error compiling on AIX 5.2

 
Hobbit folk: 
I am trying to compile the client on AIX 5.2 and I get this... 
# make CC="/usr/local/bin/gcc" CFLAGS="-O -D_REENTRANT -DAIX -I.
-I`pwd`/include -DCLIENTONLY=1" OSDEF="-DAIX" RPATHOPT="" PCREINCDIR=""
SSLFLAGS="" SSLINCDIR="" SSLLIBS="" NETLIBS="" BBTOPDIR="/opt/hobbit"
BBLOGDIR="" BBHOSTNAME="" BBHOSTIP="199.228.93.24" BBHOSTOS="" make -C
lib client

make[1]: Entering directory `/opt/hobbit/source/hobbit-4.1.2p1/lib' /usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
-I/opt/hobbit/source/hobbit-4.1.2p1/include -DCLIENTONLY=1 -I.
-I../include    -c -o sendmsg.o sendmsg.c

In file included from
/opt/hobbit/source/hobbit-4.1.2p1/include/libbbgen.h:24,                  from sendmsg.c:35: /opt/hobbit/source/hobbit-4.1.2p1/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 `/opt/hobbit/source/hobbit-4.1.2p1/lib' make: *** [lib-client] Error 2 
Is there a "cheap fix" for this? 
GLH