Hello ,
Please advise on this error which I am getting In compilation of net-snmp 5.7.2 
on Solaris 10 . How do I fix this error ? 





libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup 
-I../../snmplib -I/usr/local/ssl/include -fno-strict-aliasing -g -O2 -Usolaris2 
-Dsolaris2=solaris2 -c kernel_sunos5.c  -fPIC -DPIC -o .libs/kernel_sunos5.o
In file included from /usr/include/kvm.h:14,
                 from kernel_sunos5.c:43:
/usr/include/sys/proc.h:367: error: syntax error before "klgrpset_t"
In file included from kernel_sunos5.c:43:
/usr/include/kvm.h:44: error: syntax error before '*' token
/usr/include/kvm.h:45: error: syntax error before '*' token
/usr/include/kvm.h:48: error: syntax error before "proc_t"
kernel_sunos5.c: In function `getKstatInt':
kernel_sunos5.c:308: warning: passing arg 2 of `kstat_lookup' discards 
qualifiers from pointer target type
kernel_sunos5.c:308: warning: passing arg 4 of `kstat_lookup' discards 
qualifiers from pointer target type
kernel_sunos5.c:321: warning: passing arg 2 of `kstat_data_lookup' discards 
qualifiers from pointer target type
kernel_sunos5.c: In function `getKstat':
kernel_sunos5.c:445: warning: passing arg 4 of `kstat_lookup' discards 
qualifiers from pointer target type
kernel_sunos5.c: In function `getKstatString':
kernel_sunos5.c:600: warning: passing arg 4 of `kstat_lookup' discards 
qualifiers from pointer target type
*** Error code 1
make: Fatal error: Command failed for target `kernel_sunos5.lo'
Current working directory /var/tmp/net-snmp-5.7.2/agent/mibgroup
*** Error code 1
The following command caused the error:
if test "helpers mibgroup" != ""; then \
        it="helpers mibgroup" ; \
        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'
Current working directory /var/tmp/net-snmp-5.7.2/agent
*** 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'
[root@tboxe1-dr:/var/tmp/net-snmp-5.7.2]#

Thanks .
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to