Hi All,
 
I tried to install net-snmp 5.2.1 version in a new machine SunFire V240 has OS Solaris 10, when I "make", I got the following error:
 
I compared the old machine which has the net-snmp 5.2.1 installed with the new one, base on the following error message, I found the modules is different
New:
$ cd /usr/include/sys
$ ls -ltr siginfo*
-rw-r--r--   1 root     bin        13507 Jan 21  2005 siginfo.h
$ ls -ltr signal.h
-rw-r--r--   1 root     bin         8794 Jan 21  2005 signal.h
$
Old:
-rw-r--r--   1 root     bin         8731 Jan  5  2000 signal.h
-rw-r--r--   1 root     bin        12673 Jan  5  2000 siginfo.h
 
Do we have any compatible snmp_alarm with the new version of signinfo.h and signal.h ?
 
Please advise.
 
Thanks !
 
Lan
 
 
 
/bin/sh ../libtool --mode=compile gcc -I../include -I.  -I../snmplib -g -O2 -Dsolaris2 -c -o snmp_alarm.lo snmp_alarm.c
rm -f .libs/snmp_alarm.lo
gcc -I../include -I. -I../snmplib -g -O2 -Dsolaris2 -c snmp_alarm.c  -fPIC -DPIC -o .libs/snmp_alarm.lo
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:26,
                 from snmp_alarm.c:24:
/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 snmp_alarm.c:24:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from snmp_alarm.c:24:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
snmp_alarm.c: In function `set_an_alarm':
snmp_alarm.c:350: warning: passing arg 2 of `signal' from incompatible pointer type
*** Error code 1
make: Fatal error: Command failed for target `snmp_alarm.lo'
Current working directory /home/snmp/netsnmp/net-snmp-5.2.1/snmplib
*** Error code 1
The following command caused the error:
if test "snmplib  agent apps man local mibs" != ""; then \
        it="snmplib  agent apps man local mibs" ; \
        for i in $it ; do \
                echo "making all in `pwd`/$i"; \
                ( cd $i ; make ) ; \
                if test $? != 0 ; then \
                        exit 1 ; \
                fi  \
        done \
fi
make: Fatal error: Command failed for target `subdirs'
$

Reply via email to