Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116471 - app-crypt/kth-krb-1.2.2-r2 won't compile
Summary: app-crypt/kth-krb-1.2.2-r2 won't compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
: 148168 (view as bug list)
Depends on:
Blocks: 173354
  Show dependency tree
 
Reported: 2005-12-23 02:39 UTC by Michael Cramer
Modified: 2007-06-16 15:46 UTC (History)
5 users (show)

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 Michael Cramer 2005-12-23 02:39:49 UTC
everytime when i emerge app-crypt/kth-krb-1.2.2-r2, it breaks with the following error:

/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -DROKEN_RENAME -I/usr/include   -I/usr/include/et  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4 -c -o kntoln.lo `test -f 'kntoln.c' || echo './'`kntoln.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -DROKEN_RENAME -I/usr/include -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4 -c kntoln.c -o kntoln.o
In file included from ./krb.h:365,
                 from krb_locl.h:126,
                 from kntoln.c:48:
./krb-protos.h:175: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:175: warning: its scope is only this definition or declaration, which is probably not what you want
./krb-protos.h:456: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:540: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:576: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:590: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -DROKEN_RENAME -I/usr/include   -I/usr/include/et  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4 -c -o krb_check_auth.lo `test -f 'krb_check_auth.c' || echo './'`krb_check_auth.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../lib/roken -I../../lib/roken -DROKEN_RENAME -I/usr/include -I/usr/include/et -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs -march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4 -c krb_check_auth.c -o krb_check_auth.o
In file included from ./krb.h:365,
                 from krb_locl.h:126,
                 from krb_check_auth.c:34:
./krb-protos.h:175: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:175: warning: its scope is only this definition or declaration, which is probably not what you want
./krb-protos.h:456: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:540: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:576: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
./krb-protos.h:590: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
krb_check_auth.c:55: warning: "struct _ossl_old_des_ks_struct" declared inside parameter list
krb_check_auth.c:56: error: conflicting types for 'krb_check_auth'
./krb-protos.h:175: error: previous declaration of 'krb_check_auth' was here
krb_check_auth.c:56: error: conflicting types for 'krb_check_auth'
./krb-protos.h:175: error: previous declaration of 'krb_check_auth' was here
krb_check_auth.c: In function `krb_check_auth':
krb_check_auth.c:61: warning: passing arg 3 of `krb_rd_priv' from incompatible pointer type
make[2]: *** [krb_check_auth.lo] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/kth-krb-1.2.2-r2/work/krb4-1.2.2/lib/krb'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/kth-krb-1.2.2-r2/work/krb4-1.2.2/lib'
make: *** [all-recursive] Fehler 1

!!! ERROR: app-crypt/kth-krb-1.2.2-r2 failed.
!!! Function src_compile, Line 43, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


i tried also to stip down my CFLAGS, LDFLAGS and CXXFLAGS so that they are empty, but nothing helps


bigmichi1 ~ # emerge info
Portage 2.1_pre1 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r1, 2.6.14-gentoo-r5-2005.1 i686)
=================================================================
System uname: 2.6.14-gentoo-r5-2005.1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre12
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium3 -pipe -Os -fomit-frame-pointer -fno-ident -fforce-addr -ftracer -fweb -falign-functions=4 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X Xaw3d a52 aac aalib accessibility acl acpi alsa amuled apache2 apm ares arts artswrappersuid artworkextra asterisk async audiofile authfile automount avi bash-completion bcmath berkdb big-tables bitmap-fonts brltty bzip2 cairo calender canvas caps cdb cdr cjk clamav cli crypt ctype cups curl curlwrappers dba dbus dga directfb djbfft dlloader dmx doc dts dvd dvdr dvi dynagraph eds elf emacs emboss encode erandom esd examples exif expat extraengine fam fbcon ffmpeg flac flatfile font-server fontconfig foomaticdb fortran fpx freetds freetts ftp gcj gd gdbm ggi gif glep glibc-omitfp glitz glut gmp gnome gnutls gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal hesiod howl iconv id3 idled idn ieee1394 imagemagick imap imlib immqt inifile insecure-drivers ipv6 ithreads jack jack-tmpfs java java-external javascript jbig jce jikes jpeg justify kde kdeenablefinal kerberos kqemu krb4 lame lcms ldap ldapsam leim libcaca libclamav libg++ libwww lm_sensors logrotate mad mbrola memlimit mgetty mhash mikmod ming mmap mmx mng mono motif mozcalendar mozdevelop mozilla mp3 mp4live mpeg mpeg2 mpm-prefork mssql mudflap mysql mysqli nas nautilus ncurses neXt netpbm network nfs nis nls nntp nptl nptlonly nsplugin numeric oav objc objc-gc odbc ogg oggvorbis on-the-fly-crypt opengl oss pam pam_chroot pam_console pam_timestamp pccts pcntl pcre pda pdflib pdo-external pear perl perlsuid pg-hier pg-intdatetime php physfs pic player png portaudio posix postgres ppds pwdb python qt quicktime quotas readline remote rewrite rle rpm ruby samba sample sasl sdk sdl sendfile sensord session shaper sharedmem silc simplexml sitemisc skey slang slp smartcard smux sndfile snmp soap sockets socks5 softquota source speex spell spf spl sqlite srp sse ssl stats svg svga swat symlink sysfs syslog sysvipc t1lib tcltk tcpd tetex theora threads tidy tiff tokenizer toolbar tools truetype truetype-fonts type1-fonts ucs2 udev unicode urandom usb utf8 v4l v4l2 vda vorbis vv wddx winbind wmf x264 xinerama xinetd xml2 xmlrpc xpm xprint xsl xv xvid yaz zip zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_ati128"
Unset:  ASFLAGS, CTARGET


