New submission from Mark <[email protected]>:
I pulled the latest version today, and it doesn't compile on 64-bit
Ubuntu Jaunty.
Configure: ./configure --enable-gpl --enable-nonfree --enable-pthreads
--enable-libfaac --enable-libfaad --enable-libmp3lame --enable-
libtheora --enable-libx264 --enable-libxvid --enable-x11grab --enable-
avfilter --enable-avfilter-lavf --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libdirac --enable-libspeex --enable-
libvorbis --enable-zlib --enable-version3 --enable-shared
make -j 2 (succeeds)
and installation fails:
sudo checkinstall --fstrans=no --install=yes --pkgname=ffmpeg --
pkgversion "3:0.svn`date +%Y%m%d`-12ubuntu3" --default
checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
This software is released under the GNU GPL.
*****************************************
**** Debian package creation selected ***
*****************************************
This package will be built according to these values:
0 - Maintainer: [ r...@dev ]
1 - Summary: [ Package created with checkinstall 1.6.1 ]
2 - Name: [ ffmpeg ]
3 - Version: [ 3:0.svn20090730-12ubuntu3 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ checkinstall ]
7 - Architecture: [ amd64 ]
8 - Source location: [ ffmpeg ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ ffmpeg ]
Enter a number to change any of them or press ENTER to continue:
Installing with make...Installing with install...
========================= Installation results
===========================
/home/markrose/Downloads/ffmpeg/version.sh "/home/markrose/Downloads/
ffmpeg" version.h
install -d "/usr/local/
lib"
install -m 644 libavfilter/libavfilter.a "/usr/local/
lib"
ranlib "/usr/local/lib/
libavfilter.a"
gcc -shared -Wl,-soname,libavutil.so.50 -L"/home/markrose/Downloads/
ffmpeg"/libavcodec -L"/home/markrose/Downloads/ffmpeg"/libavdevice -L"/
home/markrose/Downloads/ffmpeg"/libavfilter -L"/home/markrose/Downloads/
ffmpeg"/libavformat -L"/home/markrose/Downloads/ffmpeg"/libavutil -L"/
home/markrose/Downloads/ffmpeg"/libpostproc -L"/home/markrose/Downloads/
ffmpeg"/libswscale -Wl,--warn-common -Wl,--as-needed -Wl,-rpath-link,"/
home/markrose/Downloads/ffmpeg"/libpostproc -Wl,-rpath-link,"/home/
markrose/Downloads/ffmpeg"/libswscale -Wl,-rpath-link,"/home/markrose/
Downloads/ffmpeg"/libavfilter -Wl,-rpath-link,"/home/markrose/Downloads/
ffmpeg"/libavdevice -Wl,-rpath-link,"/home/markrose/Downloads/ffmpeg"/
libavformat -Wl,-rpath-link,"/home/markrose/Downloads/ffmpeg"/
libavcodec -Wl,-rpath-link,"/home/markrose/Downloads/ffmpeg"/libavutil -
Wl,-Bsymbolic -o libavutil/libavutil.so.50 libavutil/adler32.o
libavutil/aes.o libavutil/avstring.o libavutil/base64.o libavutil/crc.o
libavutil/des.o libavutil/fifo.o libavutil/intfloat_readwrite.o
libavutil/lfg.o libavutil/lls.o libavutil/log.o libavutil/lzo.o
libavutil/mathematics.o libavutil/md5.o libavutil/mem.o libavutil/
random_seed.o libavutil/rational.o libavutil/rc4.o libavutil/sha.o
libavutil/tree.o libavutil/utils.o -lz -pthread -lm -ldirac_decoder -
ldirac_encoder -lfaac -lfaad -lmp3lame -lm -lopencore-amrnb -lm -
lopencore-amrwb -lm -lspeex -ltheora -logg -lvorbisenc -lvorbis -logg -
lx264 -lm -lxvidcore -lasound -ldl -lasound -lX11 -lXext -
lasound
/usr/bin/ld: libavutil/avstring.o: relocation R_X86_64_32 against `a
local symbol' can not be used when making a shared object; recompile
with -
fPIC
libavutil/avstring.o: could not read symbols: Bad
value
collect2: ld returned 1 exit
status
make: *** [libavutil/libavutil.so.50] Error
1
**** Installation failed. Aborting package creation.
Restoring overwritten files from backup...OK
Cleaning up...OK
Bye.
--
When I didn't have --enable-shared, it compiled and worked fine, but I
need the shared libraries to use php-ffmpeg.
----------
messages: 6600
priority: normal
status: new
substatus: new
title: compiling with shared libraries fails (avstring.o relocation error)
type: bug
_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1296>
_____________________________________________________