[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
Tue Oct 21 16:52:24 UTC 2008
Hi Marc,
> As it is, debian makes it impossible to use libsnmp without being forced to
> also link against the system perl, which is a limitation which does not exist
> with the original package, it's strictly a problem in debian.
Not true. As soon as embedded perl support is enabled (and it's enabled by default since 5.4.0 IIRC)
and found usable by the configure script, the cflags are determined by running:
perl -MExtUtils::Embed -e ccopts
Even with a pristine 5.4.2, no Debian patches whatsoever, default configuration, the perl include path is
added to net-snmp-config:
./net-snmp-config --cflags
-g -O2 -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 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-char-subscripts -I. -I/usr/local/include
Removing the perl cflags altogether also would ask for trouble as you would loose the largefile config information.
Thanks,
Jochen
More information about the Pkg-net-snmp-devel
mailing list