Issue while building net-snmp-5.7.3 package on solaris 10

om prakash Paliwal <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAMFnsDFovdhRKRCCf3=3vT3OjiLm-3m1qhbeB2rY6QM3-3SqqA@mail.gmail.com>
Hi ,

While creating net-snmp-5.7.3 package on solaris i am observing some build
issue. Couldn't find relevent info on web so posting in mailing list.

below is the output of `uname -a` command
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'
​​
​Need help.​


​Thanks in advance​

-- 

*Regards*
*Om Prakash*

------------------------------------------------------------------------------

_______________________________________________
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.