Re: Failed Compile From Source on Debian 10 i386
John Bize <[email protected]> Thu, 13 May 2021 15:30:21 -0400
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Many months ago, I tried to get a Debian 10 backport of net-snmp 5.9. Unfortunately, there was zero interest. Have you tried using the ldconfig tool, for recreating the dynamic linker cache, printing it, etc? Based on what you have, that is what I would look at next. (and LD_LIBRARY_PATH too) Good luck, John On 13-May-2021 2:43 PM, Dachshund Digital wrote: > Attempted to compile from service net-snmp-5.9. I have done this > before on Raspberry Pi OS (Debian 10 buster) without issue, but > attempting to compile on Debian 10 buster on i386 hardware have hit a > surprising error. Several shared libraries are not found/loading. > Details below. > > # apt remove --purge snmp snmpd > Building dependency tree > Reading state information... Done > Package 'snmp' is not installed, so not removed > Package 'snmpd' is not installed, so not removed > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > > # cd /tmp > # wget > https://sourceforge.net/projects/net-snmp/files/net-snmp/5.9/net-snmp-5.9.tar.gz/download > -O net-snmp-5.9.tar.gz > # tar -zxvf net-snmp-5.9.tar.gz > # cd netsnmp-5.9 > # ./configure > Default version of SNMP to use (3):1 > System Contact Information(@@no.where): [email protected] > System Location (Unknown): Dachshund Digital Studios > Location to write logfile (/var/log/snmpd.log): > Location to write persistent information (/var/net-snmp): > > --------------------------------------------------------- > Net-SNMP configuration summary: > --------------------------------------------------------- > > SNMP Versions Supported: 1 2c 3 > Building for: linux > Net-SNMP Version: 5.9 > Network transport support: Callback Unix Alias TCP UDP TCPIPv6 > UDPIPv6 IPv4Base SocketBase TCPBase UDPIPv4Base UDPBase IPBase IPv6Base > SNMPv3 Security Modules: usm > Agent MIB code: default_modules => snmpv3mibs mibII > ucd_snmp notification notification-log-mib target agent_mibs agentx > disman/event disman/schedule utilities host > MYSQL Trap Logging: unavailable > Embedded Perl support: enabled > SNMP Perl modules: building -- embeddable > SNMP Python modules: disabled > Crypto support from: internal > Authentication support: MD5 SHA1 > Encryption support: DES AES AES128 > Local DNSSEC validation: disabled > > --------------------------------------------------------- > > # make > (No Errors) > > # make install > (No Errors) > > # /usr/local/sbin/snmpd > /usr/local/sbin/snmpd: error while loading shared libraries: > libnetsnmpagent.so.40: cannot open shared object file: No such file or > directory > > # ldd /usr/local/sbin/snmpd > linux-gate.so.1 (0xb7f4a000) > libnetsnmpagent.so.40 => not found > libnetsnmpmibs.so.40 => not found > libnetsnmp.so.40 => not found > libperl.so.5.28 => /usr/lib/i386-linux-gnu/libperl.so.5.28 > (0xb7bd4000) > libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb7bce000) > libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 > (0xb7bad000) > libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb79cf000) > libcrypt.so.1 => /lib/i386-linux-gnu/libcrypt.so.1 (0xb799c000) > libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb7896000) > /lib/ld-linux.so.2 (0xb7f4c000) > > The interesting thing is, the libraries of note exist. > > # find /usr | grep libnetsnmp*.so.40 > /usr/local/lib/libnetsnmp.so.40 > /usr/local/lib/libnetsnmp.so.40.0.0 > /usr/local/lib/libnetsnmp.so.40.1.0 > > # ls -l /usr/local/lib/libnet* > > -rw-r--r-- 1 root staff 3552392 May 13 18:25 /usr/local/lib/libnetsnmp.a > -rw-r--r-- 1 root staff 2377460 May 13 18:26 > /usr/local/lib/libnetsnmpagent.a > -rwxr-xr-x 1 root staff 1101 May 13 18:26 > /usr/local/lib/libnetsnmpagent.la > lrwxrwxrwx 1 root staff 25 May 13 18:26 > /usr/local/lib/libnetsnmpagent.so -> libnetsnmpagent.so.40.0.0 > lrwxrwxrwx 1 root staff 25 May 13 18:26 > /usr/local/lib/libnetsnmpagent.so.40 -> libnetsnmpagent.so.40.1.0 > -rwxr-xr-x 1 root staff 1519640 May 13 18:26 > /usr/local/lib/libnetsnmpagent.so.40.0.0 > -rwxr-xr-x 1 root staff 1518808 May 13 16:22 > /usr/local/lib/libnetsnmpagent.so.40.1.0 > -rw-r--r-- 1 root staff 1940 May 13 18:26 > /usr/local/lib/libnetsnmphelpers.a > -rwxr-xr-x 1 root staff 990 May 13 18:26 > /usr/local/lib/libnetsnmphelpers.la > lrwxrwxrwx 1 root staff 27 May 13 18:26 > /usr/local/lib/libnetsnmphelpers.so -> libnetsnmphelpers.so.40.0.0 > lrwxrwxrwx 1 root staff 27 May 13 18:26 > /usr/local/lib/libnetsnmphelpers.so.40 -> libnetsnmphelpers.so.40.1.0 > -rwxr-xr-x 1 root staff 15512 May 13 18:26 > /usr/local/lib/libnetsnmphelpers.so.40.0.0 > -rwxr-xr-x 1 root staff 15520 May 13 16:22 > /usr/local/lib/libnetsnmphelpers.so.40.1.0 > -rwxr-xr-x 1 root staff 945 May 13 18:25 /usr/local/lib/libnetsnmp.la > -rw-r--r-- 1 root staff 7420952 May 13 18:26 > /usr/local/lib/libnetsnmpmibs.a > -rwxr-xr-x 1 root staff 1128 May 13 18:26 > /usr/local/lib/libnetsnmpmibs.la > lrwxrwxrwx 1 root staff 24 May 13 18:26 > /usr/local/lib/libnetsnmpmibs.so -> libnetsnmpmibs.so.40.0.0 > lrwxrwxrwx 1 root staff 24 May 13 18:26 > /usr/local/lib/libnetsnmpmibs.so.40 -> libnetsnmpmibs.so.40.1.0 > -rwxr-xr-x 1 root staff 4517860 May 13 18:26 > /usr/local/lib/libnetsnmpmibs.so.40.0.0 > -rwxr-xr-x 1 root staff 4518292 May 13 16:22 > /usr/local/lib/libnetsnmpmibs.so.40.1.0 > lrwxrwxrwx 1 root staff 20 May 13 18:25 > /usr/local/lib/libnetsnmp.so -> libnetsnmp.so.40.0.0 > lrwxrwxrwx 1 root staff 20 May 13 18:25 > /usr/local/lib/libnetsnmp.so.40 -> libnetsnmp.so.40.1.0 > -rwxr-xr-x 1 root staff 2453308 May 13 18:25 > /usr/local/lib/libnetsnmp.so.40.0.0 > -rwxr-xr-x 1 root staff 2453580 May 13 16:22 > /usr/local/lib/libnetsnmp.so.40.1.0 > -rw-r--r-- 1 root staff 171400 May 13 18:26 > /usr/local/lib/libnetsnmptrapd.a > -rwxr-xr-x 1 root staff 1168 May 13 18:26 > /usr/local/lib/libnetsnmptrapd.la > lrwxrwxrwx 1 root staff 25 May 13 18:26 > /usr/local/lib/libnetsnmptrapd.so -> libnetsnmptrapd.so.40.0.0 > lrwxrwxrwx 1 root staff 25 May 13 18:26 > /usr/local/lib/libnetsnmptrapd.so.40 -> libnetsnmptrapd.so.40.1.0 > -rwxr-xr-x 1 root staff 136180 May 13 18:26 > /usr/local/lib/libnetsnmptrapd.so.40.0.0 > -rwxr-xr-x 1 root staff 135936 May 13 16:22 > /usr/local/lib/libnetsnmptrapd.so.40.1.0 > > So I checked the library configuration... > > # ls -l /etc/ld.so.conf.d > total 12 > -rw-r--r-- 1 root root 36 Jun 25 2018 fakeroot-i386-linux-gnu.conf > -rw-r--r-- 1 root root 168 May 1 2019 i386-linux-gnu.conf > -rw-r--r-- 1 root root 44 Mar 20 2016 libc.conf > > # cat /etc/ld.so.conf.d/libc.conf > # libc default configuration > /usr/local/lib > > So why are the libraries not loading? Or being found by the snmpd > process? > > > > > _______________________________________________ > 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 _______________________________________________ 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