[Pkg-net-snmp-devel] Bug#502806: Bug#502806: libsnmp-base: forcing perl headers in net-snmp-config --cflags breaks perl builds
Jochen Friedrich
jochen at scram.de
Mon Oct 20 11:20:45 UTC 2008
Hi Marc,
> net-snmp-config --cflags outputs this:
>
> -DNETSNMP_ENABLE_IPV6 -g -O2 -g -Wall -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include
>
> But neither is /usr/lib/perl/5.10/CORE required to link against the
> net-snmp libraries, it also makes it impossible to build the SNMP perl
> module from cpan or other modules linking against the net-snmp libraries,
> as they get the header files from a different perl (the debian perl).
As libnetsnmpagent is compiled with embedded perl, the include path is required to link
against this library.
ldd /usr/lib/libnetsnmpagent.so.15.1.0
libperl.so.5.10 => /usr/lib/libperl.so.5.10 (0xb7e6c000)
Thanks,
Jochen
More information about the Pkg-net-snmp-devel
mailing list