Problem compiling net-snmp-5.7.3 package on solaris 10

om prakash Paliwal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAMFnsDEHEyy_S-wr6KakXCRQiKWishpA7=oTKSXrcuk-iLRuWg@mail.gmail.com>
Hi ,

I am compiling net-snmp package on solaris machine below is the detail of
`uname -a`

SunOS <hostname> 5.10 Generic_147441-15 i86pc i386 i86pc

​below is the error i am having

: libnetsnmpmibs.la
/bin/bash ../libtool --mode=compile cc -I../include -I. -I../agent
-I../agent/mibgroup  -I../snmplib -I/usr/sfw/include -DNETSNMP_ENABLE_IPV6
-fast -xarch=generic -xO4 -Dsolaris2=solaris2 -c -o snmpd.lo snmpd.c
libtool: compile:  cc -I../include -I. -I../agent -I../agent/mibgroup
-I../snmplib -I/usr/sfw/include -DNETSNMP_ENABLE_IPV6 -fast -xarch=generic
-xO4 -Dsolaris2=solaris2 -c snmpd.c  -KPIC -DPIC -o .libs/snmpd.o
libtool: compile:  cc -I../include -I. -I../agent -I../agent/mibgroup
-I../snmplib -I/usr/sfw/include -DNETSNMP_ENABLE_IPV6 -fast -xarch=generic
-xO4 -Dsolaris2=solaris2 -c snmpd.c -o snmpd.o >/dev/null 2>&1
/bin/bash ../libtool --mode=link cc -DNETSNMP_ENABLE_IPV6 -fast
-xarch=generic -xO4 -Dsolaris2=solaris2 -o snmpd snmpd.lo -L/usr/sfw/lib
-R/usr/local/lib libnetsnmpagent.la libnetsnmpmibs.la ../snmplib/
libnetsnmp.la -lnsl -lsocket -lelf
libtool: link: cc -DNETSNMP_ENABLE_IPV6 -fast -xarch=generic -xO4
-Dsolaris2=solaris2 -o .libs/snmpd .libs/snmpd.o  -L/usr/sfw/lib
./.libs/libnetsnmpagent.so ./.libs/libnetsnmpmibs.so
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3/agent/.libs/libnetsnmpagent.so
-lkvm
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3/snmplib/.libs/libnetsnmp.so
-ladm ../snmplib/.libs/libnetsnmp.so -lrt -lkstat -lcrypto -lnsl -lsocket
-lelf  -R/usr/local/lib
ld: warning: file
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3/agent/.libs/libnetsnmpagent.so:
linked to ./.libs/libnetsnmpagent.so: attempted multiple inclusion of file
ld: warning: file ../snmplib/.libs/libnetsnmp.so: linked to
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3/snmplib/.libs/libnetsnmp.so:
attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
kd                                  ./.libs/libnetsnmpmibs.so
netsnmp_arch_interface_container_load ./.libs/libnetsnmpmibs.so
netsnmp_arch_interface_index_find   ./.libs/libnetsnmpmibs.so
netsnmp_arch_set_admin_status       ./.libs/libnetsnmpmibs.so
netsnmp_arch_interface_init         ./.libs/libnetsnmpmibs.so
ld: fatal: symbol referencing errors. No output written to .libs/snmpd
*** Error code 2
make: Fatal error: Command failed for target `snmpd'
Current working directory
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3/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'
Current working directory
/opt/open_source/OpenSource_Latest/TRUNK/R04.04.04.01/AMD/BUILD/net-snmp-5.7.3
*** Error code 1
make: Fatal error: Command failed for target `build'


Please help​


-- 

*Regards*
*Om Prakash*

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.