Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54024 - MTR fails to build due to a bug in Autoconf - temporary fix
Summary: MTR fails to build due to a bug in Autoconf - temporary fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 54193 (view as bug list)
Depends on: 54018
Blocks:
  Show dependency tree
 
Reported: 2004-06-15 13:25 UTC by Christopher O'Neill
Modified: 2004-08-21 16:11 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for configure (patch.diff,554 bytes, patch)
2004-06-15 13:26 UTC, Christopher O'Neill
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher O'Neill 2004-06-15 13:25:16 UTC
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"
Comment 1 Christopher O'Neill 2004-06-15 13:26:55 UTC
Created attachment 33339 [details, diff]
Patch for configure

Changes res_mkquery to __res_mkquery in code for checking for presence of
libresolv
Comment 2 Christopher O'Neill 2004-06-15 13:28:14 UTC
Bug #54018 relates to Autoconf problem.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-06-16 12:58:12 UTC
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!)
Comment 4 Danny van Dyk (RETIRED) gentoo-dev 2004-06-17 09:53:31 UTC
*** Bug 54193 has been marked as a duplicate of this bug. ***
Comment 5 Tom Albers 2004-06-30 00:51:50 UTC
This fix solves the problem for me. Thanks. If I can provide additional information to help you, please let me know.
Comment 6 Eldad Zack (RETIRED) gentoo-dev 2004-08-21 16:11:37 UTC
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)