Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38490 - mit-krb5 fails gnuconfig Cannot find resolver support routine res_search in -lresolv.
Summary: mit-krb5 fails gnuconfig Cannot find resolver support routine res_search in -...
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-17 01:14 UTC by Michael Crawford (ali3nx)
Modified: 2004-02-21 23:23 UTC (History)
2 users (show)

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


Attachments
Patch to enable x86_64 (0100_amd64_add-support-config.sub.patch,393 bytes, patch)
2004-01-17 01:20 UTC, Andrew Bevitt
Details | Diff
Fixed up patch (0100_amd64_add-support-config.sub.patch,390 bytes, patch)
2004-01-17 05:46 UTC, Andrew Bevitt
Details | Diff
Fixed up ebuild (mit-krb5-1.3.1.ebuild,2.40 KB, text/plain)
2004-01-17 05:49 UTC, Andrew Bevitt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Crawford (ali3nx) 2004-01-17 01:14:21 UTC
mit-krb5 fails to find res_search in -lresolv resolver library on ~amd64

Reproducible: Always
Steps to Reproduce:
1.emerge mit-krb5
2.
3.

Actual Results:  
gnuconfig failed 

Expected Results:  
mit-krb5 should finish gnuconfig without errors

eutils
>>> Unpacking source...
>>> Unpacking krb5-1.3.1.tar.gz to /var/tmp/portage/mit-krb5-1.3.1/work
>>> Source unpacked.
eutils
krb4
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: creating cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ANSI C... none needed
Looking for ././config
configure: not adding extra gcc warning flags because CFLAGS was set
built in krb4 support
checking which version of com_err to use... krb5
checking which version of subsystem package to use... krb5
checking for an ANSI C-conforming const... yes
checking for gethostbyname... yes
checking for socket... yes
checking if DNS Kerberos lookup support should be compiled in... yes
checking for res_search... no
checking for res_search in -lresolv... no
configure: error: Cannot find resolver support routine res_search in -lresolv.

!!! ERROR: app-crypt/mit-krb5-1.3.1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed

Calculating dependencies    ...done!
>>> emerge (1 of 1) app-crypt/mit-krb5-1.3.1 to /
>>> md5 src_uri ;-) krb5-1.3.1.tar.gz



##########################################################################

here's the emerge info for phr0zen (the server)

Gentoo Base System version 1.4.3.12
Portage 2.0.50_pre16 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo x86_64 4
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
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/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS=""
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://132.207.4.160/gentoo-portage/"
USE="X X509 aalib acpi adns alsa amd amd64 antlr apache2 apm arts autofs avi
bcel berkdb bidi bonobo bsf bsh canna cdr clanJavaScript clanVoice crypt cups
dga dnd doc dv dvb dvd dvdr encode esd ethereal faad fam fbdev ffmpeg fftw flac
flash foomaticdb freetds freetype freewnn fs gb gd gdbm ggi gif gmtfull gmtsuppl
gnome gnomedb gphoto2 gpm gtk gtkhtml guile imagemagick imap imlib informix
innodb ipcs ipv6 jabber java javascript jbig jdepend joystick jpeg jsch jython
kakasi kde kerberos krb4 lcms libg++ libgda libwww log4j ltsp lua mad maildir
mbox mdb memlimit migemo mikmod milter motif mozcalendar mozilla
mozinterfaceinfo moznoirc mozp3p mozsvg mozxmlterm mpeg mpeg4 mpi msn mysql nas
ncurses netcdf nls nocd nvidia objc offensive oggvorbis openal opengl oro oscar
oss pam pcap pdflib perl physfs plotutils png postgres ppds python qt quicktime
readline regexp rhino rplay ruby samba scanner sdl slang slp socks5 speex spell
src ssl stencil-buffer t1lib tcltk tcpd tetex tiff transcode transparent-proxy
truetype type1 usagi usb v4l videos wmf wxwin wxwindows xchattext xerces xine
xml xml2 xmms xosd xv xvid yahoo zlib zvbi"

-:edit:- cyfred has helped to investigate this error and discovered the krb
sources need support added for amd64 in a few areas. He originally suggested
modifying the ebuild to include --with-netlib=/usr/lib/libresolv-2.3.3.so \ to
the econf section of the ebuild however this yielded the following results...

eutils
eutils
eutils
eutils
>>> Unpacking source...
>>> Unpacking krb5-1.3.1.tar.gz to /var/tmp/portage/mit-krb5-1.3.1/work
>>> Source unpacked.
eutils
krb4
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
configure: creating cache ./config.cache
checking for x86_64-pc-linux-gnu-gcc... gcc
checking for C compiler default output... 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 gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ANSI C... none needed
Looking for ././config
configure: not adding extra gcc warning flags because CFLAGS was set
built in krb4 support
checking which version of com_err to use... krb5
checking which version of subsystem package to use... krb5
checking for an ANSI C-conforming const... yes
"netlib will use \'/usr/lib/libresolv-2.3.3.so\'"
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu':
machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config/config.sub x86_64-unknown-linux-gnu failed

!!! ERROR: app-crypt/mit-krb5-1.3.1 failed.
!!! Function econf, Line 365, Exitcode 1
!!! econf failed

Calculating dependencies    ...done!
>>> emerge (1 of 1) app-crypt/mit-krb5-1.3.1 to /
>>> md5 src_uri ;-) krb5-1.3.1.tar.gz

It is apparent the mit-krb5-1.3.1 sources need some development for amd64
compatibility
Comment 1 Andrew Bevitt 2004-01-17 01:20:28 UTC
Created attachment 23958 [details, diff]
Patch to enable x86_64 

The build process needs a few helping steps... 

First we need to add --with-netlib=/usr/lib/libresolv.so 
to the econf because it appears that libresolv is not read properly with 
--enable-dns activated (dont ask me why I dont have a clue)....

Secondly there is this patch, src/config/config.sub defines build time 
system information such the system build type : x86_64-pc-linux-gnu
This file doesnt support x86_64 unless this patch is applied :)

Thirdly the sizeof (short) cannot be determined properly, this is a 
problem in src/util/profile/configure on line 4370 .. I think...

Thats all so far but there could quite possibly be more.
Comment 2 Andrew Bevitt 2004-01-17 05:46:56 UTC
Created attachment 23965 [details, diff]
Fixed up patch

Chuck this in /usr/portage/app-crypt/mit-krb5/files/ (or the equivelent in 
your overlay directory, which is a more approved practice of course).

Ebuild is coming
Comment 3 Andrew Bevitt 2004-01-17 05:49:59 UTC
Created attachment 23966 [details]
Fixed up ebuild

The ebuild to apply the patch automatically.
Comment 4 Andrew Bevitt 2004-01-17 05:50:41 UTC
Test this if you can, works here though :)
Comment 5 Michael Crawford (ali3nx) 2004-01-17 06:29:44 UTC
i've tested cyfred's patch on phr0zen and the ebuild finished successfully twice and both the bins and sbins executed... this should be reviewed by devs for cvs commit asap due to the blocker
Comment 6 Brad House 2004-01-17 10:00:21 UTC
not a blocker
Comment 7 Brad House 2004-02-21 16:57:26 UTC
fixed in cvs already
Comment 8 Michael Crawford (ali3nx) 2004-02-21 23:23:27 UTC
excellent. Very proud of my efforts to help close this bug.