Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to update libmpeg2 - compile error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
loginx
n00b
n00b


Joined: 14 Aug 2002
Posts: 68
Location: Windsor Ontario, Canada

PostPosted: Mon Sep 15, 2003 2:52 pm    Post subject: Unable to update libmpeg2 - compile error Reply with quote

Hi there.
While trying to update libmpeg2 to the most recent version in portage, I am getting this scenario:

/bin/sh ../libtool --mode=link gcc -Wall -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=16 -msse -falign-labels=1 -falign-loops=16 -falign-jumps=16 -O3 -fomit-frame-pointer -mcpu=pentiumpro -o sample1 sample1.o ../libmpeg2/libmpeg2.la
/bin/sh ../libtool --mode=link gcc -Wall -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=16 -msse -falign-labels=1 -falign-loops=16 -falign-jumps=16 -O3 -fomit-frame-pointer -mcpu=pentiumpro -o sample2 sample2.o ../libmpeg2/libmpeg2.la ../libvo/libvo.a -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXv -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
mkdir .libs
gcc -Wall -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=16 -msse -falign-labels=1 -falign-loops=16 -falign-jumps=16 -O3 -fomit-frame-pointer -mcpu=pentiumpro -o .libs/sample1 sample1.o ../libmpeg2/.libs/libmpeg2.so
creating sample1
libtool: link: cannot find the library `'
make[1]: *** [sample2] Error 1
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/doc'
make: *** [all-recursive] Error 1
Making all in autotools
make[1]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/autotools'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/autotools'
Making all in include
make[1]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/include'
make all-am
make[2]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/include'
make[2]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/include'
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/include'
Making all in libmpeg2
make[1]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/libmpeg2'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/libmpeg2'
Making all in libvo
make[1]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/libvo'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/libvo'
Making all in doc
make[1]: Entering directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/doc'
/bin/sh ../libtool --mode=link gcc -Wall -march=athlon-xp -pipe -fomit-frame-pointer -falign-functions=16 -msse -falign-labels=1 -falign-loops=16 -falign-jumps=16 -O3 -fomit-frame-pointer -mcpu=pentiumpro -o sample2 sample2.o ../libmpeg2/libmpeg2.la ../libvo/libvo.a -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lXv -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
libtool: link: cannot find the library `'
make[1]: *** [sample2] Error 1
make[1]: Leaving directory `/var/tmp/portage/libmpeg2-0.3.2_pre20030625/work/mpeg2dec-0.3.2-cvs/doc'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libmpeg2-0.3.2_pre20030625 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! (no error message)

It seems to be a Makefile-related problem, am I right?
Back to top
View user's profile Send private message
Apolonius
Guru
Guru


Joined: 24 Jan 2003
Posts: 325

PostPosted: Mon Sep 15, 2003 3:05 pm    Post subject: Reply with quote

Could you check in /usr/lib/libSDL.la if you have many instances of "-lpthread" in the dependancy_libs ?
If this is the case, you can try to keep only one -lpthread, delete the others.
Back to top
View user's profile Send private message
loginx
n00b
n00b


Joined: 14 Aug 2002
Posts: 68
Location: Windsor Ontario, Canada

PostPosted: Mon Sep 15, 2003 3:29 pm    Post subject: Reply with quote

Code:
cat /usr/lib/libSDL.la
# libSDL.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.3.5 (1.385.2.206 2000/05/27 11:12:27)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.
 
# The name that we can dlopen(3).
dlname=''
 
# Names of this library.
library_names='libSDL-1.2.so.0.0.6 libSDL-1.2.so.0 libSDL.so'
 
# The name of the static archive.
old_library='libSDL.a'
 
# Libraries that this one depends upon.
dependency_libs=' -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -lm -ldl -lasound -L/usr/X11R6/lib -lX11 -lXext -lvga -laa'
 
# Version information for libSDL.
current=0
age=0
revision=6
 
# Is this an already installed library?
installed=yes
 
# Directory that this library needs to be installed in:
libdir='/usr/lib'


Hmmm... interesting...
I took all the -pthread's off but one and I'm still getting the error.
I do not have -threads in my USE flags (if it's related in any way), also, should I change this -pthread to -lpthread?
Back to top
View user's profile Send private message
loginx
n00b
n00b


Joined: 14 Aug 2002
Posts: 68
Location: Windsor Ontario, Canada

PostPosted: Mon Sep 15, 2003 3:35 pm    Post subject: Reply with quote

Actually I just tried that and switching the -pthread by -lpthread on that file did fix the compile problem.
Is this going to cause any further problem on my system or did I make the right decision?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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