This forum has been archived. All content is frozen. Please use KDE Discuss instead.

kdelibs build error

Tags: None
(comma "," separated)
User avatar
omega13a
Registered Member
Posts
5
Karma
0
OS

kdelibs build error

Sun Jul 24, 2011 7:01 pm
I'm trying to compile kdelibs 4.6.5 and I keep getting this error:

Linking CXX shared module ../../../lib/kded_kcookiejar.so
cd /home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/kioslave/http/kcookiejar && /usr/bin/cmake -E cmake_link_script CMakeFiles/kded_kcookiejar.dir/link.txt --verbose=1
/usr/local/bin/apg++ -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Werror=return-type -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags -Wl,--fatal-warnings -Wl,--no-undefined -lc -lutil -lstreamanalyzer -shared -Wl,-soname,kded_kcookiejar.so -o ../../../lib/kded_kcookiejar.so CMakeFiles/kded_kcookiejar.dir/kded_kcookiejar_automoc.o CMakeFiles/kded_kcookiejar.dir/kcookiejar.o CMakeFiles/kded_kcookiejar.dir/kcookieserver.o CMakeFiles/kded_kcookiejar.dir/kcookiewin.o CMakeFiles/kded_kcookiejar.dir/kcookieserveradaptor.o -L/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/lib ../../../lib/libkio.so.5.6.0 -lSM -lICE -lX11 -lXext -lXft -lXau -lXpm ../../../lib/libkdeui.so.5.6.0 /usr/lib/libQtSvg.so /usr/lib/libQtNetwork.so /usr/lib/libQtXml.so /usr/lib/libQtGui.so ../../../lib/libkdecore.so.5.6.0 /usr/lib/libQtDBus.so /usr/lib/libQtCore.so -lpthread -Wl,-rpath,/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/lib: -Wl,-rpath-link,/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/lib
cd /home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/kfile && /usr/bin/cmake -E cmake_symlink_library ../lib/libkfile.so.4.6.0 ../lib/libkfile.so.4 ../lib/libkfile.so
make[2]: Leaving directory `/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/CMakeFiles 20
make[2]: Leaving directory `/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu'
/usr/bin/cmake -E cmake_progress_report /home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu/CMakeFiles 34
[ 57%] Built target kded_kcookiejar
[ 57%] Built target kfile
make[1]: Leaving directory `/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu'
make: *** [all] Error 2
make: Leaving directory `/home/omega13a/rpmbuild/BUILD/kdelibs-4.6.5/i686-redhat-linux-gnu'
error: Bad exit status from /var/tmp/rpm-tmp.pxtqd6 (%build)


I'm compiling this on a Fedora 14 for my yum repo ( http://www.fedtrek.com/staff/omega13a/rpms/fc14/i386/ ).
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kdelibs build error

Mon Jul 25, 2011 4:45 am
The actual error(s) in question seem to be before this. Can you please pastebin the entire build log, including CMake configuration output?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
omega13a
Registered Member
Posts
5
Karma
0
OS

Re: kdelibs build error

Mon Jul 25, 2011 6:36 am

Last edited by omega13a on Fri Jul 29, 2011 8:51 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kdelibs build error

Wed Jul 27, 2011 6:49 am
It seems that somehow the output to gcc is being mangled.
Code: Select all
make[2]: *** No rule to make target `/gcc/i686-redhat-linux/4.5.1 -L/lib -lgcc_s -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err', needed by `lib/kio_http.so'. Stop.


Probably best to contact your distribution if they created this source RPM.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
omega13a
Registered Member
Posts
5
Karma
0
OS

Re: kdelibs build error

Fri Jul 29, 2011 6:46 pm
I noticed that /gcc/i686-redhat-linux/4.5.1 -L/lib -lgcc_s -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err also appears here:

-- Found GSSAPI: /gcc/i686-redhat-linux/4.5.1 -L/lib -lgcc_s -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err

Seems like the problem that causes the error happens a lot earlier.
bonassis
Registered Member
Posts
59
Karma
0
OS

Re: kdelibs build error

Fri Jul 29, 2011 8:08 pm
Please put only in your posts the relevant part! Only the part where the error occurs.

This way you do not get the very very very long post you've send here.

Stef
User avatar
omega13a
Registered Member
Posts
5
Karma
0
OS

Re: kdelibs build error

Fri Jul 29, 2011 8:53 pm
I put everything into a text file on my website. Here's a link for those to lazy (like me ;) ) to scroll up to find it:

http://www.fedtrek.com/staff/omega13a/k ... ld_log.txt

Also, if you get a page not found error, chances are my website is down. My website is hosted on a server in my house and I've been having on and off problems staying connected to the net today... *grumbles*
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: kdelibs build error

Sat Jul 30, 2011 8:20 am
Can you please check that the GSSAPI headers are installed on your system?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
omega13a
Registered Member
Posts
5
Karma
0
OS

Re: kdelibs build error

Sat Jul 30, 2011 1:06 pm
They are installed. After some playing around, I found a very crude fix to the problem. I had to hard code the values for GSSAPI_FLAVOR and GSSAPI_LIBS in the RPM's spec file. GSSAPI_LIBS was the problem. For whatever reason, it was being set to /gcc/i686-redhat-linux/4.5.1 -L/lib -lgcc_s -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err when it the correct value was -L/gcc/i686-redhat-linux/4.5.1 -L/lib -lgcc_s -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err. No clue why cmake was leaving out the the first -L...


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]