$ ldd /usr/local/sbin/snmpd

$ ls -la /usr/lib/libcr* /usr/local/bin/libcry

$ cat /etc/ldconfig.conf

Paste.

~BAS


On Tue, 14 Oct 2008, mike johnson wrote:

Hello,

I am trying to get net-snmp to install on a freebsd 4.4 server.  I know it is 
really old, but it is what I need to do.

Everything compiles just fine. It is just when I go to run snmpd that I get

/usr/libexec/ld-elf.so.1: Shared object "libcrypto.so.0.9.8" not found


The problem is that during the compile phase -L/usr/local/ssl/lib is used and 
so gcc finds libcrypto in this directory but this directory isn't in the normal 
ldconfig path and so it can't find it at run time.


/bin/sh ../libtool --mode=compile gcc -I../include -I. -I../agent 
-I../agent/mibgroup  -I../snmplib -I/usr/local/ssl/include -g -O2 
-DNETSNMP_STREAM_QUEUE_LEN=32 -Ufreebsd4 -Dfreebsd4=freebsd4 -c -o snmpd.lo 
snmpd.c
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib 
-I/usr/local/ssl/include -g -O2 -DNETSNMP_STREAM_QUEUE_LEN=32 -Ufreebsd4 
-Dfreebsd4=freebsd4 -c snmpd.c  -fPIC -DPIC -o .libs/snmpd.o

gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -I/usr/local/ssl/include 
-g -O2 -DNETSNMP_STREAM_QUEUE_LEN=32 -Ufreebsd4 -Dfreebsd4=freebsd4 -c snmpd.c -o snmpd.o 
>/dev/null 2>&1
/bin/sh ../libtool --mode=link gcc -g -O2 -DNETSNMP_STREAM_QUEUE_LEN=32 
-Ufreebsd4 -Dfreebsd4=freebsd4 -o snmpd snmpd.lo -L../snmplib/.libs 
-L../snmplib -L./.libs -L./helpers/.libs -L./helpers -L/usr/local/ssl/lib 
libnetsnmpagent.la helpers/libnetsnmphelpers.la libnetsnmpmibs.la 
../snmplib/libnetsnmp.la -lm

gcc -g -O2 -DNETSNMP_STREAM_QUEUE_LEN=32 -Ufreebsd4 -Dfreebsd4=freebsd4 -o 
.libs/snmpd .libs/snmpd.o  -L/usr/var/tmp/snmp/net-snmp-5.4.1/agent/.libs 
-L/usr/var/tmp/snmp/net-snmp-5.4.1/agent/helpers/.libs 
-L/usr/var/tmp/snmp/net-snmp-5.4.1/snmplib/.libs 
-L/usr/var/tmp/snmp/net-snmp-5.4.1/snmplib 
-L/usr/var/tmp/snmp/net-snmp-5.4.1/agent/helpers -L/usr/local/ssl/lib 
./.libs/libnetsnmpagent.so helpers/.libs/libnetsnmphelpers.so 
./.libs/libnetsnmpmibs.so 
/usr/var/tmp/snmp/net-snmp-5.4.1/agent/helpers/.libs/libnetsnmphelpers.so 
/usr/var/tmp/snmp/net-snmp-5.4.1/agent/.libs/libnetsnmpagent.so -lkvm 
/usr/var/tmp/snmp/net-snmp-5.4.1/snmplib/.libs/libnetsnmp.so -ldevstat 
../snmplib/.libs/libnetsnmp.so -lcrypto -lm   -Wl,--rpath 
-Wl,/usr/local/packages/test/lib
creating snmpd


I've tried adding --with-ldflags='-rpath /usr/local/ssl/lib' to the configure 
line of net-snmp and also

--with-openssl=/usr/local/ssl, but both result in the same error message.

Any help would be appreciated.

Thanks,



_________________________________________________________________
See how Windows Mobile brings your life together?at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/

l8*
        -lava (Brian A. Seklecki - Pittsburgh, PA, USA)
               http://www.spiritual-machines.org/

    "Guilty? Yeah. But he knows it. I mean, you're guilty.
    You just don't know it. So who's really in jail?"
    ~Maynard James Keenan
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Reply via email to