/bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../kio/kssl -I../../interfaces -I../../kio/httpfilter -I../../dcop -I../../libltdl -I../../kdefx -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/3.3/include -I/usr/include -I/usr/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O3 -march=pentium3 -funroll-loops -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -c -o kio_http_cache_cleaner_dummy.lo kio_http_cache_cleaner_dummy.cc http.cc:76:20: gssapi.h: No such file or directory http.cc: In member function `QCString HTTPProtocol::gssError(int, int)': http.cc:5187: error: `OM_uint32' undeclared (first use this function) http.cc:5187: error: (Each undeclared identifier is reported only once for each function it appears in.) http.cc:5187: error: parse error before `;' token [..] make[3]: Leaving directory `/var/tmp/portage/kdelibs-3.3.0/work/kdelibs-3.3.0/kioslave/http' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.3.0/work/kdelibs-3.3.0/kioslave' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/kdelibs-3.3.0/work/kdelibs-3.3.0' make: *** [all] Error 2 !!! ERROR: kde-base/kdelibs-3.3.0 failed. !!! Function kde_src_compile, Line 135, Exitcode 2 !!! died running emake, kde_src_compile:make # locate gssapi.h /usr/include/heimdal/gssapi.h Reproducible: Always Steps to Reproduce: 1. emerge kdelibs Actual Results: Build fails, the first error is not finding gssapi.h. I cannot build kde-3.3.0 without this kdelibs. Expected Results: Completed build with no errors. USE="-3dnow alsa apache2 apm -arts atm avi berkdb bmp crypt cscope cups directfb doc dvb dvd fam fbcon fusion gif gtk gtk2 imap innodb java jikes joystick jpeg junit kde -ldap lesstif libg++ libwww lirc mad maildir matrox mmx motif mozilla mpeg mysql ncurses nocd odbc oggvorbis oss pam pdflib perl png postgres python qt quicktime readline samba spell sse ssl svga tcltk tiff truetype usb videos X Xaw3d xml xml2 xv zlib"
This file is provided by the package "app-crypt/mit-krb5" Have you got it installed? (if yes, what version?) @gentoo developers: For the fact that an header from "app-crypt/mit-krb5" is NEEDED for the compilation of kdelibs I think that probably "app-crypt/mit-krb5" MUST be a DEPEND of kdelibs. What do you think?
I wasn't very correct, you have already "app-crypt/heimdal" that is a blocker of mit-krb5 (because it also provides virtual/krb5). For me with mit-krb5 it works well. The fact is that the include directory isn't setted correctly to -I=/ust/include/heimdal (like you see in the compilation options), so probably the configure script of kdelibs don't work correctly. I've digged in the configure and is quite difficult to understand, probably I have to install heimdal and look how it works and why it doesn't set the right -I include dirs. I'll let you know...
I do have heimdal and not mit-krb5. heimdal is not in my world file so it will have been a dependency of something else. [ Results for search key : heimdal ] [ Applications found : 1 ] * app-crypt/heimdal Latest version available: 0.6.2 Latest version installed: 0.6 Size of downloaded files: 3,235 kB Homepage: http://www.pdc.kth.se/heimdal/ Description: Kerberos 5 implementation from KTH License: as-is [ Results for search key : mit-krb5 ] [ Applications found : 1 ] * app-crypt/mit-krb5 Latest version available: 1.3.4 Latest version installed: [ Not Installed ] Size of downloaded files: 6,220 kB Homepage: http://web.mit.edu/kerberos/www/ Description: MIT Kerberos V License: as-is
Simone: It's not needed, but optional as it seems - and not the only missing optional dependency in kde-base/* ebuilds. It's some work to get all the arch herds to test the relevant ebuilds/versions (in this case I don't even know which of the packages providing virtual/krb5 are supported by kde) and to fix all the configure/make stuff; A lot of dependencies are either implicit or autodetected by the configure scripts (even though they're --disable'd explicitly). This needs a few patches. Bug 52994 is a - outdated and uncomplete - starting point, if you want to work on it. More: rdesktop, openexr, ... hm :) Note: I was too lazy to rewrite the above sentence regarding kerberos after mid-air collision...
@James: I've installed heimdal on my system and the kdelibs's configure worked well and it finds the right dirs: if /bin/sh ../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../dcop -I../../kio/kssl -I../../interfaces -I../../kio/httpfilter -I../../dcop -I../../libltdl -I../../kdefx -I../../kdecore -I../../kdeui -I../../kio -I../../kio/kio -I../../kio/kfile -I../.. -I/usr/qt/3/include -I/usr/X11R6/include -I/usr/kde/cvs/include -I/usr/include/heimdal -I/usr/athena/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -MT http.lo -MD -MP -MF ".deps/http.Tpo" -c -o http.lo http.cc; \ then mv -f ".deps/http.Tpo" ".deps/http.Plo"; else rm -f ".deps/http.Tpo"; exit 1; fi like you'll see "-I/usr/include/heimdal -I/usr/athena/include" are included. Can you post what's the output of "krb5-config --cflags"? You can also try reinstalling/upgrading heimdal.
@Carsten: Thanks for pointing me to that bug report. I'll be happy to help you posting some patches.
if you want to metabug them I can work on getting them integrated upstream.
I have merged heimdal 0.6.2, this changed the output from krb5-config --cflags from: -I/usr/include -I/use/include to: -I/usr/include/heimdal This looks promising, now I'm trying kdelibs again...
kdelibs built ok, so heimdal-0.6.2 was required.
Well! Probably the old ebuild/program version doesn't set correctly the output of krb5-config.
Can something be done to make kdelibs require at least heimdal-0.6.2 *if* heimdal is what is providing krb5?
By now in the portage tree there's only >=heimdal-6.2 I've posted a patch on Bug #52994 that added this dep in kdelibs. but it can always be changed to force the heimdal version, for example with something like this: kerberos? ( || ( app-crypt/mit-krb5 >=app-crypt/heimdal-0.6.2 ) )
If someone has heimdal 0.6 installed already because something else required it (like I do) then they will surely have the same problem as I did unless kdelibs does force the version to 0.6.2. (heimdal is not in my world file, so it doesn't get upgraded unless something requires it to be.)
Putting this in the ebuild should be more correct (I was thinking that if a user do an "emerge -Dun world" it will update heimdal too, but not everyone pass the -D options to emerge ). By the way, I tested this change to the patch and it seems to work. If the developers thinks that it's ok, it should only be applied.
It's been a few months with >=heimdal-6.2 only in portage. I think this can be closed now.
I think so. also because we are using "virtual/krb5" and I don't know a way to force the heimdal version.
closing.