Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68529 - kdelibs 3.3.0 kio_help.la and jpeg mess
Summary: kdelibs 3.3.0 kio_help.la and jpeg mess
Status: RESOLVED DUPLICATE of bug 41432
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 04:35 UTC by Kimmo Sundqvist
Modified: 2005-07-17 13:06 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 Kimmo Sundqvist 2004-10-22 04:35:04 UTC
kdelibs fails to compile w/ and w/o distcc
I don't know of any previous gcc version, so I didn't try /sbin/fix_libtool_files.sh


Reproducible: Always
Steps to Reproduce:
1. emerge koffice on a machine without any previous KDE
2. 
3.

Actual Results:  
/bin/sh ../libtool --silent --mode=link --tag=CXX g++  -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 -Os -mcpu=i686 -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  -R /usr/kde/3.3/lib -R /usr/qt/3/lib -R /usr/X11R6/lib -R/usr/lib -R/usr/lib -
L/usr/X11R6/lib -L/usr/qt/3/lib -L/usr/kde/3.3/lib   -o meinproc  meinproc.o xslt_pure.o 
libkbzipfilter_dummy.la -L/usr/lib -lxslt -lxml2 -lz -lpthread -lm -L/usr/lib -lxml2 -lz -lpthread -lm
/usr/lib/libjpeg.a(jcapimin.o)(.text+0x0): In function `jpeg_CreateCompress':
: multiple definition of `jpeg_CreateCompress'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0x0): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0xd8): In function `jpeg_destroy_compress':
: multiple definition of `jpeg_destroy_compress'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0xd8): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0xe1): In function `jpeg_abort_compress':
: multiple definition of `jpeg_abort_compress'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0xe1): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0xea): In function `jpeg_suppress_tables':
: multiple definition of `jpeg_suppress_tables'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0xea): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0x131): In function `jpeg_finish_compress':
: multiple definition of `jpeg_finish_compress'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0x131): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0x211): In function `jpeg_write_marker':
: multiple definition of `jpeg_write_marker'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0x211): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0x286): In function `jpeg_write_m_header':
: multiple definition of `jpeg_write_m_header'
[Here some hundreds of lines of different errors with libjpeg.a mentioned in most if not all]
[on the middle of that: ]
./.libs/libkbzipfilter_dummy.a(jmemnobs.o)(.text+0x58): first defined here
/usr/lib/libjpeg.a(jmemnobs.o)(.text+0x5f): In function `jpeg_mem_term':
: multiple definition of `jpeg_mem_term'
./.libs/libkbzipfilter_dummy.a(jmemnobs.o)(.text+0x5f): first defined here
collect2: ld returned 1 exit status
distcc[19997] ERROR: compile (null) on localhost failed
make[2]: *** [kio_ghelp.la] Error 1
make[2]: *** Waiting for unfinished jobs....
/usr/lib/libjpeg.a(jcapimin.o)(.text+0x0): In function `jpeg_CreateCompress':
: multiple definition of `jpeg_CreateCompress'
./.libs/libkbzipfilter_dummy.a(jcapimin.o)(.text+0x0): first defined here
/usr/lib/libjpeg.a(jcapimin.o)(.text+0xd8): In function `jpeg_destroy_compress':
: multiple definition of `jpeg_destroy_compress'
[More and more errors with jibjpeg.a in them, and finally:]
/usr/lib/libjpeg.a(jmemnobs.o)(.text+0x5f): In function `jpeg_mem_term':
: multiple definition of `jpeg_mem_term'
./.libs/libkbzipfilter_dummy.a(jmemnobs.o)(.text+0x58): first defined here
/usr/lib/libjpeg.a(jmemnobs.o)(.text+0x5f): In function `jpeg_mem_term':
: multiple definition of `jpeg_mem_term'
./.libs/libkbzipfilter_dummy.a(jmemnobs.o)(.text+0x5f): first defined here
collect2: ld returned 1 exit status
distcc[20038] ERROR: compile (null) on localhost failed
make[2]: *** [kio_help.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/kdelibs-3.3.0/work/kdelibs-3.3.0/kdoctools'
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 142, Exitcode 2
!!! died running emake, kde_src_compile:make

Expected Results:  
kdelibs shoud have emerged without problems

Portage 2.0.51 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.8.1 i686)
=================================================================
System uname: 2.6.8.1 i686 Pentium II (Deschutes)
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux-headers-2.4.19-r1,sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -mcpu=i686 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.
3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /
var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks sandbox"
GENTOO_MIRRORS=" ftp://192.168.0.2/ ftp://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://192.168.0.2/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts crypt cups encode esd f77 foomaticdb gdbm gif gnome 
gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls nptl oggvorbis opengl 
oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms 
xprint xv zlib"
Comment 1 Kimmo Sundqvist 2004-10-22 04:49:28 UTC
The compile has previously failed with MAKEOPTS= -j1
Now trying with -O2, MAKEOPTS= -j1 and no distcc
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-10-22 08:53:09 UTC
the problem isn't in kde, it's in your jpeg libraries.
Comment 3 Kimmo Sundqvist 2004-10-25 06:15:49 UTC
I have media-libs/jpeg-6b-r3 installed, and I see no other versions available.  Do you suggest I give up using .jpeg images, or that I recompile the library until it works with kdelibs, or is there a third solution?
Comment 4 Kimmo Sundqvist 2004-10-25 12:49:47 UTC
Compiling the jpeg library with -O2, no distcc.  The machine used to take 3 hours to get to the point where the error is.  It has now been working for 6 hours with no problems.  I'm going to let it finish and then try with distcc and with -Os for kdelibs (while still keeping the jpeg library that is compiled with -O2).

If this really is a jpeg problem then I hope I am doing the reassigning correctly.
Comment 5 Kimmo Sundqvist 2004-10-26 01:03:46 UTC
The problem was not with MAKEOPTS or distcc, since I now had -j4 and distcc in use, and the compile of kdelibs finished successfully.  Both jpeg library and kdelibs are still -O2, but I'm now trying a -Os kdelibs "on top" of a -O2 jpeg library.

Two hours later, kdelibs 3.3.0 was installed successfully.  I used -Os, mcpu=i686, distcc and MAKEOPTS=-j4.  This means AFAIK that the jpeg library is incompatible with -Os, and -Os should be replaced with -O2.  Or is there a fix coming soon?
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-02 09:13:24 UTC

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