Bug#634538: tcpreplay: FTBFS: configure: error: Unable to find matching library for header file in /usr
On Wed, Mar 14, 2012 at 06:44:39PM +0100, gregor herrmann wrote: On Tue, 19 Jul 2011 08:30:51 +0200, Lucas Nussbaum wrote: Source: tcpreplay Version: 3.4.3-2 Severity: serious Tags: wheezy sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20110718 qa-ftbfs Justification: FTBFS on amd64 During a rebuild of all packages in sid, your package failed to build on amd64. Attached is a debdiff based on the Ubuntu patch that makes the package build. But: % lintian -F tcpreplay_3.4.3-2.1_amd64.changes E: tcpreplay: embedded-library usr/bin/tcpbridge: libpcap E: tcpreplay: embedded-library usr/bin/tcpprep: libpcap E: tcpreplay: embedded-library usr/bin/tcpreplay: libpcap E: tcpreplay: embedded-library usr/bin/tcpreplay-edit: libpcap E: tcpreplay: embedded-library usr/bin/tcprewrite: libpcap Fixed and build tested (once updated for tcpreplay 3.4.4), with configure.ac modification and call of --enable-dynamic-link However, as a autoconf newbie, I didn't understood why I had to hardcode libpcap.so instead of lipbcap${shrext_cmds}. -- Simon Paillard --- a/configure.ac +++ b/configure.ac @@ -354,6 +354,8 @@ for testdir in $trypcapdir /usr/local /opt/local /usr /wpdpack ; do if test $dynamic_link = yes; then if test -f ${testdir}/lib64/libpcap${shrext_cmds} ; then LPCAPLIB=-L${testdir}/lib64 -lpcap +elif test -f ${testdir}/lib/$multiarch/libpcap.so ; then +LPCAPLIB=-L${testdir}/lib/$multiarch -lpcap elif test -f ${testdir}/lib/libpcap${shrext_cmds} ; then LPCAPLIB=-L${testdir}/lib -lpcap else --- a/debian/rules +++ b/debian/rules @@ -25,6 +25,7 @@ config.status: configure ./configure --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ --enable-debug \ + --enable-dynamic-link \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info
Bug#634538: tcpreplay: FTBFS: configure: error: Unable to find matching library for header file in /usr
On Tue, 19 Jul 2011 08:30:51 +0200, Lucas Nussbaum wrote: Source: tcpreplay Version: 3.4.3-2 Severity: serious Tags: wheezy sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20110718 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Attached is a debdiff based on the Ubuntu patch that makes the package build. But: % lintian -F tcpreplay_3.4.3-2.1_amd64.changes E: tcpreplay: embedded-library usr/bin/tcpbridge: libpcap E: tcpreplay: embedded-library usr/bin/tcpprep: libpcap E: tcpreplay: embedded-library usr/bin/tcpreplay: libpcap E: tcpreplay: embedded-library usr/bin/tcpreplay-edit: libpcap E: tcpreplay: embedded-library usr/bin/tcprewrite: libpcap Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT SPI, fellow of the Free Software Foundation Europe `- diff -u tcpreplay-3.4.3/debian/changelog tcpreplay-3.4.3/debian/changelog --- tcpreplay-3.4.3/debian/changelog +++ tcpreplay-3.4.3/debian/changelog @@ -1,3 +1,16 @@ +tcpreplay (3.4.3-2.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Fix FTBFS: configure: error: Unable to find matching library for +header file in /usr: +- extrace the part of the Ubuntu patch from Matthias Klose that tells + configure.ac about the pcap multiarch dir (LP: #832912), and build + depend on dpkg-dev (= 1.16.0) +- use dh-autoreconf in debian/rules, update build dependencies +(Closes: #634538) + + -- gregor herrmann gre...@debian.org Wed, 14 Mar 2012 18:00:49 +0100 + tcpreplay (3.4.3-2) unstable; urgency=low * debian/compat raised to 5 like the dependency in 3.4.3-1 diff -u tcpreplay-3.4.3/debian/rules tcpreplay-3.4.3/debian/rules --- tcpreplay-3.4.3/debian/rules +++ tcpreplay-3.4.3/debian/rules @@ -20,6 +20,7 @@ config.status: configure dh_testdir + dh_autoreconf # Add here commands to configure the package. ./configure --host=$(DEB_HOST_GNU_TYPE) \ --build=$(DEB_BUILD_GNU_TYPE) \ @@ -46,11 +47,7 @@ # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean - -test -r /usr/share/misc/config.sub \ - cp -f /usr/share/misc/config.sub config.sub - -test -r /usr/share/misc/config.guess \ - cp -f /usr/share/misc/config.guess config.guess - + dh_autoreconf_clean dh_clean diff -u tcpreplay-3.4.3/debian/control tcpreplay-3.4.3/debian/control --- tcpreplay-3.4.3/debian/control +++ tcpreplay-3.4.3/debian/control @@ -2,7 +2,7 @@ Section: net Priority: optional Maintainer: Noèl Köthe n...@debian.org -Build-Depends: debhelper (= 5.0.0), libpcap0.8-dev, tcpdump, autogen, autotools-dev +Build-Depends: debhelper (= 5.0.0), libpcap0.8-dev, tcpdump, autogen, dh-autoreconf, dpkg-dev (= 1.16.0) Standards-Version: 3.8.2 Homepage: http://tcpreplay.synfin.net/ only in patch2: unchanged: --- tcpreplay-3.4.3.orig/configure.ac +++ tcpreplay-3.4.3/configure.ac @@ -38,6 +38,7 @@ AC_SUBST(host) AC_SUBST(build) AC_SUBST(target) +multiarch=$(dpkg-architecture -qDEB_HOST_MULTIARCH) have_cygwin=no AC_MSG_CHECKING([for cygwin development environment]) @@ -359,6 +360,8 @@ fi elif test -f ${testdir}/lib64/libpcap.${libext} ; then LPCAPLIB=${testdir}/lib64/libpcap.${libext} +elif test -f ${testdir}/lib/$multiarch/libpcap.${libext} ; then +LPCAPLIB=${testdir}/lib/$multiarch/libpcap.${libext} elif test -f ${testdir}/lib/libpcap.${libext} ; then LPCAPLIB=${testdir}/lib/libpcap.${libext} elif test -f ${testdir}/lib/libwpcap.${libext} ; then signature.asc Description: Digital signature
Bug#634538: tcpreplay: FTBFS: configure: error: Unable to find matching library for header file in /usr
Source: tcpreplay Version: 3.4.3-2 Severity: serious Tags: wheezy sid User: debian...@lists.debian.org Usertags: qa-ftbfs-20110718 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part: debian/rules build dh_testdir # Add here commands to configure the package. ./configure --host=x86_64-linux-gnu \ --build=x86_64-linux-gnu \ --prefix=/usr \ --mandir=\${prefix}/share/man \ --infodir=\${prefix}/share/info checking whether to enable maintainer-specific portions of Makefiles... no checking if malloc debugging is wanted... no checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for cygwin development environment... no checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /usr/bin/install -c checking for style of include used by make... GNU checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-linux-gnu-gcc accepts -g... yes checking for x86_64-linux-gnu-gcc option to accept ISO C89... none needed checking dependency style of x86_64-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-linux-gnu-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 3458764513820540925 checking whether the shell understands some XSI constructs... yes checking whether the shell understands +=... yes checking for /usr/bin/ld option to reload object files... -r checking for x86_64-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-linux-gnu-ar... no checking for ar... ar checking for x86_64-linux-gnu-strip... no checking for strip... strip checking for x86_64-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from x86_64-linux-gnu-gcc object... ok checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-linux-gnu-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-linux-gnu-gcc static flag -static works... yes checking if x86_64-linux-gnu-gcc supports -c -o file.o... yes checking if x86_64-linux-gnu-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-linux-gnu-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking whether x86_64-linux-gnu-gcc and cc understand -c and -o together... yes checking for x86_64-linux-gnu-gcc option to accept ISO C99... none needed checking for x86_64-linux-gnu-gcc option to accept ISO Standard C... (cached) none needed checking for x86_64-linux-gnu-g++... x86_64-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-linux-gnu-g++ accepts -g... yes checking dependency style of x86_64-linux-gnu-g++... gcc3 checking whether we are using the GNU C++ compiler... (cached) yes checking whether x86_64-linux-gnu-g++ accepts -g... (cached) yes checking dependency