02-16-2009
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..
9 More Discussions You Might Find Interesting
1. Solaris
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
2. Solaris
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
3. Solaris
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
4. Solaris
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
5. Infrastructure Monitoring
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. Infrastructure Monitoring
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
7. Infrastructure Monitoring
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
8. Infrastructure Monitoring
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
9. Solaris
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
LEARN ABOUT DEBIAN
net-snmp-config
net-snmp-config(1) Net-SNMP net-snmp-config(1)
NAME
net-snmp-config - returns information about installed net-snmp libraries and binaries
SYNOPSIS
net-snmp-config [OPTIONS]
DESCRIPTION
The net-snmp-config shell script is designed to retrieve the configuration information about the libraries and binaries dealing with the
Simple Network Management Protocol (SNMP), built from the net-snmp source package. The information is particularily useful for applications
that need to link against the SNMP libraries and hence must know about any other libraries that must be linked in as well.
OPTIONS
--version
displays the net-snmp version number
--indent-options
displays the indent options from the Coding Style
--debug-tokens
displays a example command line to search to source code for a list of available debug tokens
SNMP Setup commands:
--create-snmpv3-user [-ro] [-a authpass] [-x privpass] [-X DES|AES]
[-A MD5|SHA] [username]
These options produce the various compilation flags needed when building external SNMP applications:
--base-cflags
lists additional compilation flags needed for external applications (excludes -I. and extra developer warning flags, if any)
--cflags
lists additional compilation flags needed
--libs lists libraries needed for building applications
--agent-libs
lists libraries needed for building subagents
--netsnmp-libs
lists netsnmp specific libraries
--external-libs
lists libraries needed by netsnmp libs
--netsnmp-agent-libs
lists netsnmp specific agent libraries
--external-agent-libs lists libraries needed by netsnmp libs
Automated subagent building (produces an OUTPUTNAME binary file): [This feature has not been extensively tested, use at your own risk.]
--compile-subagent OUTPUTNAME [--norm] [--cflags flags]
[--ldflags flags] mibmodule1.c [...]]
--norm leave the generated .c file around to read.
--cflags flags
extra cflags to use (e.g. -I...).
--ldflags flags
extra ld flags to use (e.g. -L... -l...).
Details on how the net-nsmp package was compiled:
--configure-options
Display original configure arguments
--snmpd-module-list
Display the modules compiled into the agent
--prefix
Display the installation prefix
4.2 Berkeley Distribution 16 Nov 2006 net-snmp-config(1)