[Pkg-net-snmp-devel] Bug#502806: libsnmp-base: forcing perl headers in net-snmp-config --cflags breaks perl builds

Marc Lehmann debian-reportbug at plan9.de
Sun Oct 19 21:31:47 UTC 2008


Package: libsnmp-base
Version: 5.4.1~dfsg-8.1
Severity: critical
Justification: breaks unrelated software


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).

effects range from crashes during make test to subtle data corruption at runtime.

the fix is to simply not include /usr/lib/perl/5.10/CORE in the exported
header files - they are probably only required for building the librraies
themselves.

greetings,

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-etchnhalf.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

-- no debconf information





More information about the Pkg-net-snmp-devel mailing list