From: Andy Ford (andy.ford@telindus.co.uk)
Date: Tue Feb 01 2005 - 08:59:23 EST
Hi All
I have installed the net-snmp distribution successfully on a SunOS 5.8
Generic_117000-01 sun4u sparc SUNW,UltraAX-i2 box. Unfortunately, when I
run snmptrapd I get the following error...
> /usr/sbin/snmptrapd
ld.so.1: /usr/sbin/snmptrapd: fatal: relocation error:
file /usr/lib/libnetsnmpagent.so.5: symbol netsnmp_register_null:
referenced symbol not found
Killed
When I look for the symbol in the library I get the following
>nm /usr/lib/libnetsnmpagent.so.5 | grep netsnmp_register_null
[1115] | 0| 0|NOTY |GLOB |0 |UNDEF |
netsnmp_register_null
[1492] | 0| 0|NOTY |GLOB |0 |UNDEF |
netsnmp_register_null_context
... so the symbol is there!!
I have asked this same question in the net-snmp forum of which no-one
responded (I assumed they thought it was a Solaris bug!)
I can understand linker errors when the binary can't find the library it
needs (LD_LIBRARY_PATH or crle), but not when it exists and the error it
produces seems erroneous.
How can I resolve this issue!?
other info
------------
>crle
Default configuration file (/var/ld/ld.config) not found
Default Library Path (ELF): /usr/lib (system default)
Trusted Directories (ELF): /usr/lib/secure (system default)
>gcc -v
Reading specs
from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.3.2
>make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Thanks
Andy
-- perl -e "print qq^bIG VeRN ! ^^qq^#'#Yv#=<D+ ^" This e-mail is private and may be confidential and is for the intended recipient only. If misdirected, please notify us by telephone and confirm that it has been deleted from your system and any copies destroyed. If you are not the intended recipient you are strictly prohibited from using, printing, copying, distributing or disseminating this e-mail or any information contained in it. We use reasonable endeavours to virus scan all e-mails leaving the Company but no warranty is given that this e-mail and any attachments are virus free. You should undertake your own virus checking. The right to monitor e-mail communications through our network is reserved by us. _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:05 EDT