[hobbit] Error compiling on AIX 5.2
Hubbard, Greg L
greg.hubbard at eds.com
Fri Feb 10 20:29:33 CET 2006
You da man! That allowed the "make" to complete. Now on to testing...
Henrik -- a suggestion for the "bug fix" list....
GLH
________________________________
From: Camp, Neil D. (ManTech) CTR [mailto:neil.camp at deca.mil]
Sent: Friday, February 10, 2006 12:53 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] Error compiling on AIX 5.2
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
(804) 734-8353
neil.camp at deca.mil
________________________________
From: Hubbard, Greg L [mailto:greg.hubbard at eds.com]
Sent: Friday, February 10, 2006 1:43 PM
To: hobbit at hswn.dk
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060210/e386ecd3/attachment.html>
More information about the Xymon
mailing list