Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 64053 - kdelibs-3.3.0 fails to build. This may be similar to bug 59034.
Summary: kdelibs-3.3.0 fails to build. This may be similar to bug 59034.
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 14:09 UTC by James Gatt
Modified: 2005-01-03 02:50 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 James Gatt 2004-09-14 14:09:44 UTC
/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"
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-09-14 15:39:03 UTC
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?

Comment 2 Simone Gotti (RETIRED) gentoo-dev 2004-09-14 15:55:32 UTC
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...
Comment 3 James Gatt 2004-09-14 16:11:14 UTC
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

Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2004-09-14 16:16:40 UTC
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...
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2004-09-14 16:44:36 UTC
@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.
Comment 6 Simone Gotti (RETIRED) gentoo-dev 2004-09-14 16:46:17 UTC
@Carsten:
Thanks for pointing me to that bug report. I'll be happy to help you posting some patches.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2004-09-14 18:32:21 UTC
if you want to metabug them I can work on getting them integrated upstream.
Comment 8 James Gatt 2004-09-15 16:55:41 UTC
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...
Comment 9 James Gatt 2004-09-16 00:06:24 UTC
kdelibs built ok, so heimdal-0.6.2 was required.
Comment 10 Simone Gotti (RETIRED) gentoo-dev 2004-09-16 00:32:30 UTC
Well! 
Probably the old ebuild/program version doesn't set correctly the output of krb5-config.
Comment 11 James Gatt 2004-09-16 02:02:00 UTC
Can something be done to make kdelibs require at least heimdal-0.6.2 *if* heimdal is what is providing krb5?
Comment 12 Simone Gotti (RETIRED) gentoo-dev 2004-09-16 02:21:17 UTC
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 )
        )
Comment 13 James Gatt 2004-09-16 02:54:46 UTC
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.)
Comment 14 Simone Gotti (RETIRED) gentoo-dev 2004-09-16 06:13:52 UTC
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.
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-02 07:36:45 UTC
It's been a few months with >=heimdal-6.2 only in portage. I think this can
be closed now.
Comment 16 Simone Gotti (RETIRED) gentoo-dev 2005-01-02 07:42:56 UTC
I think so. also because we are using "virtual/krb5" and I don't know a way to force the heimdal version.
Comment 17 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-03 02:50:56 UTC
closing.