reassign 558488 src:net-snmp retitle 558488 net-snmp-config is not architecture-independent thanks
Hi, Thanks for reporting this! This bug also affects alpha, hppa, mips and mipsel. On Sun, Nov 29, 2009 at 04:48:39AM -0700, lam...@debian.org wrote: > Package: collectd > Version: 4.8.1-2 > Severity: serious > > There was an error while trying to autobuild your package: > > > Automatic build of collectd_4.8.1-2 on caballero by sbuild/ia64 98 > > Build started at 20091126-1607 > > [...] > > > ** Using build dependencies supplied by package: > > Build-Depends: debhelper (>= 5), dpkg-dev (>= 1.14.10), po-debconf, dpatch, > > bison, flex, autotools-dev, pkg-config, linux-libc-dev (>= 2.6.25-4) | > > linux-libc-dev (<< 2.6.25-1), libcurl4-gnutls-dev (>= 7.18.2-5) | > > libcurl4-gnutls-dev (<= 7.18.2-1) | libcurl3-gnutls-dev, > > libmysqlclient-dev, librrd-dev | librrd2-dev, libsensors-dev, liboping-dev > > (>= 0.3.3), libpcap0.8-dev | libpcap-dev, iptables-dev (>= 1.4.3.2-2), > > libupsclient1-dev, libperl-dev, iproute-dev [!alpha !amd64 !hppa !ia64 > > !ppc64 !mips !mipsel], libsnmp-dev | libsnmp9-dev, libvirt-dev (>= > > 0.4.0-6), libxml2-dev, libhal-dev, libopenipmi-dev, libglib2.0-dev, > > libnotify-dev, libesmtp-dev, libpq-dev, libdbi0-dev, libmemcached-dev, > > openjdk-6-jdk [!hppa], libganglia1-dev (>= 3), libgcrypt11-dev, libyajl-dev > > [...] > > > /bin/sh ../libtool --tag=CC --mode=compile ia64-linux-gnu-gcc > > -DHAVE_CONFIG_H -I. -DPREFIX='"/usr"' -DCONFIGFILE='"/etc/collectd.conf"' > > -DLOCALSTATEDIR='"/var"' -DPKGLOCALSTATEDIR='"/var/lib/collectd"' > > -DPIDFILE='"/var/run/collectd.pid"' -DPLUGINDIR='"/usr/lib/collectd"' > > -DPKGDATADIR='"/usr/share/collectd"' > > -I/build/buildd/collectd-4.8.1/debian/include > > -DLT_LAZY_OR_NOW='RTLD_LAZY|RTLD_GLOBAL' -UCONFIGFILE > > -DCONFIGFILE='"/etc/collectd/collectd.conf"' -Wall -Werror > > -DNETSNMP_ENABLE_IPV6 -g -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux > > -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe > > -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -Wall > > -g -O2 -MT snmp_la-snmp.lo -MD -MP -MF .deps/snmp_la-snmp.Tpo -c -o > > snmp_la-snmp.lo `test -f 'snmp.c' || echo './'`snmp.c > > rm: invalid argument: `' > > ia64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -DPREFIX=\"/usr\" > > -DCONFIGFILE=\"/etc/collectd.conf\" -DLOCALSTATEDIR=\"/var\" > > -DPKGLOCALSTATEDIR=\"/var/lib/collectd\" > > -DPIDFILE=\"/var/run/collectd.pid\" -DPLUGINDIR=\"/usr/lib/collectd\" > > -DPKGDATADIR=\"/usr/share/collectd\" > > -I/build/buildd/collectd-4.8.1/debian/include > > "-DLT_LAZY_OR_NOW=RTLD_LAZY|RTLD_GLOBAL" -UCONFIGFILE > > -DCONFIGFILE=\"/etc/collectd/collectd.conf\" -Wall -Werror > > -DNETSNMP_ENABLE_IPV6 -g -O2 -DNETSNMP_USE_INLINE -Ulinux -Dlinux=linux > > -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe > > -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.10/CORE -I. -I/usr/include -Wall > > -g -O2 -MT snmp_la-snmp.lo -MD -MP -MF .deps/snmp_la-snmp.Tpo -c snmp.c > > -fPIC -DPIC -o .libs/snmp_la-snmp.o > > cc1: warnings being treated as errors > > snmp.c:1: error: -fstack-protector not supported for this target […] > A full build log can be found at: > http://buildd.debian.org/build.php?arch=ia64&pkg=collectd&ver=4.8.1-2 collectd uses net-snmp-config(1)'s --cflags option to determine the flags used to build the snmp plugin. net-snmp-config(1) is a shell script included in the Arch: all package libsnmp-base. That script is created at net-snmp build time and includes the CFLAGS that are used to build net-snmp itself (and which are then returned by 'net-snmp-config --cflags'). Now, net-snmp's CFLAGS include the output of 'perl -MExtUtils::Embed -e ccopts' (which is required for the embedded perl stuff), which, in turn, includes '-fstack-protector' on *some* architectures (presumably, on those that support that flag). So, in order to fix that, net-snmp-config should be included in some Arch: any package, so it's going to be built on all architectures and, hence, returns the appropriate CFLAGS for each architecture. Thus, reassigning this bug to net-snmp. I suppose, that libsnmp-dev would be the appropriate package for that. There are no packages in unstable that build-depend (according to build-rdeps) on libsnmp-base (or libsnmp15), so moving net-snmp-config to libsnmp-dev should not affect any Debian packages. Still, imho, a NEWS.Debian entry should be added to notify any other users. Cheers, Sebastian -- Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/ Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
signature.asc
Description: Digital signature