yafc compile failure Reproducible: Always Steps to Reproduce: 1. emerge yafc 2. 3. Actual Results: root:~>env USE=-kerberos ACCEPT_KEYWORDS=~x86 emerge -av yafc These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-ftp/yafc-1.1.1-r1 USE="readline -kerberos -socks5" 0 kB Total: 1 package (1 new), Size of downloads: 0 kB Would you like to merge these packages? [Yes/No] yes >>> Verifying ebuild Manifests... >>> Emerging (1 of 1) net-ftp/yafc-1.1.1-r1 to / [snip] i686-pc-linux-gnu-gcc -O2 -march=pentium-m -pipe -Wl,-O1 -Wl,--sort-common -s -o yafc main.o alias.o cmd.o commands.o completion.o get.o fxp.o gvars.o lglob.o help.o input.o local.o login.o list.o put.o rm.o tag.o redir.o prompt.o transfer.o rc.o set.o ltag.o bookmark.o utils.o -L/usr/lib ftp/libftp.a libmhe/libmhe.a ../lib/libfoo.a -lkrb4 -ldes425 -lkrb5 -lcom_err -lreadline -lncurses ../lib/libfoo.a(krb4.o): In function `krb4_auth': krb4.c:(.text+0x4fa): undefined reference to `krb_get_int' collect2: ld returned 1 exit status make[4]: *** [yafc] Error 1 make[4]: Leaving directory `/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1/src' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1' make: *** [all] Error 2 * * ERROR: net-ftp/yafc-1.1.1-r1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * yafc-1.1.1-r1.ebuild, line 42: 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/tmp/portage/net-ftp/yafc-1.1.1-r1/temp/build.log'. * * Messages for package net-ftp/yafc-1.1.1-r1: * * ERROR: net-ftp/yafc-1.1.1-r1 failed. * Call stack: * ebuild.sh, line 1701: Called dyn_compile * ebuild.sh, line 1039: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * yafc-1.1.1-r1.ebuild, line 42: 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/tmp/portage/net-ftp/yafc-1.1.1-r1/temp/build.log'. * Expected Results: Expect yafc to compile > emerge --info Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686) ================================================================= System uname: 2.6.23-gentoo-r3 i686 Intel(R) Pentium(R) M processor 1.60GHz Timestamp of tree: Fri, 07 Dec 2007 19:30:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium-m -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium-m -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US" LDFLAGS="-Wl,-O1 -Wl,--sort-common -s" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/live-ebuilds /usr/portage/local/layman/sunrise /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acl acpi afs alsa arts avahi bash-completion beep berkdb bindist bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups dbus dga directfb doc dri dts dv dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg fftw firefox flac fortran gd gdbm gif gphoto2 gpm graphviz gstreamer gtk gtk2 hal howl iconv ieee1394 imagemagick imap imlib ipv6 isdnlog java jpeg jpeg2k kde kerberos krb4 lcms ldap libcaca lm_sensors mad maildir mailwrapper matroska mbox midi mikmod mime mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg openal opengl openmp oss pam pcmcia pcre pdf perl plotutils png ppds pppd python qt3support qt4 quicktime readline reflection sasl sdl session slp snmp spell spl sse sse2 ssl svg svga tcl tcltk tcpd tetex theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb v4l vcd videos vim-syntax vorbis wifi win32codecs wmf x86 xattr xcomposite xine xinerama xml xorg xpm xprint xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa i810" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Can you attach the build log referenced please - I'm unable to reproduce this on AMD64 or x86 here using the same LDFLAGS, CFLAGS and FEATURES.
Created attachment 143610 [details] build log (showing failure)
Created attachment 143612 [details] build environment (that gave failure)
(In reply to comment #1) > Can you attach the build log referenced please - I'm unable to reproduce this > on AMD64 or x86 here using the same LDFLAGS, CFLAGS and FEATURES. > Done. (Also get a compile failure with kerberos enabled, just FYI). GI
Created attachment 143622 [details] Revised ebuild Revised ebuild which detects kerberos provider and enables/disables kerberos flags correctly in configure - tested with app-crypt/heimdal and app-crypt/mit-krb5 with krb4 USE flag on and off for mit-krb5
Created attachment 151686 [details] disables kerberos if kerberos use flag is not set I modified Kevins ebuild to disable kerberos (add --without-krb4 and --without-krb5 to configure) if the kerberos use flag is not set. It was needed to get it to compile for me...
*** Bug 223693 has been marked as a duplicate of this bug. ***
Looks good guys, no sense in keeping broken stuff in the tree. Give me a few days to review the ebuild and I will take you word on the build failures.
(In reply to comment #6) > I modified Kevins ebuild to disable kerberos (add --without-krb4 and > --without-krb5 to configure) if the kerberos use flag is not set. It was needed > to get it to compile for me... > Tested and works. In CVS, thanks for the submissions! BTW, this change does not warrant a rev bump because the users that are affected by this won't have it installed in the first place. (and I do not wish to be maintainer of this package, but I will fix anything related to this commit).
Created attachment 248194 [details] disables kerberos if kerberos use flag is not set net-ftp/yafc-1.1.1-r1 still fails to compile if the kerberos USE flag is not set. The attached modified ebuild includes the same "else" case as proposed in comment #6