ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Fwd: net-snmp addition problem


From: Stuart Hughes
Subject: Re: [Ltib] Fwd: net-snmp addition problem
Date: Wed, 28 Oct 2015 09:12:02 +0000
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20131118 Thunderbird/17.0.11

Hi Mohammad-Hosein,

This: ./snmpd: error while loading shared libraries: /lib/libnetsnmpagent.so.30: invalid ELF header
is showing that the build is pulling in shared libraries from the host.

The problem will be that the .spec file supplied is not correct.  You will need to look at some other .spec files.  Some of these have some in-line Perl to adjust the build files to stop this happening (dl-...sym I cannot remember).

Unfortunately I don't have time to help further, but if you look through the LTIB mailing list archive and the .spec files you should be able to figure this out.

Regards, Stuart

On 28/10/15 07:50, Mohammad-Hosein keshavarz wrote:
Hi,
i tried to add net-snmp support to Image with supplied ltib for freescale mpc8308 but by adding net-snmp in ltib --config the build will stop in compiling supplied net-snmp package.
so i changed the package with latest version from net-snmp website and changed the name to match previous version and also changed the .md5 file so that ltib can compile net-snmp. in this case it succeeded but when executing snmpd in target it gives error:

./snmpd: error while loading shared libraries: /lib/libnetsnmpagent.so.30: invalid ELF header

OR!

snmpd: error while loading shared libraries: libnetsnmpagent.so.30: cannot open shared object file: No such file or directory

then i cross-compiled the package in my host ubuntu14.04 with supplied cross toolchain and copied the library file to target to replace the bad file. result was another error:
libnetsnmpmibs.so.30: undefined symbol: usmDESPrivProtocol
so i copied all of net-snmp shared libraries and i faced another error:
snmpd: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /usr/lib/libnetsnmp.so.30)
snmpd: /lib/libc.so.6: version `GLIBC_2.7' not found (required by /usr/lib/libnetsnmp.so.30)
snmpd: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libnetsnmp.so.30)
what should i do? is there anyway to add net-snmp support without such odd actions?! if not what is the correct way?



_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/ltib


reply via email to

[Prev in Thread] Current Thread [Next in Thread]