Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 280150

Summary: net-ftp/proftpd- 1.3.2-r2 fails to compile due to missing krb4 support in mit-krb5-1.7*
Product: Gentoo Linux Reporter: Marco Clocchiatti <ziapannocchia>
Component: [OLD] ServerAssignee: Luca Longinotti (RETIRED) <chtekk>
Status: RESOLVED FIXED    
Severity: normal CC: dliana, gentoo, gentoo, net-ftp
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marco Clocchiatti 2009-08-03 09:10:33 UTC
proftpd fails to compile against >=app-crypt/mit-krb5-1.7

Reproducible: Always

Steps to Reproduce:
1.s939 ~ # emerge -pv proftpd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-ftp/proftpd-1.3.2-r2  USE="acl kerberos ldap mysql ncurses nls opensslcrypt pam softquota ssl tcpd -authfile -ban -case -clamav -deflate -hardened -ifsession -ipv6 -noauthunix -postgres -radius -rewrite (-selinux) -shaper -sitemisc -vroot -xinetd" 0 kB

Actual Results:  
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/include/mysql -march=native -O2 -pipe -fomit-frame-pointer -DUSE_LDAP_TLS -DHAVE_OPENSSL -Wall -DPR_SHARED_MODULE -c mod_auth_gss.c -o mod_auth_gss.o >/dev/null 2>&1
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/mod_auth_gss.o   -L/var/tmp/portage/net-ftp/proftpd-1.3.2-r2/work/proftpd-1.3.2/lib -L/usr/lib64 -lgssapi_krb5 -ldes425 -lkrb5 -lk5crypto -lcom_err  -Wl,-O1 -Wl,--as-needed -Wl,-R/usr/lib64   -Wl,-soname -Wl,mod_auth_gss.so -o .libs/mod_auth_gss.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldes425
collect2: ld returned 1 exit status
make[1]: *** [mod_auth_gss.la] Error 1
make[1]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -DLINUX -I.. -I../include -I/usr/include/mysql -march=native -O2 -pipe -fomit-frame-pointer -DUSE_LDAP_TLS -DHAVE_OPENSSL -Wall -DPR_SHARED_MODULE -c mod_gss.c -o mod_gss.o >/dev/null 2>&1
libtool: link: x86_64-pc-linux-gnu-gcc -shared  .libs/mod_gss.o   -L/var/tmp/portage/net-ftp/proftpd-1.3.2-r2/work/proftpd-1.3.2/lib -L/usr/lib64 -lgssapi_krb5 -ldes425 -lkrb5 -lk5crypto -lcom_err  -Wl,-O1 -Wl,--as-needed -Wl,-R/usr/lib64   -Wl,-soname -Wl,mod_gss.so -o .libs/mod_gss.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldes425
collect2: ld returned 1 exit status
make[1]: *** [mod_gss.la] Error 1
make: *** [modules] Error 2
 * 
 * ERROR: net-ftp/proftpd-1.3.2-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3461:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/net-ftp:proftpd-1.3.2-r2:20090803-084846.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-ftp/proftpd-1.3.2-r2/temp/environment'.



s939 ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r4-p5q x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-p5q-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9400_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 02 Aug 2009 18:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/tmp/gentoo-tmp/distfiles"
FEATURES="buildpkg distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://cesium.di.uminho.pt/pub/gentoo/ ftp://cesium.di.uminho.pt/pub/gentoo/"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="it en_GB"
MAKEOPTS="-j9 -s"
PKGDIR="/tmp/gentoo-tmp/packages64"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/tmp/gentoo-tmp/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 ao aotuv apache2 asf asyncns audiofile avi bash-completion beagle berkdb bitmap-fonts bluetooth branding browserplugin bzip2 bzlib cairo caps cddb cdparanoia cdr chroot cli coverage cpdflib cpudetection cracklib crypt cspell cups curl dba dbus dga directfb divx djvu dlloader dmi dri dv dvd dvdr dvdread dvx4linux eds emboss encode esd evo exif expat fam fbcon ffmpeg flac foomaticdb fortran fpx ftp gcj gd gdbm ggvorbis gif gimp glitz gmedia gmp gnome gphoto2 gpm graphviz gstreamer gtk gtkhtml hal htmlhandbook iconv ieee1394 imagemagick imlib innodb isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdexdeltas kerberos ladspa lame lcms ldap libcaca libnotify libsamplerate live lm_sensors lzo mad madwifi mailwrapper md5sum memlimit mikmod mime mjpeg mmap mmx mng motif mozilla mp3 mpeg mpi mplayer mssql mudflap multilib mysql nas ncurses network newspr nls nptl nptlonly nsplugin nuv nvidia ogg openexr opengl openmp oss pam pam_chroot pam_timestamp pango pcmcia pcre pdf perl phonon php plasma png portaudio posix ppds pppd pulseaudio pwdb python qt3 qt3support qt4 quicktime readline reflection rle rtc samba sasl scanner sdl seamonkey session slang sndfile snmp sox speex spell spl sse sse2 ssl startup-notification svg sysfs tcltk tcpd tetex tga theora threads tidy tiff tokenizer tools trace truetype truetype-fonts type1-fonts udev unicode urandom usb userlocales utempter vcd vim-syntax vnc vorbis webkit wmf wmp x264 xattr xcb xcomposite xine xinerama xml xml2 xmlreader xmlwriter xmms xorg xpm xslt xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en_GB" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia vesa nv vga vmware"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Wormo (RETIRED) gentoo-dev 2009-08-06 06:58:43 UTC
Thanks for reporting this version conflict, assigning to maintainers.
Comment 2 Bernard Cafarelli gentoo-dev 2009-09-07 16:35:08 UTC
Thanks for the report and the info!

In proftpd-1.3.2a ebuild (just committed), I updated the kerberos dependency to:
|| ( <app-crypt/mit-krb5-1.7 app-crypt/heimdal )

(which will probably pick up heimdal for you then)
Comment 3 Tilman Giese 2010-01-28 13:50:20 UTC
It looks to me as if the required functionality was just moved to libk5crypto. I just removed "-ldes425" from modules/mod_gss.c and modules/mod_auth_gss.c and it builds without errors. Haven't checked though whether it also runs fine but I don't see why it shouldn't.

So couldn't we just fix the linking process? Using heimdal is not an option for me as I have custom extensions to MIT krb5.
Comment 4 Raphaƫl Barrois 2010-06-23 05:50:44 UTC
(In reply to comment #3)
> So couldn't we just fix the linking process? Using heimdal is not an option for
> me as I have custom extensions to MIT krb5.
> 

This dependency should be updated, as <mit-krb5-1.7 now creates blocks with lots of packages (cf. http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=324903)