[hobbit] Installing on AIX 5.2

Whilding, Craig Craig_Whilding at mentor.com
Thu Mar 16 15:53:57 CET 2006


Many thanks, worked perfectly!

 

Craig

 

________________________________

From: Larry Barber [mailto:lebarber at gmail.com] 
Sent: 16 March 2006 14:29
To: hobbit at hswn.dk
Subject: Re: [hobbit] Installing on AIX 5.2

 

I had the same problem. You need to edit the osdefs.h file so that
socklen_t is an unsigned long, which is how it is defined in sockets.h. 

Thanks,
Larry Barber

On 3/16/06, Whilding, Craig <Craig_Whilding at mentor.com> wrote:

Im trying to install the latest snapshot of the Hobbit client on AIX. I
installed gnu make from the ucla aixpdslib site along with gcc 4.0.2.
The configure worked fine and created the makefile to install the client
with config on the server side. I changed the Makefile.AIX file to use
gcc as it couldn't find cc and encountered the following errors. Im not
very familiar with AIX and haven't been able to find one of our people
who is yet so was hoping someone here would have some experience.

 

# /usr/local/bin/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="/usr/local/hobbit" BBLOGDIR="" BBHOSTNAME=""
BBHOSTIP="137.202.205.54" BBHOSTOS="" LOCALCLIENT="no"
/usr/local/bin/make -C lib client

make[1]: Entering directory `/usr/local/hobbit/snapshot/lib'

/usr/local/bin/gcc -O -D_REENTRANT -DAIX -I.
-I/usr/local/hobbit/snapshot/include -DCLIENTONLY=1 -I. -I../include
-c -o sendmsg.o sendmsg.c

In file included from /usr/local/hobbit/snapshot/include/libbbgen.h:24,

                 from sendmsg.c:35:

/usr/local/hobbit/snapshot/include/../lib/osdefs.h:21: error:
conflicting types for 'socklen_t'

/usr/include/sys/socket.h:80: error: previous declaration of 'socklen_t'
was here

sendmsg.c: In function 'sendtobbd':

sendmsg.c:328: warning: passing argument 5 of 'getsockopt' from
incompatible pointer type

make[1]: *** [sendmsg.o] Error 1

make[1]: Leaving directory `/usr/local/hobbit/snapshot/lib'

make: *** [lib-client] Error 2

#

 

 

Hope someone can help.

 

Thanks,

 

Craig Whilding

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20060316/e1a1fdab/attachment.html>


More information about the Xymon mailing list