[FFmpeg-devel] [PATCH] define _BSD_SOURCE for bktr.c
Reimar Döffinger
Reimar.Doeffinger
Sat Dec 13 14:51:07 CET 2008
On Sat, Dec 13, 2008 at 12:46:56PM +0100, Diego Biurrun wrote:
> patch-configure: I merged some more parts, the rest needs an explanation.
I can explain with the rpath-link stuff is removed: BSD linker is
somehow marvelously behaving differently, ldd ffmpeg results in this:
ffmpeg:
Start End Type Open Ref GrpRef Name
1c000000 3c00b000 exe 1 0 0 ffmpeg
0170a000 2170e000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libavfilter.so
02dc9000 22dcd000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libpostproc.so
0c6c2000 2c6c7000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libswscale.so
0d704000 2d708000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libavdevice.so
040a5000 2410a000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libavformat.so
0da47000 2ddca000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libavcodec.so
0356f000 23576000 rlib 0 1 0 /home/reimar/fate/build/install-directory/lib/libavutil.so
06ad0000 26ad8000 rlib 0 8 0 /usr/lib/libm.so.3.0
0534c000 25382000 rlib 0 1 0 /usr/lib/libc.so.48.0
08192000 28515000 rlib 0 4 0 libavcodec/libavcodec.so
0d031000 2d038000 rlib 0 8 0 libavutil/libavutil.so
0294e000 229b3000 rlib 0 1 0 libavformat/libavformat.so
04ccb000 24ccf000 rlib 0 1 0 /usr/lib/libossaudio.so.3.1
010f1000 210f9000 rlib 0 6 0 /usr/lib/libz.so.4.1
02c5c000 02c5c000 rtld 0 1 0 /usr/libexec/ld.so
As you can see, libav* is linked twice: once with the correct install
path (/home/reimar/fate/build/install-directory/lib) and once with the
incorrect relative path, thus it no longer works after installation.
This is probably related to these while linking ffmpeg:
/usr/bin/ld: warning: libavcodec/libavcodec.so, needed by /home/reimar/fate/build/libavfilter/libavfilter.so, not found (try using -rpath or -rpath-link)
This seems to be cause by the following in the command line that e.g.
generates libavformat.so:
libavcodec/libavcodec.so libavutil/libavutil.so -lavcodec -lavutil
Is there any reason for the former ones?
So far I wasn't even able to find out where exactly that command is
generated...
Greetings,
Reimar D?ffinger
More information about the ffmpeg-devel
mailing list