Compilation problems with solaris 10 x86


#1

I am trying to compile nagios on solaris 10 x86 and getting this error with ‘make all’

make all

cd ./base && make
make[1]: Entering directory /tmp/nagios-1.2/base' gcc -g -O2 -I/usr/local/inlcude -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_T S_ERRNO -I/usr/perl5/5.8.4/lib/i86pc-solaris-64int/CORE -DHAVE_CONFIG_H -DNSCO RE -c -o checks.o checks.c In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from ../common/config.h:144, from checks.c:26: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:292: error: parse error before '}' token /usr/include/sys/siginfo.h:294: error: parse error before '}' token /usr/include/sys/siginfo.h:390: error: parse error before "ctid_t" /usr/include/sys/siginfo.h:392: error: conflicting types for__proc’
/usr/include/sys/siginfo.h:261: error: previous declaration of __proc' /usr/include/sys/siginfo.h:398: error: conflicting types for__fault’
/usr/include/sys/siginfo.h:267: error: previous declaration of __fault' /usr/include/sys/siginfo.h:404: error: conflicting types for__file’
/usr/include/sys/siginfo.h:273: error: previous declaration of __file' /usr/include/sys/siginfo.h:420: error: conflicting types for__prof’
/usr/include/sys/siginfo.h:287: error: previous declaration of __prof' /usr/include/sys/siginfo.h:424: error: conflicting types for__rctl’
/usr/include/sys/siginfo.h:291: error: previous declaration of __rctl' /usr/include/sys/siginfo.h:426: error: parse error before '}' token /usr/include/sys/siginfo.h:428: error: parse error before '}' token /usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t" /usr/include/sys/siginfo.h:437: error: parse error before '}' token In file included from /usr/include/signal.h:26, from ../common/config.h:144, from checks.c:26: /usr/include/sys/signal.h:85: error: parse error before "siginfo_t" In file included from ../common/config.h:144, from checks.c:26: /usr/include/signal.h:111: error: parse error before "siginfo_t" /usr/include/signal.h:113: error: parse error before "siginfo_t" make[1]: *** [checks.o] Error 1 make[1]: Leaving directory/tmp/nagios-1.2/base’
make: *** [all] Error 2

./configure was fine and I made it to detect gd also. Anybody has any clues on this. Has anyone successfully compiled nagios on solaris 10 x86.

Thanks
amal


#2

i had problems compiling on solaris 8 (SPARC) but it was something with the networking libraries…
you could try with nagios 2… or see if sunfreeware has a precompiled package…

Luca