this package gets in when emerging curl with krb4 use flag
Comment 1 Martin Mokrejš 2006-05-04 03:19:58 UTC
I believe that is because somebody should finally push in kth-krb-1.3 version eithe rthe snapshot or directly from cvs. The development is stopped, but most importantly, branch 1.3 added support for openssl-0.9.7.

kth-krb-1.2.2 may coexist only with openssl-0.9.6 or older.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2006-05-21 14:03:44 UTC
Signore Giaquinta, please do have a look at these bugs.
Comment 3 Martin Vysny 2006-09-11 09:47:00 UTC
Bump! Openssl-0.9.7 got unmasked and kth-krb-1.2.2 (the only one kth-krb unmasked) does not compile.
Comment 4 Jesse Adelman 2006-09-17 14:47:04 UTC
Hmm... bug opened in December of 2005, and this problem still exists? I'm getting bitten by this - can we get a version bump to STABLE, please? Thanks.
Comment 5 Martin Mokrejš 2006-09-18 09:27:32 UTC
FYI, kth-krb4-1.3 is still only as a release candidate. But I think actually a CVS dump of that branch would be the best choice. The development of krb4 has been stopped. And, don't expect xscreensaver to accept your krb4 password unless you provide a patch to fix the possibly simple issue. Upstream has dropped that from support and Gentoo package maintainers stick to that. See some of the closed bugreports on this if you are interested.

Although I am not arguing that kth-krb-1.3-cvs or -rc should be in portage you should probably soon convert to heimdal, which offers the krb4 servces in addition to krb5 interface.
Comment 6 Dustin Polke 2006-09-18 09:50:40 UTC
As I can see from the heimdal ebuild, krb4 support is only provided when compiled against kth-krb... So how can I get rid of kth-krb by switching to heimdal???

Any suggestions?
Comment 7 Martin Mokrejš 2006-09-18 11:06:10 UTC
1. Migrate the passwords:
http://www.pdc.kth.se/heimdal/heimdal.html#Migration
This might not be trivial so read posts in the archives of krb4@sics.se and heimdal-discuss@sics.se from people who did the same. If you have few users, maybe rather create the password database from scratch. ;)

2. Shutdown kth-krb4

3. Recompile your apps to use heimdal (use the "kerberos" USE flag)

3. If things work, remove the the "krb4" USE flag and 'emerge -uN world'.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-09-19 02:51:39 UTC
*** Bug 148168 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-09-19 02:53:01 UTC
So, does 1.3_rc1 work for people here, or? The current stable ebuild is completely useless.
Comment 10 Dustin Polke 2006-09-19 03:55:28 UTC
I tried 1.3_rc1, but ran into file collision like in bug #117209. So in my opinion this ebuild is not a choice as well...

At the moment, I try to switch to heimdal like proposed by Martin in comment #7.

If it is possible to get rid of kth-krb, then do so. Just my few cents...
Comment 11 Emanuele Giaquinta (RETIRED) gentoo-dev 2006-09-19 04:32:36 UTC
The only sane choice is to upgrade to a krb5 system; every krb4 implementation is now unsupported by the corresponding upstream. We are the only one afaik to provide kth-krb. Every ebuild in the tree with a krb4 use flag has also a kerberos one (with the exception of xscreensaver), so the application support is not a blocker (if there is a problem open a bug please). My plan is to deprecate the krb4 use flag and after an adeguate period of time remove this app from the tree.

