[hobbit] Solaris 10 Build error

T.J. Yang tj_yang at hotmail.com
Fri Aug 25 15:21:01 CEST 2006


I don't unsterstand the reason why it failed.
I didn't use gcc from sun to compile my 4.2.0.

Looks like change gcc version will help according to this thread.

http://support.bb4.com/archive/200507/msg00093.html


tj
>From: "Craig Cook" <craig at cookitservices.com>
>Reply-To: hobbit at hswn.dk
>To: hobbit at hswn.dk
>Subject: [hobbit] Solaris 10 Build error
>Date: Thu, 24 Aug 2006 22:10:54 -0500
>
>Speaking of Solaris 10 issues...   I have upgraded gcc and broke hobbit 
>(technically broke more than hobbit, but that is another story).  I have 
>done the ./mkheaders thing for the sunfreeware version of gcc.
>
>devbox:/export/home/craigc/hobbit-4.2.0# gcc -v
>Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.10/3.3.2/specs
>Configured with: ../configure --with-as=/usr/ccs/bin/as 
>--with-ld=/usr/ccs/bin/ld --disable-nls
>Thread model: posix
>gcc version 3.3.2
>devbox:/export/home/craigc/hobbit-4.2.0# env | grep LD
>LD_LIBRARY_PATH=/usr/local/ssl/lib:/usr/local/mysql/lib:/usr/local/samba/lib:/usr/local/lib:/usr/local/php/lib:/usr/local/BerkeleyDB.4.2/lib:/usr/sfw/lib:/usr/ccs/lib:/usr/lib:/usr/local/rrdtool/lib
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. 
>-I/export/home/craigc/hobbit-4.2.0/include -I/usr/local/include -I. 
>-I../include    -c -o md5.o md5.c
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. 
>-I/export/home/craigc/hobbit-4.2.0/include -I/usr/local/include -I. 
>-I../include    -c -o memory.o memory.c
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT  -DSunOS -I. 
>-I/export/home/craigc/hobbit-4.2.0/include -I/usr/local/include -I. 
>-I../include    -c -o misc.o misc.c
>In file included from /usr/include/sys/wait.h:24,
>                  from misc.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/sys/procset.h:24,
>                  from /usr/include/sys/wait.h:25,
>                  from misc.c:26:
>/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
>In file included from misc.c:26:
>/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
>In file included from misc.c:28:
>/usr/include/signal.h:111: error: parse error before "siginfo_t"
>/usr/include/signal.h:113: error: parse error before "siginfo_t"
>make[1]: *** [misc.o] Error 1
>make[1]: Leaving directory `/export/home/craigc/hobbit-4.2.0/lib'
>make: *** [lib-build] Error 2
>
>To be fair it is not just a 4.2 error...
>
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. 
>-I/export/home/craigc/hobbit/hobbit-4.1.2p1/include -I/usr/local/include 
>-I. -I../include    -c -o md5.o md5.c
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. 
>-I/export/home/craigc/hobbit/hobbit-4.1.2p1/include -I/usr/local/include 
>-I. -I../include    -c -o memory.o memory.c
>gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DSunOS -I. 
>-I/export/home/craigc/hobbit/hobbit-4.1.2p1/include -I/usr/local/include 
>-I. -I../include    -c -o misc.o misc.c
>In file included from /usr/include/sys/wait.h:24,
>                  from misc.c:27:
>/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/sys/procset.h:24,
>                  from /usr/include/sys/wait.h:25,
>                  from misc.c:26:
>/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
>In file included from misc.c:26:
>/usr/include/sys/wait.h:86: error: parse error before "siginfo_t"
>In file included from misc.c:28:
>/usr/include/signal.h:111: error: parse error before "siginfo_t"
>/usr/include/signal.h:113: error: parse error before "siginfo_t"
>make[1]: *** [misc.o] Error 1
>make[1]: Leaving directory `/export/home/craigc/hobbit/hobbit-4.1.2p1/lib'
>make: *** [lib-build] Error 2
>
>
>Any tips on how to fix it?
>
>Thanks
>
>Craig Cook
>--
>Systems Monitoring Consulting and Support Services
>http://www.cookitservices.com
>
>To unsubscribe from the hobbit list, send an e-mail to
>hobbit-unsubscribe at hswn.dk
>
>





More information about the Xymon mailing list