Re: 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 <CAMFnsDGhrbtt4ErKJXfvfuwiB+VFi-L2vE0b7AjS2HzKYZ69-w@mail.gmail.com>
Hi,

After adding "if-mib/data_access/interface_solaris2" mib module the problem
reduced as shown. It may not be a correct way, so need suggestion on this.

used below configuration :-
./configure -v --with-openssl=/usr/sfw --with-mib-modules="host
disman/event-mib ucd-snmp/diskio smux agentx mibII/mta_sendmail
if-mib/data_access/interface_solaris2"


executed :
make

error : -

ld: warning: file
/opt/open_source/OpenSource_Latest/TRUNK/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/net-snmp-5.7.3/snmplib/.libs/libnetsnmp.so:
attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
kd                                  ./.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/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'

thanks in advance.

On Tue, Nov 17, 2015 at 9:54 AM, om prakash Paliwal <
[email protected]> wrote:

> I haven't tried that. I am compiling net-snmp package for the first time.
>
> I want to create Solaris package. so didn't installed it on the machine.
>
>
>
> On Mon, Nov 16, 2015 at 5:41 PM, Taylor, Ben <[email protected]> wrote:
>
>> Does it start?  Does ldd snmpd show the OpenSSL Luns?
>>
>> Sent from my iPhone
>>
>> On Nov 16, 2015, at 1:11 AM, om prakash Paliwal <
>> [email protected]> wrote:
>>
>> 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 <
>> [email protected]> 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
>> [email protected]
>> Please see the following page to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>
>
> --
>
> *Regards*
> *Om Prakash*
>



-- 

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