Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem compiling libdv
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
maor
Guru
Guru


Joined: 28 Aug 2002
Posts: 323

PostPosted: Fri May 02, 2003 11:12 pm    Post subject: problem compiling libdv Reply with quote

when i try to compile i got an error that i doesn't understand
Code:

alculating dependencies ...done!
>>> emerge (1 of 2) media-libs/libdv-0.98 to /
>>> md5 ;-) libdv-0.98.tar.gz
>>> Unpacking source...
>>> Unpacking libdv-0.98.tar.gz to /var/tmp/portage/libdv-0.98/work
>>> Source unpacked.
sdl
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD compatible install... /bin/install -c
checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognise dependant libraries... pass_all
checking command to parse nm output... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking whether to enable debugging... no
checking for pkg-config... /usr/bin/pkg-config
checking for glib >= 1.2.4 gtk+ >= 1.2.4... yes
checking GTK_CFLAGS... -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/gtk-1.2 -I/usr/X11R6/include
checking GTK_LIBS... -L/usr/X11R6/lib -lgtk -lgdk -lXi -lXext -lX11 -lm -lglib
checking target system type... i686-pc-linux-gnu
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.1.6... yes
checking for XvQueryAdaptors in -lXv... yes
checking for pthread_create in -lpthread... yes
checking for sqrt in -lm... yes
checking for poptGetContext in -lpopt... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking linux/videodev.h usability... yes
checking linux/videodev.h presence... yes
checking for linux/videodev.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking endian.h usability... yes
checking endian.h presence... yes
checking for endian.h... yes
checking machine/endian.h usability... no
checking machine/endian.h presence... no
checking for machine/endian.h... no
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for gettimeofday... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libdv.spec
config.status: creating libdv.pc
config.status: creating libdv/Makefile
config.status: creating playdv/Makefile
config.status: creating encodedv/Makefile
config.status: creating config.h
config.status: executing default-1 commands
cd . \
  && CONFIG_FILES= CONFIG_HEADERS=config.h \
     /bin/sh ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make  all-recursive
make[1]: Entering directory `/var/tmp/portage/libdv-0.98/work/libdv-0.98'
Making all in libdv
make[2]: Entering directory `/var/tmp/portage/libdv-0.98/work/libdv-0.98/libdv'
source='gasmoff.c' object='gasmoff.o' libtool=no \
depfile='.deps/gasmoff.Po' tmpdepfile='.deps/gasmoff.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -I/usr/include/SDL -D_REENTRANT -c `test -f gasmoff.c || echo './'`gasmoff.c
source='bitstream.c' object='bitstream.o' libtool=no \
depfile='.deps/bitstream.Po' tmpdepfile='.deps/bitstream.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -Wall -I/usr/include/SDL -D_REENTRANT -c `test -f bitstream.c || echo './'`bitstream.c
/bin/sh ../libtool --silent --mode=link gcc  -g -O2 -Wall -I/usr/include/SDL -D_REENTRANT   -o gasmoff  gasmoff.o bitstream.o  -lpopt -lm  -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread
libtool: link: cannot find the library `'
make[2]: *** [gasmoff] Error 1
make[2]: Leaving directory `/var/tmp/portage/libdv-0.98/work/libdv-0.98/libdv'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libdv-0.98/work/libdv-0.98'
make: *** [all] Error 2

!!! ERROR: media-libs/libdv-0.98 failed.
!!! Function src_compile, Line 41, Exitcode 2
!!! (no error message)

it seems to be about some libary but i don't understand it.
Back to top
View user's profile Send private message
Apolonius
Guru
Guru


Joined: 24 Jan 2003
Posts: 325

PostPosted: Fri May 02, 2003 11:31 pm    Post subject: Reply with quote

