Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223693 - net-ftp/yafc-1.1.1-r1 (+mit-kerberos) - gssapi.c:44:23: error: krb5_err.h: No such file or directory
Summary: net-ftp/yafc-1.1.1-r1 (+mit-kerberos) - gssapi.c:44:23: error: krb5_err.h: No...
Status: RESOLVED DUPLICATE of bug 201741
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 14:03 UTC by Thimo Langbehn
Modified: 2008-05-29 01:16 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thimo Langbehn 2008-05-26 14:03:24 UTC
yafc compile failure with kerberos use flag and mit-krb installed (no heimdal)

Reproducible: Always

Steps to Reproduce:
1. emerge yafc

Actual Results:
root:~>env USE=kerberos emerge -av yafc yafc

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

Calculating dependencies... done!
[ebuild   N   ] net-ftp/yafc-1.1.1-r1  USE="kerberos readline -socks5" 0 kB 

Total: 1 package (1 new), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) net-ftp/yafc-1.1.1-r1 to /

[snip]

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I. -I../src -I../src/ftp -I../src/libmhe  -I/usr/include -I/usr//include  -I/usr/include -I/usr//include -I/usr/include  -march=pentium4m -O2 -pipe -MT gssapi.o -MD -MP -MF .deps/gssapi.Tpo -c -o gssapi.o gssapi.c
gssapi.c:44:23: error: krb5_err.h: No such file or directory
gssapi.c: In function 'gss_auth':
gssapi.c:289: error: 'KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN' undeclared (first use in this function)
gssapi.c:289: error: (Each undeclared identifier is reported only once
gssapi.c:289: error: for each function it appears in.)
make[2]: *** [gssapi.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/bashline.Tpo .deps/bashline.Po
mv -f .deps/security.Tpo .deps/security.Po
make[2]: Leaving directory `/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1/lib'
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   49:  Called src_compile
 *             environment, line 2518:  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'.
 * The ebuild environment file is located at '/var/tmp/portage/net-ftp/yafc-1.1.1-r1/temp/environment'.
 * 

 * Messages for package net-ftp/yafc-1.1.1-r1:

 * 
 * ERROR: net-ftp/yafc-1.1.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2518:  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'.
 * The ebuild environment file is located at '/var/tmp/portage/net-ftp/yafc-1.1.1-r1/temp/environment'.
 * 

Expected Results:  
Expect yafc to compile

-----------------------
Suggestion: 

krb5_err.h seems to belong to the heimdal kerberos implementation
/var/tmp/portage/net-ftp/yafc-1.1.1-r1/work/yafc-1.1.1/lib/gssapi.c states:

[snip]
#if defined(HAVE_GSSAPI_H)
# include <gssapi.h>
 /* if we have gssapi.h (not gssapi/gssapi.h) we assume we link
  * against Heimdal, which needs krb5_err.h to define *
  * KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN
  */
# include <krb5_err.h>
#elif defined(HAVE_GSSAPI_GSSAPI_H)
# include <gssapi/gssapi.h>
 /* if we have gssapi/gssapi.h it might be safe to assume we have the
  * other two that are part of MIT's krb5 as well, but this will work
  * even if they one day do away with one of those two header files.
  */
[snip]

However, currently:
> qfile /usr/include/gssapi.h
app-crypt/mit-krb5 (/usr/include/gssapi.h)

Which breaks the assumption in the yafc code.

-------------------------
Workaround:

1. temprarily move /usr/include/gssapi.h
2. emerge yafc
3. put the previously moved gssapi.h back to /usr/include/

This works for me and the resulting yafc is able to connect using kerberos
-------------------------
> emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-tuxonice-r4 i686)
=================================================================
System uname: 2.6.24-tuxonice-r4 i686 Genuine Intel(R) CPU T2600 @ 2.16GHz
Timestamp of tree: Mon, 26 May 2008 12:46:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4m -O2 -pipe"
EMERGE_DEFAULT_OPTS="--verbose --ask"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
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"
PORTAGE_USE="elibc_glibc kernel_linux userland_GNU x86"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PRELINK_PATH_MASK="/usr/lib/gstreamer-0.10"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X Xorg a52 aac acl acpi alsa asf avi berkdb branding bzip2 cairo cddb cdr cli cracklib crypt cups curl dbus divx dri dvd dvdnav dvdr dvdread eds emacs emboss encode ethereal evo fam ffmpeg firefox flac force-cgi-redirect fortran gcj gdbm gif glut gmedia gnome gpm graphviz gstreamer gtk gtk2 hal hdri iconv ieee1394 imap ipv6 isdnlog java jbig jpeg jpeg2k kerberos lame latex ldap libg++ libnotify linuguas_en mad matroska midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nptl nptlonly ogg opengl openmp pam pcmcia pcre pdf pdflib perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rtc ruby sasl sdl session speex spell spl ss sse sse2 ssl startup-notification svg tcpd tga theora thinkpad tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wifi win32codecs wmf wmp x86 xanim xine xml xml2 xorg 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="fglrx"
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-29 01:16:25 UTC
same issue wrt kerberos

*** This bug has been marked as a duplicate of bug 201741 ***