Xymon Mailing List Archive search

Error compiling on AIX 5.2

list Greg L Hubbard
Fri, 10 Feb 2006 13:29:33 -0600
Message-Id: <user-160344c09641@xymon.invalid>

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:user-22a6a1b96d9d@xymon.invalid] 
	Sent: Friday, February 10, 2006 12:53 PM
	To: user-ae9b8668bcde@xymon.invalid
	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

	(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