Xymon Mailing List Archive search

Solaris 9 X86 compile errors

list Kenneth Langford
Tue, 11 Apr 2006 13:08:02 -0400
Message-Id: <user-6a6e9625af32@xymon.invalid>

Craig

 
I had to comment out the following in osdefs.h to make it work.

 
/* #ifndef HAVE_SOCKLEN_T

typedef int socklen_t;

#endif */

 
It is compiled and running great.

 
Thanks,

 
Ken,

 
-----Original Message-----
From: Whilding, Craig [mailto:user-9ce31bfa66c3@xymon.invalid] 
Sent: Tuesday, April 11, 2006 10:55 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Solaris 9 X86 compile errors 

 
Looks like a problem I had on AIX. Solution was to change the type of
socklen_t from int to unsigned long in the file osdef.h.

 
Craig

 
From: Langford, Kenneth [mailto:user-e8981d70691e@xymon.invalid] 
Sent: 11 April 2006 15:52
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Solaris 9 X86 compile errors 

 
Hi,

 
I am trying to install hobbit 4.1.2p1 for the first time on Solaris 9
9/04 s9x_u7wos_09 x86.  I have installed make-3.80-sol9-intel-local.gz
and gcc-3.3.2-sol9-intel-local from Sunfreeware.com.  It also has Sun
Studio 11 installed.

 
I am getting the following compile error.  Any idea what I did
wrong?????? 8-(

 
cisa6s01:(/etc/local/hobbit-4.1.2p1) # /usr/local/bin/gmake CC=3D"gcc"
CFLAGS=3D"-g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I`pwd`/include -DCLIENTONLY=3D1" O SDEF=3D"-DSunOS" RPATHOPT=3D""
PCREINCDIR=3D"" SSLFLAGS=3D"" = SSLINCDIR=3D"" SSLLIBS=3D""
NETLIBS=3D"-lresolv -lsoc ket -lnsl" BBTOPDIR=3D"/usr/local/hobbit"
BBLOGDIR=3D"" BBHOSTNAME=3D"" BBHOSTIP=3D"146.122.14.84" BBHOSTOS=3D ""
/usr/local/bin/gmake -C lib client

gmake[1]: Entering directory `/etc/local/hobbit-4.1.2p1/lib' gcc -g -O2
-Wall -Wno-unused -D_REENTRANT -DSunOS -I.
-I/etc/local/hobbit-4.1.2p1/include -DCLIENTON

LY=3D1 -I. -I../include    -c -o sendmsg.o sendmsg.c

In file included from /etc/local/hobbit-4.1.2p1/include/libbbgen.h:24,

                 from sendmsg.c:35:

/etc/local/hobbit-4.1.2p1/lib/osdefs.h:21: error: conflicting types for
`socklen_t'

/usr/include/sys/socket.h:61: error: previous declaration of `socklen_t'

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

gmake[1]: Leaving directory `/etc/local/hobbit-4.1.2p1/lib'

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

 
  Kenneth Langford