[Lunar-bugs] [Lunar Linux 0000202]: ffmpeg did not build on x86_64; needs CFLAGS -fPIC
Lunar bug reports list
lunar-bugs at lunar-linux.org
Sun Aug 26 15:18:07 CEST 2007
The following issue has been RESOLVED.
======================================================================
http://bugs.lunar-linux.org/view.php?id=202
======================================================================
Reported By: neognomic
Assigned To: v3rt1g0
======================================================================
Project: Lunar Linux
Issue ID: 202
Category: module
Reproducibility: always
Severity: minor
Priority: normal
Status: resolved
Moonbase Version: 2006MMDD.NN
Core Tools: Lunar
Core Tools Version: 2007MMDD (I'm an idiot and didn't edit this field.)
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 03-16-2007 00:04 CET
Last Modified: 08-26-2007 15:18 CEST
======================================================================
Summary: ffmpeg did not build on x86_64; needs CFLAGS -fPIC
Description:
I don't know if this is x86_64 specific or not but the error message
indicates it might be. I am including the abbreviated output(below) for
reference.
The error message indicated that the -fPIC should be passed to gcc. I
looked at the BUILD for ffmpeg and found that the ''-fPIC '' is there but
apparently commented-out:
#export CFLAGS="$CFLAGS -fPIC"
[snip]
I removed the comment mark and tried again(with -rc). It built.
Perhaps the comment mark should be removed?
----
Failed build info:
#> lin ffmpeg
ffmpeg: Use optional (installed) module libvorbis
Purpose: for ogg-vorbis support ? [y]
ffmpeg: Install & use optional (not installed) module faad
Purpose: for faad support ? [n] y
faad: Adding required dependency id3lib
faad: Install & use optional (not installed) module xmms
Purpose: XMMS plugin ? [n]
ffmpeg: Install & use optional (not installed) module faac
Purpose: for faac support ? [n] y
ffmpeg: Install & use optional (not installed) module lame
Purpose: for mp3 support ? [n] y
lame: Install & use optional (not installed) module gtk+
Purpose: for the GTK based MP3 frame analyzer ? [n]
lame: Use optional (installed) module nasm
Purpose: for compiling in additional speed improvements ? [y]
ffmpeg: Use optional (installed) module a52dec
Purpose: for a52 support ? [y] Checking dependencies for ffmpeg
Checking dependencies for faad
faad: Adding required dependency id3lib
Checking dependencies for id3lib
Downloading source file id3lib-3.8.3.tar.gz for module id3lib
[snip]
Downloading source file ffmpeg-0.4.9-pre1-gcc4.patch.bz2 for module
ffmpeg
--11:39:54--
http://download.lunar-linux.org/lunar/patches/ffmpeg-0.4.9-pre1-gcc4.patch.bz2
=> `/tmp/ffmpeg-0.4.9-pre1-gcc4.patch.bz2'
Resolving download.lunar-linux.org... 72.232.199.162, 84.200.240.4,
130.237.162.100, ...
Connecting to download.lunar-linux.org|72.232.199.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,161 (1.1K) [text/plain]
0K . 100% 1.69
MB/s
11:39:54 (1.69 MB/s) - `/tmp/ffmpeg-0.4.9-pre1-gcc4.patch.bz2' saved
[1161/1161]
Building ffmpeg version 0.4.9-pre1
[snip]
/usr/bin/ld: common.o: relocation R_X86_64_32 against `a local symbol' can
not be used when making a shared object; recompile with -fPIC
common.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [libavcodec.so] Error 1
make[1]: Leaving directory `/usr/src/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2
Creating /var/log/lunar/compile/ffmpeg-0.4.9-pre1.bz2
! Problem detected during BUILD
----
======================================================================
----------------------------------------------------------------------
neognomic - 03-16-07 00:18
----------------------------------------------------------------------
Filed under wrong project. Should be Lunar Linux.
----------------------------------------------------------------------
florin - 04-08-07 07:37
----------------------------------------------------------------------
I have added a BUILD.x86_64 file to the package. It seems that only this
arch need -fPIC flag. The normal x86 one don't need it. In fact the build
fails for it if this flag is set.
----------------------------------------------------------------------
ratler - 08-26-07 15:18
----------------------------------------------------------------------
Confirmed that florins change worked. Resolving this issue.
Issue History
Date Modified Username Field Change
======================================================================
03-16-07 00:04 neognomic New Issue
03-16-07 00:04 neognomic Status new => assigned
03-16-07 00:04 neognomic Assigned To => Striker
03-16-07 00:04 neognomic Affected URL => none
03-16-07 00:04 neognomic Browser => Firefox
03-16-07 00:04 neognomic Browser Version => 2.0.0.2
03-16-07 00:18 neognomic Note Added: 0000413
03-16-07 01:06 Moe Project Lunar Linux Website =>
Lunar Linux
03-16-07 01:07 Moe Assigned To Striker => v3rt1g0
04-08-07 07:37 florin Note Added: 0000501
04-13-07 08:27 sofar Moonbase Version => 2006MMDD.NN
04-13-07 08:27 sofar Category Bug Tracker => module
08-26-07 15:18 ratler Status assigned => resolved
08-26-07 15:18 ratler Resolution open => fixed
08-26-07 15:18 ratler Note Added: 0000604
======================================================================
More information about the Lunar-bugs
mailing list