Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265945 - Failure to emerge kde-base/kdelibs-4.2.2: error in linking "../lib/libkhtml.so"
Summary: Failure to emerge kde-base/kdelibs-4.2.2: error in linking "../lib/libkhtml.so"
Status: RESOLVED DUPLICATE of bug 206895
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 05:43 UTC by Ashu Tiwary
Modified: 2009-07-05 16:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kde-base/kdelibs-4.2.2 build log with parallel make and LDFLAGS="-Wl,--as-needed,-O1,--sort-common" (buildlog_w_parallel_make_w_ldflags.log,1.49 MB, text/plain)
2009-04-13 05:47 UTC, Ashu Tiwary
Details
kde-base/kdelibs-4.2.2 build log without parallel make and LDFLAGS="-Wl,--as-needed,-O1,--sort-common" (buildlog_wo_parallel_make_wo_ldflags.log,1.30 MB, text/plain)
2009-04-13 05:47 UTC, Ashu Tiwary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashu Tiwary 2009-04-13 05:43:29 UTC
Can not build kde-base/kdelibs-4.2.2 (I'm upgrading from kde-base/kdelibs-4.2.1 as part of moving from kde-meta-4.2.1 to kde-base/kde-meta-4.2.1).

I've tried w/ + w/o parallel make, w/ + w/o LDFLAGS ("-Wl,--as-needed,-O1,--sort-common") - no difference - same error.

Due to the location of the error, I'm going to try re-emerging w/o "jpeg2k" USE flag enabled to see if I can get past this error - I will update after that attempt.

Reproducible: Always

Steps to Reproduce:
1. emerge -v kde-base/kde-meta
2. When "kde-base/kdelibs-4.2.2" is being built, error occurs 76% of the way ([ 76%] Building CXX object khtml/CMakeFiles/khtml.dir/kcookiejar_interface.o)


Actual Results:  
Above steps fail with:

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+0x92): 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+0x112): undefined reference to `jpeg_resync_to_restart'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::processData(unsigned char*, int)':
jpegloader.cpp:(.text+0x3c1): undefined reference to `jpeg_read_scanlines'
jpegloader.cpp:(.text+0x432): undefined reference to `jpeg_consume_input'
jpegloader.cpp:(.text+0x48b): undefined reference to `jpeg_start_output'
jpegloader.cpp:(.text+0x4ed): undefined reference to `jpeg_read_header'
jpegloader.cpp:(.text+0x53f): undefined reference to `jpeg_has_multiple_scans'
jpegloader.cpp:(.text+0x55c): undefined reference to `jpeg_calc_output_dimensions'
jpegloader.cpp:(.text+0x58e): undefined reference to `jpeg_start_decompress'
jpegloader.cpp:(.text+0x70c): undefined reference to `jpeg_finish_decompress'
jpegloader.cpp:(.text+0x714): undefined reference to `jpeg_destroy_decompress'
jpegloader.cpp:(.text+0x7af): undefined reference to `jpeg_finish_output'
jpegloader.cpp:(.text+0x7b7): undefined reference to `jpeg_input_complete'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::~Private()':
jpegloader.cpp:(.text+0xb21): undefined reference to `jpeg_destroy_decompress'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::~Private()':
jpegloader.cpp:(.text+0xcc1): undefined reference to `jpeg_destroy_decompress'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::Private()':
jpegloader.cpp:(.text+0xd89): undefined reference to `jpeg_resync_to_restart'
jpegloader.cpp:(.text+0xdb2): undefined reference to `jpeg_std_error'
jpegloader.cpp:(.text+0xdd1): undefined reference to `jpeg_CreateDecompress'
jpegloader.cpp:(.text+0xdd9): undefined reference to `jpeg_std_error'
CMakeFiles/khtml.dir/imload/decoders/jpegloader.o: In function `khtmlImLoad::JPEGLoader::Private::Private()':
jpegloader.cpp:(.text+0x1049): undefined reference to `jpeg_resync_to_restart'
jpegloader.cpp:(.text+0x1072): undefined reference to `jpeg_std_error'
jpegloader.cpp:(.text+0x1091): undefined reference to `jpeg_CreateDecompress'
jpegloader.cpp:(.text+0x1099): undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make[2]: *** [lib/libkhtml.so.5.2.0] Error 1
make[1]: *** [khtml/CMakeFiles/khtml.dir/all] Error 2
make: *** [all] Error 2
 *
 * ERROR: kde-base/kdelibs-4.2.2 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 3143:  Called kde4-base_src_compile
 *             environment, line 2333:  Called cmake-utils_src_compile
 *             environment, line  801:  Called cmake-utils_src_make
 *             environment, line  880:  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 '/mnt/portage/logs/kde-base:kdelibs-4.2.2:20090413-044339.log'.
 * The ebuild environment file is located at '/mnt/portage/tmp/portage/kde-base/kdelibs-4.2.2/temp/environment'.

