I have a linker problem with ffmpeg.
I am compiling with the instructions from the developer version of the BLFS
book. This version has an extra sed command and two patches.
I am using these compilation flags:
CFLAGS="-s -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe
-fomit-frame-pointer"
and these configure options:
./configure --prefix=/usr --enable-shared --enable-pthreads --disable-ffplay
--enable-mp3lame --enable-vorbis --enable-pp --enable-gpl --disable-risky
--disable-debug
The error I receive is this:
gcc -Wl,--warn-common -rdynamic -g -o ffmpeg_g ffmpeg.o cmdutils.o
-L./libavformat -lavformat -L./libavcodec -lavcodec -lm -lz -ldl
./libavformat/libavformat.so: undefined reference to `ogg_stream_pagein'
./libavformat/libavformat.so: undefined reference to `ogg_sync_wrote'
./libavformat/libavformat.so: undefined reference to `ogg_stream_clear'
./libavformat/libavformat.so: undefined reference to `ogg_stream_packetin'
./libavformat/libavformat.so: undefined reference to `ogg_stream_packetout'
./libavformat/libavformat.so: undefined reference to `ogg_sync_init'
./libavformat/libavformat.so: undefined reference to `ogg_stream_init'
./libavformat/libavformat.so: undefined reference to `ogg_stream_pageout'
./libavformat/libavformat.so: undefined reference to `ogg_sync_clear'
./libavformat/libavformat.so: undefined reference to `ogg_page_serialno'
./libavformat/libavformat.so: undefined reference to `ogg_sync_buffer'
./libavformat/libavformat.so: undefined reference to `ogg_stream_flush'
./libavformat/libavformat.so: undefined reference to `ogg_sync_pageout'
collect2: ld gaf exit-status 1 terug
make: *** [ffmpeg_g] Fout 1
With different compilation flags, a different undefined reference error will
come from some other object file first, but they will never go away.
I am sure this is my fault, in that I am building this on an HLFS system
with loads of Pax and Grsecurity options enabled in the kernel, compiler,
etc. But, I haven't had a linker error like this before, so I am not sure
where to point at.
The library libavformat.so for instance, doesn't have TEXTREL's so Pax isn't
stopping it. I am not seeing anything awkward in dmesg either.
Any tips are welcome,
Warren.
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee®
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page