Autoconf fails to detect the resolver library, this prevents MTR from building. A 'fix' is to patch the generated configure script to correctly detect the resolver library. However, this may break when used with older versions of libresolv (tested with libresolv-2.3.4). See attached patch file, and bug #54018. Reproducible: Always Steps to Reproduce: 1. Add amd64 keyword to /usr/portage/net-analyzer/mtr/mtr-0.54-r1.ebuild 2. emerge mtr Actual Results: checking for res_mkquery... no checking for res_mkquery in -lbind... no checking for res_mkquery in -lresolv... no configure: error: No resolver library found Expected Results: Detected the presence of libresolv, and compiled/installed. Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.6) ================================================================= System uname: 2.6.6 x86_64 4 Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -march=athlon64 -fweb -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://194.83.57.11/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.7/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa amd64 apm avi berkdb crypt dvd esd foomaticdb gdbm gif gpm gtk2 imlib java jpeg libg++ libwww mikmod mozilla moznocompose moznoirc mpeg mysql ncurses nls nptl oggvorbis opengl pam pdflib perl png python quicktime readline sdl slang spell ssl tcltk tcpd threads truetype xinerama xml2 xmms xv xvid zlib"
Created attachment 33339 [details, diff] Patch for configure Changes res_mkquery to __res_mkquery in code for checking for presence of libresolv
Bug #54018 relates to Autoconf problem.
a simpled sed -i -e "s/res_mkquery/__&/g" configure.in autoconf does it too. The questions are: (a) to what version of libresolv does this apply and how can we test on them ? (b) does this also apply to other resolvers too ? Further: the ipv6 patch seems not to do his job properly. I couldn't emerge mtr with USE="ipv6" due to linker problems. (Missing symbols) Further2: this is no amd64 bug... reassigning to bugwranglers (couldn't find the appropriate bug owner... bte: mtr has no metadata.xml!)
*** Bug 54193 has been marked as a duplicate of this bug. ***
This fix solves the problem for me. Thanks. If I can provide additional information to help you, please let me know.
mtr-0.64 fixes this issue - adding another test for __res_mkquery in -lresolv if it didn't find res_mkquery in -lresolv. I've also dropped ipv6 support in 0.64 since: a. I couldn't make it work, and b. I don't see a patch against 0.64 anywhere... I'm also marking this ~amd64 (tested on amd64.g.o)