Hi ,

After further observing the issue, I come to kn0w that the problem arise
while using "--with-openssl=/usr/sfw" argument in configure.

when this option is removed or --with-openssl=internal option is used it
compiles without any issue.

I used below two command to compile the package 5.7.3
./configure --with-openssl=/usr/sfw

make

compilation using above command fails

thanks



On Thu, Nov 5, 2015 at 12:46 PM, om prakash Paliwal <
omprakash.paliwa...@gmail.com> wrote:

> 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*
>



-- 

*Regards*
*Om Prakash*
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a 
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
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