Net-SNMP-5.4.2.1 issue on Sun Solaris


 
Thread Tools Search this Thread
Operating Systems Solaris Net-SNMP-5.4.2.1 issue on Sun Solaris
# 1  
Old 02-16-2009
Data Net-SNMP-5.4.2.1 issue on Sun Solaris

Hi,

I am trying to compile the source code for Net-SNMP-5.4.2.1 using the gcc compiler-3.4.6 and 3.4.3 but I am getting the follwoing error with perl enabled:

/bin/sh ../libtool --mode=link gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -I/usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE -o snmpd snmpd.lo -L../snmplib/.libs -L../snmplib -L./.libs -L./helpers/.libs -L./helpers libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la ../snmplib/libnetsnmp.la -lelf -lnsl -lsocket -Wl,-E -R /usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE -L/usr/local/lib /usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc

gcc -g -O2 -Usolaris2 -Dsolaris2=solaris2 -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -DPERL_USE_SAFE_PUTENV -I/usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE -o .libs/snmpd .libs/snmpd.o -Wl,-E -L/usr/local/src/net-snmp/agent/.libs -L/usr/local/src/net-snmp/agent/helpers/.libs -L/usr/local/src/net-snmp/snmplib/.libs -L/usr/local/src/net-snmp/snmplib -L/usr/local/src/net-snmp/agent/helpers ./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so ./.libs/libnetsnmpmibs.so /usr/local/src/net-snmp/agent/helpers/.libs/libnetsnmphelpers.so /usr/local/src/net-snmp/agent/.libs/libnetsnmpagent.so -lkvm /usr/local/src/net-snmp/snmplib/.libs/libnetsnmp.so -lpicl -ladm ../snmplib/.libs/libnetsnmp.so -lkstat -lcrypto -lelf -L/usr/local/lib /usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/net-snmp/lib/perl5/5.8.8/sun4-solaris/CORE

./.libs/libnetsnmpmibs.so: undefined reference to `dlerror@SUNW_1.22'

./.libs/libnetsnmpmibs.so: undefined reference to `dlopen@SUNW_1.22'

./.libs/libnetsnmpmibs.so: undefined reference to `dlsym@SUNW_1.22'

./.libs/libnetsnmpmibs.so: undefined reference to `dlclose@SUNW_1.22'

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `snmpd'

Current working directory /usr/local/src/net-snmp/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'

Last edited by tisha; 02-16-2009 at 09:29 AM..
# 2  
Old 02-16-2009
Updates 3 and 4 of Solaris 10 presented numerous problems for me when I tried to compile net-snmp, and the net-snmp mailing list was no help. I was only able to get it to compile on Solaris 10 Update 6, the latest release.
# 3  
Old 02-17-2009
Power

Hi Seg,

Thanks a lot.
Can you telme how can I update from solaris 10 (update 4) to solaris 10 (update 6)?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Error occurred while making the net-snmp 5.4.4 on Solaris 5.10 version.

Hi all, Error occurred while making the net-snmp-5.4.4 on Solaris 5.10 version. Environment - Solaris 5.10-x86 - Net-SNMP-5.4.4.tar.gz - Path (/etc/profile) PATH=/usr/local/bin:$PATH export PATH LD_LIBRARY_PATHUSR=/usr/ccs/bin: export LD_LIBRARY_PATH Error01 - summary ***... (3 Replies)
Discussion started by: ziosnim
3 Replies

2. Infrastructure Monitoring

SNMP on Sun Solaris 5.8

hello, I have installer netsnmp on sun solaris 5.10, bur when I write this: /usr/local/bin/snmpwalk -v1 -c public localhost I have this error: ld.so.1: snmpwalk: fatal : libcrypto.so.0.9.8 : failed to open: no such file or directory can any one help me please... (7 Replies)
Discussion started by: lamou23
7 Replies

3. Infrastructure Monitoring

SNMP on Sun Solaris 5.8

hello, I have installed netsnmp-5.1.1-sol8-sparc-local under sun solaris 5.8, but when il write: snmpwalk -v1 -c public localhost memory I have not information about memory, il displays me: End of mib Can any one help me thanks (1 Reply)
Discussion started by: lamou23
1 Replies

4. Infrastructure Monitoring

net-snmp issue

When I run a script that polls a router I get the following error from net-snmp. I can not seem to find a straight answer. Could my mib files be corrupt? xxx-xxx:/etc/sma/snmp/mibs# perl /export/home/user/perl/test.pl Unlinked OID in SNMPv2-MIB: snmp ::= { mib-2 11 } Undefined identifier:... (2 Replies)
Discussion started by: mrlayance
2 Replies

5. Infrastructure Monitoring

net-snmp - restarting too quickly issue

on my sol10x86 10/08 box, i needed to remove the native snmp agent (sma) for net-snmp-5.4.2.1. once net-snmp was configured and installed, i reconfigured the appropriate files of smf and attempted to restart. service was put into maintenance mode: ... (1 Reply)
Discussion started by: pupp
1 Replies

6. Solaris

Net-SNMP issues Solaris 10

I'm unable to see any traps being sent from my Solaris 10 server using Net-snmp 5.4.2 Here is my snmp conf file. Please let me know if there are any syntax issues you might notice. cat /etc/sma/snmp/snmpd.conf ########################################################################### # #... (1 Reply)
Discussion started by: soupbone38
1 Replies

7. Solaris

Net-snmp issue in Solaris 8

Hi there, I know this is a common question, but I have not found a satsifactory solution yet, so pardon me for posting similar questions. My problem is the log /var/adm/messages is filling up with this entry every few minutes Please refer below. Oct 4 21:39:46 host last message repeated 3... (5 Replies)
Discussion started by: sundar63
5 Replies

8. Solaris

net-snmp on solaris 8

hello I am running solaris 8 sparc. I installed net-snmp 5.4.1 (compiled it from tar file). When I do snmpwalk from another server, I receive a partial list of OIDs then it stops and gives 'timeout. No response...' another snmpwalk will directly timeouts. I compiled again the binaries... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

9. Solaris

net-snmp-5.1.2 Solaris 9

All, I downloaded and installed the following net-snmp from the sourceforge.net website on a Solaris 9 server with the entire collection installed: net-snmp-5.1.2-SunOS_5.9_sun4u.tar.gz with no errors. I attempt to run snmpget and I get the following error: ld.so.1: snmpget: fatal:... (1 Reply)
Discussion started by: bubba112557
1 Replies
Login or Register to Ask a Question