For more information read here:

http://web.mit.edu/Kerberos/krb4-end-of-life.html
Comment 12 Martin Mokrejš 2006-09-19 04:37:58 UTC
Still, the 1.3-rc candidate should be made available, even at the cost of no manapges being installed.
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-09-19 07:53:59 UTC
(In reply to comment #12)
> Still, the 1.3-rc candidate should be made available, even at the cost of no
> manapges being installed.

It's already in the tree, don't see what you mean here...

Comment 14 Dustin Polke 2006-09-19 09:14:07 UTC
I've switched successfully to heimdal and don't need this package anymore.
I am outta here, thanks for your help, guys :)
Comment 15 Martin Mokrejš 2006-09-27 04:22:03 UTC
Sorry, I did not have a look for that. I tried to emerge it and it complied successfully against 

# openssl
OpenSSL> version
OpenSSL 0.9.8c 05 Sep 2006
OpenSSL> quit


I have seen the following message, but the chmod go-r seems to be correct to me.
The suggested step to recompile again ... I don't know what does that really say. Anyway, I use heimdal so it is not an issue for me.


QA Notice: the following files are setXid, dyn linked, and using lazy bindings
 This combination is generally discouraged.  Try re-emerging the package:
 LDFLAGS='-Wl,-z,now' emerge kth-krb
LAZY usr/athena/bin/rsh
LAZY usr/athena/bin/rcp
LAZY usr/athena/bin/rlogin
LAZY usr/athena/bin/su
LAZY usr/athena/bin/otp

>>> Merging app-crypt/kth-krb-1.3_rc1 to /
 * >>> SetUID: [chmod go-r] /var/tmp/portage/kth-krb-1.3_rc1/image//usr/athena/bin/rsh  ...                                         [ ok ]
 * >>> SetUID: [chmod go-r] /var/tmp/portage/kth-krb-1.3_rc1/image//usr/athena/bin/rcp  ...                                         [ ok ]
 * >>> SetUID: [chmod go-r] /var/tmp/portage/kth-krb-1.3_rc1/image//usr/athena/bin/rlogin  ...                                      [ ok ]
 * >>> SetUID: [chmod go-r] /var/tmp/portage/kth-krb-1.3_rc1/image//usr/athena/bin/su  ...                                          [ ok ]
 * >>> SetUID: [chmod go-r] /var/tmp/portage/kth-krb-1.3_rc1/image//usr/athena/bin/otp  ...                                         [ ok ]
Comment 16 major 2006-10-30 17:43:05 UTC
(In reply to comment #11)
> The only sane choice is to upgrade to a krb5 system; every krb4 implementation
> is now unsupported by the corresponding upstream. We are the only one afaik to
> provide kth-krb.

Don't forget that Heimdal seems to need kth-krb to construct the proper AFS stubs for transparent AFS support in Heimdal.  Without it pam_krb5+afs fails to aquire AFS tokens.  Though this is likely a failure on pam_krb5's part in assuming the need for krb4 support.
Comment 17 major 2006-10-30 19:07:42 UTC
(In reply to comment #16)
> Don't forget that Heimdal seems to need kth-krb to construct the proper AFS
> stubs for transparent AFS support in Heimdal.  Without it pam_krb5+afs fails to
> aquire AFS tokens.  Though this is likely a failure on pam_krb5's part in
> assuming the need for krb4 support.

Correction, this is a failure of the pam_krb5 version number conflict.  pam_krb5-2.2.6 works correctly with heimdal w/out kth-krb.  Unfortunately there exists a pam_krb5-2003* ebuild that takes priority over 2.2.6 even though it is for a completely different package and requires kth-krb.  Pushing pam_krb5-2.2.6 as stable resolves the pam_krb5 dependancy on kth-krb.

Comment 18 Gustavo Zacarias (RETIRED) gentoo-dev 2007-03-22 19:20:50 UTC
krb4 masked on sparc, it's time to move on.
Comment 19 Ben Cheever 2007-04-02 19:00:15 UTC
(In reply to comment #18)
> krb4 masked on sparc, it's time to move on.
> 
I think the USE flag for krb4 should be removed for x86 since it won't compile against the latest packages anyways. I made the simple mistake of adding it to my USE flags and it prevented me from compiling packages.
Comment 20 Seemant Kulleen (RETIRED) gentoo-dev 2007-06-16 15:46:39 UTC
removed from portage