Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] kdelibs 4 can't link libjpeg
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Wim VDM
n00b
n00b


Joined: 12 Dec 2004
Posts: 21

PostPosted: Fri Jan 25, 2008 12:21 pm    Post subject: [SOLVED] kdelibs 4 can't link libjpeg Reply with quote

Hi,

I already solved my problem, but I didn't find the solution here, so I'll post it so others find out what's wrong more easily than than me...

The problem: I wanted to try KDE4, but kdelibs-4.0.0 failed complaining libjpeg failed to link:

Code:

[ 98%] Building CXX object khtml/CMakeFiles/khtml.dir/khtmlpartadaptor.o
/var/tmp/portage/kde-base/kdelibs-4.0.0/work/kdelibs-4.0.0/khtml/imload/decoders/pngloader.cpp: In member function ‘virtual int khtmlImLoad::PNGLoader::processData(uchar*, int)’:
/var/tmp/portage/kde-base/kdelibs-4.0.0/work/kdelibs-4.0.0/khtml/imload/decoders/pngloader.cpp:235: warning: argument ‘length’ might be clobbered by ‘longjmp’ or ‘vfork’
[ 98%] Building CXX object khtml/CMakeFiles/khtml.dir/kcookiejar_interface.o
Linking CXX shared library ../lib/libkhtml.so
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::khtml_jpeg_source_mgr::khtml_jpeg_source_mgr()':
jpegloader.cpp:(.text+0x9f): undefined reference to `jpeg_resync_to_restart'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::khtml_jpeg_source_mgr::khtml_jpeg_source_mgr()':
jpegloader.cpp:(.text+0x11f): undefined reference to `jpeg_resync_to_restart'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::Private()':
jpegloader.cpp:(.text+0x1e7): undefined reference to `jpeg_std_error'
jpegloader.cpp:(.text+0x1fd): undefined reference to `jpeg_CreateDecompress'
jpegloader.cpp:(.text+0x205): undefined reference to `jpeg_std_error'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::Private()':
jpegloader.cpp:(.text+0x297): undefined reference to `jpeg_std_error'
jpegloader.cpp:(.text+0x2ad): undefined reference to `jpeg_CreateDecompress'
jpegloader.cpp:(.text+0x2b5): undefined reference to `jpeg_std_error'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::processData(unsigned char*, int)':
jpegloader.cpp:(.text+0x860): undefined reference to `jpeg_consume_input'
jpegloader.cpp:(.text+0x8de): undefined reference to `jpeg_start_output'
jpegloader.cpp:(.text+0x97a): undefined reference to `jpeg_read_scanlines'
jpegloader.cpp:(.text+0x9ea): undefined reference to `jpeg_read_header'
jpegloader.cpp:(.text+0xb15): undefined reference to `jpeg_finish_decompress'
jpegloader.cpp:(.text+0xb1d): undefined reference to `jpeg_destroy_decompress'
jpegloader.cpp:(.text+0xb3d): undefined reference to `jpeg_has_multiple_scans'
jpegloader.cpp:(.text+0xb5b): undefined reference to `jpeg_calc_output_dimensions'
jpegloader.cpp:(.text+0xb9f): undefined reference to `jpeg_start_decompress'
jpegloader.cpp:(.text+0xcba): undefined reference to `jpeg_finish_output'
jpegloader.cpp:(.text+0xcc2): undefined reference to `jpeg_input_complete'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::~Private()':
jpegloader.cpp:(.text+0x168): undefined reference to `jpeg_destroy_decompress'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::~Private()':
jpegloader.cpp:(.text+0x188): undefined reference to `jpeg_destroy_decompress'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.0.0] Error 1
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make: *** [all] Error 2
 *
 * ERROR: kde-base/kdelibs-4.0.0 failed.
 * Call stack:
 *              ebuild.sh, line 1701:  Called dyn_compile
 *              ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *              ebuild.sh, line   44:  Called src_compile
 *   kdelibs-4.0.0.ebuild, line  124:  Called kde4-base_src_compile
 *       kde4-base.eclass, line  298:  Called kde4-base_src_make
 *       kde4-base.eclass, line  345:  Called cmake-utils_src_make
 *     cmake-utils.eclass, line  146:  Called die
 * The specific snippet of code:
 *              emake "$@" || die "Make failed!"
 *  The die message:
 *   Make failed!
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/kde-base:kdelibs-4.0.0:20080125-083914.log'.
 *


After a some searching, I've found what was wrong: Cmake and ibm-jdk-bin-1.4.2.9 are conflicting.
cmake tries to link with "/opt/ibm-jdk-bin-1.4.2.9/jre/bin/libjpeg.so" instead of "/usr/lib64/libjpeg.so".

I've found a bug that seems related, but is about another package: https://bugs.gentoo.org/show_bug.cgi?id=187054

I've found no "real" solution, but simply removing ibm-jdk-bin does the trick:
Code:
emerge --unmerge =ibm-jdk-bin-1.4.2.9


Hope this helps someone!
Back to top
View user's profile Send private message
andriy155
n00b
n00b


Joined: 05 Feb 2006
Posts: 65
Location: Kyiv, Ukraine

PostPosted: Wed Mar 12, 2008 8:16 am    Post subject: Reply with quote

I think, I am stuck around the same spot, but I don't think my problem is java-related. Any ideas?

[ 97%] Building CXX object khtml/CMakeFiles/khtml.dir/kcookiejar_interface.o
Linking CXX shared library ../lib/libkhtml.so
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o: file format not recognized; treating as linker script
/usr/lib/gcc/i686-pc-linux-gnu/4.2.3/../../../../i686-pc-linux-gnu/bin/ld:CMakeFiles/khtml.dir/html/html_canvasimpl.o:1: syntax error
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.0.0] Error 1
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make: *** [all] Error 2
*
* ERROR: kde-base/kdelibs-4.0.2 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2593: Called kde4-base_src_compile
* environment, line 1898: Called kde4-base_src_make
* environment, line 1928: Called cmake-utils_src_make
* environment, line 677: Called die
* The specific snippet of code:
* emake "$@" || die "Make failed!";
* The die message:
* Make failed!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum