Net-SNMPでのmake時のエラーについて
はじめまして。kyosyouと申します。
Solaris(SunOS5.9)でNet-SNMPを使おうとしておりますが、
make時に下記エラーがでて頓挫しております。
google等で調べてみたのですが、類似事象が見つからず、ご質問させていただきます。
making all in /opt/net-snmp/net-snmp-5.4/snmplib
make[1]: Entering directory `/opt/net-snmp/net-snmp-5.4/snmplib'
/bin/sh ../libtool --mode=compile gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c -o snmp_client.lo snmp_client.c
gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2=solaris2 -c snmp_client.c -fPIC -DPIC -o .libs/snmp_client.o
In file included from snmp_client.c:73:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/param.h:181: warning: `NBBY' redefined
/usr/include/sys/select.h:59: warning: this is the location of the previous definition
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91,
from /usr/include/sys/time.h:419,
from /usr/include/sys/select.h:20,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284,
from /usr/include/sys/wait.h:20,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17,
from snmp_client.c:47:
/usr/include/sys/siginfo.h:74: parse error before `pthread_attr_t'
/usr/include/sys/siginfo.h:74: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:76: parse error before `}'
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/time.h:91,
from /usr/include/sys/time.h:419,
from /usr/include/sys/select.h:20,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/sys/types.h:284,
from /usr/include/sys/wait.h:20,
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17,
from snmp_client.c:47:
/usr/include/sys/siginfo.h:284: parse error before `int32_t'
/usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:284: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:286: parse error before `}'
/usr/include/sys/siginfo.h:286: warning: data definition has no type or storage class
/usr/include/sys/siginfo.h:288: parse error before `}'
/usr/include/sys/siginfo.h:288: warning: data definition has no type or storage class
/usr/include/sys/siginfo.h:415: parse error before `int32_t'
/usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:415: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:416: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:285: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:418: parse error before `}'
/usr/include/sys/siginfo.h:418: warning: data definition has no type or storage class
/usr/include/sys/siginfo.h:420: parse error before `}'
/usr/include/sys/siginfo.h:420: warning: data definition has no type or storage class
/usr/include/sys/siginfo.h:424: parse error before `k_siginfo_t'
/usr/include/sys/siginfo.h:424: warning: no semicolon at end of struct or union
/usr/include/sys/siginfo.h:428: parse error before `}'
/usr/include/sys/siginfo.h:428: warning: data definition has no type or storage class
In file included from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2/include/stdlib.h:17,
from snmp_client.c:47:
/usr/include/sys/wait.h:90: parse error before `siginfo_t'
make[1]: *** [snmp_client.lo] Error 1
make[1]: Leaving directory `/opt/net-snmp/net-snmp-5.4/snmplib'
make: *** [subdirs] Error 1
お分かりの方がいらっしゃいましたらよろしくお願い致します。
お礼
皆様、有難うございます。 お陰さまで理解できました。