Re: How to cross compile NET-SNMP

Wolfgang Denk <[email protected]>
Newsgroups gmane.linux.debian.devel.embedded,gmane.network.net-snmp.user
Message-ID <[email protected]>
In message <[email protected]> you wrote:
>
> I have tried ELDK net-snmp binaries, i have added all missing shared libs,
> and i get:
> 
> / # snmpd -H
> snmpd: error in loading shared libraries
> /lib/libm.so.6: undefined symbol: __sim_disabled_exceptions
> 
> BTW, snmpd ask for libcrypto.so.0.9.8, but ELDK distributes
> libcrypto.so.0.9.7a, i have done a symlink as a workarround.

You must have done something  wrong,  like  mixing  different  binary
environments.  The  "snmpd"  as  shipping  with ELDK 3.1.1 references
"libcrypto.so.4"  which  -  in  the   ELDK   context,   resolves   as
libcrypto.so.0.9.7a:

-> cd /opt/eldk/ppc_8xx
-> ls -l usr/sbin/snmpd
-rwxr-xr-x  1 root root 40644 Mar  7  2005 usr/sbin/snmpd
-> ppc_8xx-ldd usr/sbin/snmpd
        libnetsnmpagent.so.5 => /opt/eldk/ppc_8xx/usr/lib/libnetsnmpagent.so.5
        libnetsnmpmibs.so.5 => /opt/eldk/ppc_8xx/usr/lib/libnetsnmpmibs.so.5
        libnetsnmphelpers.so.5 => /opt/eldk/ppc_8xx/usr/lib/libnetsnmphelpers.so.5
        libnsl.so.1 => /opt/eldk/ppc_8xx/lib/libnsl.so.1
        libnetsnmp.so.5 => /opt/eldk/ppc_8xx/usr/lib/libnetsnmp.so.5
        libdl.so.2 => /opt/eldk/ppc_8xx/lib/libdl.so.2
        libz.so.1 => /opt/eldk/ppc_8xx/usr/lib/libz.so.1
        libcrypto.so.4 => /opt/eldk/ppc_8xx/lib/libcrypto.so.4
        libm.so.6 => /opt/eldk/ppc_8xx/lib/libm.so.6
        libc.so.6 => /opt/eldk/ppc_8xx/lib/libc.so.6
        ld.so.1 => /opt/eldk/ppc_8xx/lib/ld.so.1
        libgssapi_krb5.so.2 => /opt/eldk/ppc_8xx/usr/kerberos/lib/libgssapi_krb5.so.2
        libkrb5.so.3 => /opt/eldk/ppc_8xx/usr/kerberos/lib/libkrb5.so.3
        libk5crypto.so.3 => /opt/eldk/ppc_8xx/usr/kerberos/lib/libk5crypto.so.3
        libcom_err.so.3 => /opt/eldk/ppc_8xx/usr/kerberos/lib/libcom_err.so.3
-> ls -l lib/libcrypto.so.4
lrwxrwxrwx  1 root root 19 Aug  1 03:12 lib/libcrypto.so.4 -> libcrypto.so.0.9.7a

Also, there are no unresolved symbols.

I guess you used the ELDK binary in a different  environment;  either
you install the ELDK binaries and libraries, or you have to recompile
the binary in *your* enironment from the sources.

> Should i just try to build ELDK for my target ?

That would probably be overkill.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
The universe is all a spin-off of the Big Bang.


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
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.