All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] Problem using net-snmp and Buildroot
Date: Thu, 26 Nov 2009 15:41:22 +0100	[thread overview]
Message-ID: <87tywh8i25.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <4B0E5618.4010605@dimacosystems.com> (Luca Altobelli's message of "Thu\, 26 Nov 2009 11\:19\:04 +0100")

>>>>> "Luca" == Luca Altobelli <LUCA.ALTOBELLI@dimacosystems.com> writes:

Hi,

 Luca> Dear Peter,
 Luca> following your istructions:
 Luca> dpkg -l \*snmp\*|grep ii
 Luca> ii  libsnmp-base                               5.4.1~dfsg-12ubuntu3
 Luca> SNMP (Simple Network Management Protocol) MI
 Luca> ii  libsnmp15                                   5.4.1~dfsg-12ubuntu3
 Luca> SNMP (Simple Network Management Protocol) li

 Luca> mounting the rootfs.i486.ext2 (used 2009.11-rc1 and net-snmp 5.5):
 Luca> # snmpd -v
 Luca> snmpd: can't load library 'libcrypto.so.0.9.8'
 Luca> that I found in the host-lib directory , while in the  target-lib  I
 Luca> have libcrypt-0.9.30.1.so.

You should also have a libcrypto on the target. E.G. with the config you
posted I have:

file /tmp/br/target/usr/lib/libcrypto.so.0.9.8                      ~
/tmp/br/target/usr/lib/libcrypto.so.0.9.8: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

If not, it sounds like something goes wrong with the openssl compilation
and something gets confused about host/target.

I haven't been able to reproduce it with your config, but I'm on a
x86-64 host, so that might be why - Sorry, I don't have any 32bit
PCs any more.

sudo mount -o loop,rw /tmp/br/images/rootfs.i486.ext2 /tmp/blah 
sudo chroot /tmp/blah /bin/sh
/ # snmpd -v

NET-SNMP version:  5.5
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders at lists.sourceforge.net

 Luca> I also asked in the uclibc mailing list and Carmelo Amoroso
 Luca> replied: "[..]it seems that you are not using uClibc, instead you
 Luca> are linking against glibc".

Indeed.

-- 
Bye, Peter Korsgaard

  parent reply	other threads:[~2009-11-26 14:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-24 10:45 [Buildroot] Problem using net-snmp and Buildroot Luca Altobelli
2009-11-25 10:11 ` Peter Korsgaard
     [not found]   ` <4B0D5435.4090002@dimacosystems.com>
2009-11-25 16:40     ` Peter Korsgaard
     [not found]       ` <4B0E5618.4010605@dimacosystems.com>
2009-11-26 14:41         ` Peter Korsgaard [this message]
2009-11-26 15:27           ` Michael S. Zick
2009-11-26 15:34             ` Peter Korsgaard
     [not found]               ` <200911261004.40246.minimod@morethan.org>
2009-11-26 16:12                 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tywh8i25.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.