Expected Results:  
Successful emerge of kde-base/kdelibs-4.2.2 and subsequently moving on to other kde packages

emerge --info:

Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.0
Timestamp of tree: Mon, 13 Apr 2009 03:15:02 +0000
app-shells/bash:     4.0_p17
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r15, 2.5.4-r2, 2.6.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/lib/fax /usr/share/config /var/lib/hsqldb /var/spool/fax/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/mnt/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://mirror.datapipe.net/gentoo ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB en_IN hi hi_IN de de_DE es es_ES es_MX fr fr_FR it it_IT ja ja_JP ko ko_KR ru ru_RU zh zh_CN zh_HK zh_TW"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/mnt/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local /usr/local/portage/layman/jokey /usr/local/portage/layman/java-overlay /usr/local/portage/layman/vmware /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cli cracklib crypt cups dbus doc dri examples fortran gdbm gpm hal iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sample session source spl sse sse2 sse3 ssl ssse3 sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="adc65 agfa-cl20 aox barbie canon casio clicksmart310 digigr8 digita dimera directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroid ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 jl2005a topfield" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics virtualbox vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB en_IN hi hi_IN de de_DE es es_ES es_MX fr fr_FR it it_IT ja ja_JP ko ko_KR ru ru_RU zh zh_CN zh_HK zh_TW" LIRC_DEVICES="all" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml" USERLAND="GNU" VIDEO_CARDS="nvidia nv vmware fbdev v4l vesa vga virtualbox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Ashu Tiwary 2009-04-13 05:47:12 UTC
Created attachment 188185 [details]
kde-base/kdelibs-4.2.2 build log with parallel make and LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
Comment 2 Ashu Tiwary 2009-04-13 05:47:54 UTC
Created attachment 188186 [details]
kde-base/kdelibs-4.2.2 build log without parallel make and LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
Comment 3 Ashu Tiwary 2009-04-13 06:20:43 UTC
OK - removing "jpeg2k" from the kde-base/kdelibs USE flags had no impact - same error, in same place.
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-13 10:51:39 UTC
FWIW, those symbols are from media-libs/jpeg
Comment 5 Ashu Tiwary 2009-04-13 15:40:52 UTC
Yea -I had tried re-emerging media-libs/jpeg - no effect (kde-base/kdelibs-4.2.2 still failed to emerge - in same place).
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-04-14 21:01:02 UTC
Does it happen without the --sort-common?
Comment 7 Ashu Tiwary 2009-04-14 21:30:58 UTC
Yes, I had tried both w/ my standard LDFLAGS ("-Wl,--as-needed,-O1,--sort-common") as well as without - no difference.
Comment 8 Rolf S. Arvidson 2009-04-16 23:07:26 UTC
Could this be related to ibm-jdk-bin:1.4 ROOTPATH (see bugs http://bugs.gentoo.org/241390, http://bugs.gentoo.org/206895)
Comment 9 Rolf S. Arvidson 2009-04-17 00:06:45 UTC
Added:
I had the build error in the identical place as the OP (in kde-base/kdelibs-4.2.2-r1). I use ibm-jdk-bin-1.4.2.13; after commenting out my ROOTPATH statement in /etc/env.d/20java:

# ROOTPATH=/opt/ibm-jdk-bin-1.4.2.13/bin:/opt/ibm-jdk-bin-1.4.2.13/jre/bin

and of course

# env-update && source /etc/profile

the ebuild finished successfully ... obviously this is just a work-around, not a real solution, and I don't know if this is even related to OP's issue, but I posted anyway as a possibility.

(In reply to comment #8)
> Could this be related to ibm-jdk-bin:1.4 ROOTPATH (see bugs
> http://bugs.gentoo.org/241390, http://bugs.gentoo.org/206895)
> 

Comment 10 Ashu Tiwary 2009-04-17 05:24:16 UTC
My /etc/env.d/20java contained information about jdk-142 (odd - system vm is/was set to jdk6-13) - I removed the information about jdk142 and replaced it with the (correct) jdk6-13 information (+ env-update, logoff, logon) - and was able to emerge successfully (kde-base/kdelibs-4.2.2-r1) - so, it is not ROOTPATH itself, but specifically, ROOTPATH when set to point to jdk142 (this also appears to be the case as listed in bug #206895 - comment #18 - which I made back in Dec for a different system - I didn't remember that when I opened this bug - and, obviously, didn't search well enough....).

I think this should prolly be marked as dup of 206895.
Comment 11 Maciej Mrozowski gentoo-dev 2009-07-05 16:42:08 UTC
Indeed

*** This bug has been marked as a duplicate of bug 206895 ***