while compiling freeradius against heimdal-0.6.3-r1 these errors appeared: emerge freeradius gcc -O2 -march=pentium3 -fomit-frame-pointer -funroll-loops -pipe -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I../../include -c rlm_krb5.c -o rlm_krb5.o rlm_krb5.c:40:21: com_err.h: No such file or directory rlm_krb5.c: In function `verify_krb5_tgt': rlm_krb5.c:92: warning: implicit declaration of function `error_message' rlm_krb5.c:92: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: format argument is not a pointer (arg 4) rlm_krb5.c:96: warning: implicit declaration of function `krb5_princ_component' rlm_krb5.c:96: warning: nested extern declaration of `krb5_princ_component' rlm_krb5.c:96: error: `c' undeclared (first use in this function) rlm_krb5.c:96: error: (Each undeclared identifier is reported only once rlm_krb5.c:96: error: for each function it appears in.) rlm_krb5.c:96: error: invalid type argument of `->' rlm_krb5.c:105: warning: passing arg 2 of `krb5_kt_read_service_key' discards qualifiers from pointer target type rlm_krb5.c:109: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:109: warning: format argument is not a pointer (arg 3) rlm_krb5.c:125: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:125: warning: format argument is not a pointer (arg 4) rlm_krb5.c:141: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:141: warning: format argument is not a pointer (arg 4) rlm_krb5.c:156: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:156: warning: format argument is not a pointer (arg 4) rlm_krb5.c: In function `krb5_instantiate': rlm_krb5.c:189: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:189: warning: format argument is not a pointer (arg 3) rlm_krb5.c: In function `krb5_auth': rlm_krb5.c:217: warning: initialization makes pointer from integer without a cast rlm_krb5.c:219: warning: excess elements in struct initializer rlm_krb5.c:219: warning: (near initialization for `tgtname') rlm_krb5.c:267: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:267: warning: format argument is not a pointer (arg 4) rlm_krb5.c:278: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:278: warning: format argument is not a pointer (arg 4) rlm_krb5.c:284: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:284: warning: format argument is not a pointer (arg 4) rlm_krb5.c:292: error: request for member `length' in something not a structure or union rlm_krb5.c:293: error: request for member `data' in something not a structure or union rlm_krb5.c:296: error: request for member `length' in something not a structure or union rlm_krb5.c:297: error: request for member `data' in something not a structure or union rlm_krb5.c:300: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:300: warning: format argument is not a pointer (arg 4) rlm_krb5.c:308: warning: nested extern declaration of `error_message' rlm_krb5.c:92: warning: redundant redeclaration of 'error_message' rlm_krb5.c:92: warning: previous implicit declaration of 'error_message' was here rlm_krb5.c:308: warning: format argument is not a pointer (arg 4) make: *** [rlm_krb5.o] Error 1 emerge info ================================================================= System uname: 2.6.9-gentoo-r12004112101 i686 Intel(R) Celeron(TM) CPU 1000MHz Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 28 2004, 04:51:31)] distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.5, 1.6.3, 1.7.9, 1.4_p6, 1.8.5-r2, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://linux.pacific.net.au/linux/Gentoo ftp://mirror.aarnet.edu.au/pub/gentoo ftp://planetmirror.com/pub/gentoo" LDFLAGS="" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp/" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/bmg-main.alternative" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="x86 X acl acpi alsa apache2 apm avi berkdb bitmap-fonts cdr crypt cups dba dvd dvdr encode fam flac foomaticdb fortran gd gif gimpprint gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imap imlib ipv6 java jpeg junit kerberos ldap libwww lm_sensors mad mikmod mmx mono motif mpeg mppe-mppc msn ncurses oggvorbis opengl oss pam pdflib perl php png postgres python quicktime readline samba sasl sdl slang smime snmp spell sse ssl svga tcpd tiff truetype usb xchattext xft xft2 xml xml2 xmms xv zlib"
I see that /usr/include/et/com_err.h is part of sys-fs/e2fsprogs. do you have this installed on your machine?
Thanks for the idea but emerge -pv sys-fs/e2fsprogs confirms that I've got it installed..
Doing: ln -s /usr/include/et/com_err.h /usr/include/ got rid of rlm_krb5.c:40:21: com_err.h: No such file or directory and it seems like ./configure needs --enable-heimdal-krb5, so i added this to the ebuild: if use kerberos; then myconf="${myconf} --enable-heimdal-krb5" fi and it worked. The ebuild should probably test for what kerberos implementation is in use, and append --enable-heimdal-krb5 if heimdal.
Øystein Senneset Haaland, Do you have a diff for you idea so we can test it and possibly ask the dev's to add it to portage?
here's the diff: --- freeradius-1.0.1.ebuild 2005-02-28 21:09:38.493165520 +0100 +++ tmp/freeradius-1.0.1.ebuild 2005-02-28 23:26:17.915663832 +0100 @@ -52,6 +52,9 @@ if use frxp; then myconf="${myconf} --with-experimental-modules" fi + if use kerberos; then + myconf="${myconf} --enable-heimdal-krb5" + fi # kill modules we don't use if ! use ssl; then note that this is not a proper fix, since it just adds --enable-heimdal-krb5 if kerberos use flag is set. I tried to use: # if has_version >=app-crypt/heimdal-0.6.3-r1; then # myconf="${myconf} --enable-heimdal-krb5" # fi but it wouldn't work. Also, there is a new version of freeradius out. It compiles with the changes in the patch above, if the gcc 3.4 patch is not used.
version bumped, including heimdal fix. check it and give me the results.
Compiles fine here
it will be marked stable when the time comes