Open djzort opened 7 years ago
Revisiting this with
# perlbrew version
/opt/perl5/bin/perlbrew - App::perlbrew/0.89
# which perl
/opt/perl5/perls/perl-5.32.0/bin/perl
# perl -v
This is perl 5, version 32, subversion 0 (v5.32.0) built for x86_64-linux-thread-multi
(with 1 registered patch, see perl -V for more detail)
The result is the same.
Whats strange is that its somehow managing to link against system perl
Warning: prerequisite NetSNMP::OID 5.02 not found.
Generating a Unix-style Makefile
Writing Makefile for NetSNMP::TrapReceiver
Writing MYMETA.yml and MYMETA.json
# make
cp TrapReceiver.pm blib/lib/NetSNMP/TrapReceiver.pm
AutoSplitting blib/lib/NetSNMP/TrapReceiver.pm (blib/lib/auto/NetSNMP/TrapReceiver)
Running Mkbootstrap for TrapReceiver ()
chmod 644 "TrapReceiver.bs"
"/opt/perl5/perls/perl-5.32.0/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- TrapReceiver.bs blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs 644
"/opt/perl5/perls/perl-5.32.0/bin/perl" "/opt/perl5/perls/perl-5.32.0/lib/5.32.0/ExtUtils/xsubpp" -prototypes -typemap '/opt/perl5/perls/perl-5.32.0/lib/5.32.0/ExtUtils/typemap' -typemap '/root/net-snmp-5.7.3/perl/TrapReceiver/typemap' TrapReceiver.xs > TrapReceiver.xsc
mv TrapReceiver.xsc TrapReceiver.c
cc -c -I. -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -g -O2 -fdebug-prefix-map=/home/lamby/temp/cdt.20200804161507.xrfcNaoyLK.ags.lamby-debian-stretch.net-snmp/net-snmp-5.7.3+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/x86_64-linux-gnu/perl/5.24/CORE -Wdate-time -D_FORTIFY_SOURCE=2 -I. -I/usr/include -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -DVERSION=\"5.0703\" -DXS_VERSION=\"5.0703\" -fPIC "-I/opt/perl5/perls/perl-5.32.0/lib/5.32.0/x86_64-linux-thread-multi/CORE" TrapReceiver.c
rm -f blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
LD_RUN_PATH="/usr/lib/x86_64-linux-gnu" cc -shared -O2 -L/usr/local/lib -fstack-protector-strong -Wl,-z,relro -Wl,-z,now TrapReceiver.o -o blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so \
-L/usr/lib/x86_64-linux-gnu -lnetsnmptrapd -lnetsnmpmibs -lnetsnmpagent -lnetsnmp \
chmod 755 blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
# ldd blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.so
linux-vdso.so.1 (0x00007ffcd87db000)
libnetsnmptrapd.so.30 => /usr/lib/x86_64-linux-gnu/libnetsnmptrapd.so.30 (0x00007fe95f12b000)
libnetsnmpmibs.so.30 => /usr/lib/x86_64-linux-gnu/libnetsnmpmibs.so.30 (0x00007fe95eca1000)
libnetsnmpagent.so.30 => /usr/lib/x86_64-linux-gnu/libnetsnmpagent.so.30 (0x00007fe95ea34000)
libnetsnmp.so.30 => /usr/lib/x86_64-linux-gnu/libnetsnmp.so.30 (0x00007fe95e752000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe95e3b3000)
libperl.so.5.24 => /usr/lib/x86_64-linux-gnu/libperl.so.5.24 (0x00007fe95dfbf000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe95ddbb000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fe95dab7000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fe95d89a000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fe95d662000)
libsensors.so.4 => /usr/lib/x86_64-linux-gnu/libsensors.so.4 (0x00007fe95d453000)
libpci.so.3 => /lib/x86_64-linux-gnu/libpci.so.3 (0x00007fe95d245000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007fe95d03b000)
libcrypto.so.1.0.2 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 (0x00007fe95cbd4000)
/lib64/ld-linux-x86-64.so.2 (0x00007fe95f53e000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fe95c9ba000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fe95c7a3000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007fe95f732000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007fe95c58b000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fe95c383000)
Then run:
I dont know enough about whats going on with XS modules and how perlbrew works to understand whats going on here. But it looks like the compilation is not happening 100% against the perlbrew'd perl.
I dont even know if i should be asking perlbrew for help here?