Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78464 - media-libs/jpeg-6b-r4 fails to emerge on x86 with linking error
Summary: media-libs/jpeg-6b-r4 fails to emerge on x86 with linking error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 21:06 UTC by Mike Bissett
Modified: 2005-01-17 21:29 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 Mike Bissett 2005-01-17 21:06:23 UTC
doing a straight 
 # emerge jpeg 

causes this linking error: 

libtool --mode=link i686-pc-linux-gnu-gcc -o libjpeg.la jcapimin.lo jcapistd.lo jctrans.lo jcparam.lo jdatadst.lo jcinit.lo jcmaster.lo jcmarker.lo jcmainct.lo jcprepct.lo jccoefct.lo jccolor.lo jcsample.lo jchuff.lo jcphuff.lo jcdctmgr.lo jfdctfst.lo jfdctflt.lo jfdctint.lojdapimin.lo jdapistd.lo jdtrans.lo jdatasrc.lo jdmaster.lo jdinput.lo jdmarker.lo jdhuff.lo jdphuff.lo jdmainct.lo jdcoefct.lo jdpostct.lo jddctmgr.lo jidctfst.lo jidctflt.lo jidctint.lo jidctred.lo jdsample.lo jdcolor.lo jquant1.lo jquant2.lo jdmerge.lo jcomapi.lo jutils.lojerror.lo jmemmgr.lo jmemnobs.lo \
        -rpath /usr/lib -version-info 62
g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtbeginS.o  .libs/jcapimin.o .libs/jcapistd.o .libs/jctrans.o .libs/jcparam.o .libs/jdatadst.o .libs/jcinit.o .libs/jcmaster.o .libs/jcmarker.o .libs/jcmainct.o .libs/jcprepct.o .libs/jccoefct.o .libs/jccolor.o .libs/jcsample.o .libs/jchuff.o .libs/jcphuff.o .libs/jcdctmgr.o .libs/jfdctfst.o.libs/jfdctflt.o .libs/jfdctint.o .libs/jdapimin.o .libs/jdapistd.o .libs/jdtrans.o .libs/jdatasrc.o .libs/jdmaster.o .libs/jdinput.o .libs/jdmarker.o .libs/jdhuff.o .libs/jdphuff.o .libs/jdmainct.o .libs/jdcoefct.o .libs/jdpostct.o .libs/jddctmgr.o .libs/jidctfst.o .libs/jidctflt.o .libs/jidctint.o .libs/jidctred.o .libs/jdsample.o .libs/jdcolor.o .libs/jquant1.o .libs/jquant2.o .libs/jdmerge.o .libs/jcomapi.o .libs/jutils.o .libs/jerror.o .libs/jmemmgr.o .libs/jmemnobs.o  -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 -L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crtn.o  -Wl,-soname -Wl,libjpeg.so.62 -o .libs/libjpeg.so.62.0.0
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crti.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtbeginS.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtendS.o: No such file or directory
g++: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crtn.o: No such file or directory
make: *** [libjpeg.la] Error 1

doing an 

# ebuild jpeg-6b-r4.ebuild unpack

and running configure and make manually in the output work dir does not produce the linking error.

I do have a /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5 directory which should be the one being used.


Reproducible: Always
Steps to Reproduce:
1. emerge jpeg
or 1. ebuild jpeg-6b-r4.ebuild compile

Actual Results:  
no emerge 

Expected Results:  
emerged succesfully 

Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, 
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r5 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz 
Gentoo Base System version 1.4.16 
Autoconf: sys-devel/autoconf-2.59-r5 
Automake: sys-devel/automake-1.8.5-r1 
Binutils: sys-devel/binutils-2.15.92.0.2-r1 
Headers:  sys-kernel/linux-headers-2.4.21-r1 
Libtools: sys-devel/libtool-1.5.2-r7 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo 
http://www.zentek-international.com/mirrors/gentoo/ 
http://mymirror.asiaosc.org/gentoo/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="" 
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" 
USE="acl apm arts avi berkdb bitmap-fonts crypt cups encode f77 font-server 
foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imlib innodb ipv6 jpeg kde 
kerberos ldap libclamav libg++ libwww mad mikmod mmx motif mpeg mysql ncurses 
nls oggvorbis opengl oss pam pdflib perl png python qt quicktime quotas 
readline samba sdl spell ssl svga tcpd tiff truetype truetype-fonts 
type1-fonts vhosts x86 xml2 xmms xv zlib"
Comment 1 Mike Bissett 2005-01-17 21:11:07 UTC
Hmm just go the same error installing sys-apps/attr-2.4.19, so i guess this is not a problem in media-libs/jpeg-6b-r4. I cant find any references to gcc-3.3.4 anywhere on my system..
Comment 2 Keri Harris gentoo-dev 2005-01-17 21:12:55 UTC
Looks like you need to:

     # fix_libtool_files.sh 3.3.4
Comment 3 Mike Bissett 2005-01-17 21:29:39 UTC
Hmm as per this forum post http://forums.gentoo.org/viewtopic.php?t=281339&highlight=fixlibtoolfiles

I changed my $CHOST /etc/make.conf to have a - infront of the arch.. now it works on all packages. The default make.conf that comes with the 2004.3 tarballs doesnt seem to have this - included in the chost, was this a gcc 3.3.5 change.