I encountered several time this error: libtool: link: cannot find the library `'
After investigations i discovered that the problem comes from libsdl which was badly linked against kde-cvs lib, whereas it should be linked against kde lib. So i had to rebuild libsdl after tweaking my env variables in order /usr/kde/cvs/lib was not in ld.so.conf anymore.
More precisely the issue deals with /usr/lib/libSDL.la. In this file, you should have:
dependency_libs=' -lm -lasound -L/usr/kde/3.1/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -lasound -L/usr/X11R6/lib -lX11 -lXext -lvga -laa -ldl'
whereas, if libsdl is linked against kde-cvs lib, you have something like:
dependency_libs='-lpthread -lpthread -lpthread -lpthread -lpthread -lpthread ... lpthread -lm -lasound -L/usr/kde/cvs/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -lasound -L/usr/X11R6/lib -lX11 -lXext -lvga -laa -ldl'
Back to top
View user's profile Send private message
maor
Guru
Guru


Joined: 28 Aug 2002
Posts: 323

PostPosted: Fri May 02, 2003 11:45 pm    Post subject: Reply with quote

thx for the fest replay now that i have some clue about the problem i'll try to hack my way.
Back to top
View user's profile Send private message
maor
Guru
Guru


Joined: 28 Aug 2002
Posts: 323

PostPosted: Sat May 03, 2003 10:27 am    Post subject: Reply with quote

Apolonius wrote:
I encountered several time this error: libtool: link: cannot find the library `'
After investigations i discovered that the problem comes from libsdl which was badly linked against kde-cvs lib, whereas it should be linked against kde lib. So i had to rebuild libsdl after tweaking my env variables in order /usr/kde/cvs/lib was not in ld.so.conf anymore.
More precisely the issue deals with /usr/lib/libSDL.la. In this file, you should have:
dependency_libs=' -lm -lasound -L/usr/kde/3.1/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -lasound -L/usr/X11R6/lib -lX11 -lXext -lvga -laa -ldl'
whereas, if libsdl is linked against kde-cvs lib, you have something like:
dependency_libs='-lpthread -lpthread -lpthread -lpthread -lpthread -lpthread ... lpthread -lm -lasound -L/usr/kde/cvs/lib -ldl -lartsc -lpthread -L/usr/lib -lesd -laudiofile -lm -lasound -L/usr/X11R6/lib -lX11 -lXext -lvga -laa -ldl'

i didn't succeeded doing that could u post which editing u did.
Back to top
View user's profile Send private message
Apolonius
Guru
Guru


Joined: 24 Jan 2003
Posts: 325

PostPosted: Sat May 03, 2003 10:46 am    Post subject: Reply with quote

-in /etc/env.d, rename all the kde-cvs env files ( 30kdelibs-5, 70kdedir-5) to, for example a30kdelibs-5 and a70kdedir-5. Then do an "env-update" and resource your /etc/profile.
-After that, you can remerge libsdl
-when libsdl is correctly installed, just rename your modified envar.
Back to top
View user's profile Send private message
samppa
n00b
n00b


Joined: 15 Jun 2002
Posts: 69
Location: Finland

PostPosted: Sat May 03, 2003 12:10 pm    Post subject: Reply with quote

The easiest way to workaround this problem is to rebuild libsdl using -arts USE flag. After that, emerge libdv again. The workaround suggested by Apolonius is only possible if you have a stable kde/arts version installed, I only have the cvs version.

I posted more info about my findings on this bug report:

https://bugs.gentoo.org/show_bug.cgi?id=19221
Back to top
View user's profile Send private message
Apolonius
Guru
Guru


Joined: 24 Jan 2003
Posts: 325

PostPosted: Sat May 03, 2003 12:57 pm    Post subject: Reply with quote

thz for your very accurate bugreport. I better understand the problem now.

i totally confirm what you wrote about -phread instead of lphread. Indeed i made a mistake in my previous post.
Back to top
View user's profile Send private message
maor
Guru
Guru


Joined: 28 Aug 2002
Posts: 323

PostPosted: Sat May 03, 2003 1:44 pm    Post subject: Reply with quote

thx to u both with your help i succeeded compile it.
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