Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110081 - PostgreSQL 8.0.3 fails to compile with kerberos using Heimdal 0.7.1-r1 while searching for krb5_encrypt
Summary: PostgreSQL 8.0.3 fails to compile with kerberos using Heimdal 0.7.1-r1 while ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-21 17:51 UTC by John Demme
Modified: 2007-09-22 23:42 UTC (History)
3 users (show)

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


Attachments
The config.log associated (config.log,83.05 KB, text/plain)
2005-10-21 17:52 UTC, John Demme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Demme 2005-10-21 17:51:47 UTC
emerge postgresql results in the following error message:
checking for main in -lIPC... no
checking for main in -llc... no
checking for main in -ldld... no
checking for main in -lld... no
checking for main in -lcompat... no
checking for main in -lBSD... no
checking for main in -lgen... no
checking for main in -lPW... no
checking for main in -lresolv... yes
checking for library containing getopt_long... none required
checking for main in -lunix... no
checking for library containing crypt... -lcrypt
checking for library containing fdatasync... none required
checking for shmget in -lcygipc... no
checking for readline... yes (-lreadline)
checking for inflate in -lz... yes
checking for library containing com_err... -lcom_err
checking for library containing krb5_encrypt... no
configure: error: could not find function 'krb5_encrypt' required for Kerberos 5

!!! ERROR: dev-db/postgresql-8.0.3 failed.
!!! Function src_compile, Line 104, Exitcode 1
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.emerge heimdal
2.USE=kerberos emerge postgresql
3.




 # emerge info Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.3.6,
glibc-2.3.5-r2, 2.6.12-gentoo-r6CADCode i686)
=================================================================
System uname: 2.6.12-gentoo-r6CADCode i686 AMD Athlon(tm) XP
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -m3dnow -msse -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X acl acpi aim alsa apache2 apm arts asterisk avi bash-completion
berkdb bitmap-fonts bri bzip2 caps cpdflib crypt cups dbus dio eds emacs emboss
encode esd ethereal fam florz foomaticdb fortran gdbm geoip ggi gif gmp gnome
gpm gstreamer gtk gtk2 hal imagemagick imap imlib iodbc ipv6 ithreads jabber
java javascript jikes jpeg kde kerberos ldap libg++ libgda libwww lm_sensors mad
maildir memlimit mikmod mime mmap mmx mng motif mp3 mpeg mysql nas ncurses
netboot nls nptl ogg oggvorbis opengl oss pam pcntl pcre pdflib perl php png
posix postgres postgresql pri python qt quicktime readline resperl rtc samba
sasl sdl slang snmp soap sockets socks5 sox speex spell sse ssl svg tcltk tcpd
theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis
wddx wmf x86 xml2 xmlrpc xmms xsl xtruetype xv zaptel zlib userland_GNU
kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY


config.log can be found at:
http://www.wam.umd.edu/~teqdruid/config.log

Based on the way Postgres' configure is running the krb5_encrypt test, it would
appear that it's passing it's own hard coded compiler flags to gcc instead of
being nice and using `krb5-config krb5 --libs`.  How to fix it is beyond my
skills, however.  I haven't bothered learning autoconf yet.
Comment 1 John Demme 2005-10-21 17:52:55 UTC
Created attachment 71148 [details]
The config.log associated

Here's the config.log instead of just the URL to it.
Comment 2 John Demme 2005-10-21 23:19:37 UTC
I fixed my problem.  It turns out that some modifications that "seemant" made to
the heimdal-0.7.1-r1.ebuild file broke A TON of stuff.  I don't get why, but
with the new ebuild, a lot of the header files aren't getting installed and none
of the dynamic libraries are being built, in addition to tons of other random
stuff.  Once I downloaded the old 1.1 revision of the ebuild and used that,
everything started working again.

This created some of the most bizarre issues, and I spent all night tracking it
down.  I recommend that you revert to the 1.1 revision ASAP.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2006-11-07 15:03:37 UTC
Don't think that this is still an issue since it compiles perfectly with heimdal here. Please reopen if you think otherwise.