Bug 242101 - k3b-1.93.0/b has linker error /usr/bin/ld: /usr/local/lib/libavcodec.a
Summary: k3b-1.93.0/b has linker error /usr/bin/ld: /usr/local/lib/libavcodec.a
Status: RESOLVED WORKSFORME
Alias: None
Product: k3b
Classification: Applications
Component: general (show other bugs)
Version: 1.93.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 19:58 UTC by BrianP
Modified: 2012-07-09 06:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description BrianP 2010-06-18 19:58:17 UTC
Version:           unspecified (using KDE 4.3.5) 
OS:                Linux

Hi,
Ubuntu 10.4 k3b does not rip dvds like Suse 11.2 does. I downloaded the source k3b-1.93.0rc4.tar.bz2. The cmake fails with a linker error:
usr/bin/ld: /usr/local/lib/libavcodec.a(utils.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [lib/k3bffmpegdecoder.so] Error 1
make[1]: *** [plugins/decoder/ffmpeg/CMakeFiles/k3bffmpegdecoder.dir/all] Error 2

How does one compile a single module, ffmpeg(?) in the middle of a cmake process? I followed the instructions exactly and they don't work. Perhaps your elves know of an easy hackaround for this common, simple problem. Please put it in the documentation so users wont have to pester you. 

Why would only 1 module need -fpic? 



Reproducible: Didn't try

Steps to Reproduce:
Download the source, follow the instructions...


Expected Results:  
folow instructions, get working program 

I built this thing on 9.10 without issue. The bug was apparently introduced recently. By crash below, I mean a crash in the build which precludes even running the program so is just as bad as a crash.
Comment 1 Pino Toscano 2010-06-21 19:06:46 UTC
A failing build is not a "crash", but just a build failure.
Also, /usr/local/lib/libavcodec.a looks like you compiled your own libavcodec, and there is no shared library (.so) version of it, but it was compiled as static library. Please check that you have also the shared library version, and if not check whether you can compile libavcodec in such way.
Comment 2 BrianP 2010-06-22 00:08:35 UTC
Pino,

/usr/local/lib/libavcodec.a was installed with Synaptic and is Ubuntu 10.04 standard. I did try to compile ffmpeg from source, but it also has build errors which I never could figure out.

Try k3b on a stock, minimal ubu 10/04. No worky. 9.10 does work.

K3b and ffmpeg folks need to make sure their stuff builds at the OS level, not just at the bench level. :)


	Brian
  



On 06/21/2010 12:06 PM, Pino Toscano wrote:
> https://bugs.kde.org/show_bug.cgi?id=242101
>
>
> Pino Toscano<pino@kde.org>  changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Severity|crash                       |normal
>
>
>
>
> --- Comment #1 from Pino Toscano<pino kde org>   2010-06-21 19:06:46 ---
> A failing build is not a "crash", but just a build failure.
> Also, /usr/local/lib/libavcodec.a looks like you compiled your own libavcodec,
> and there is no shared library (.so) version of it, but it was compiled as
> static library. Please check that you have also the shared library version, and
> if not check whether you can compile libavcodec in such way.
>
Comment 3 Jekyll Wu 2012-07-09 06:30:30 UTC
Feel free to reopen the report and paste backtrace if the problem still happens in recent versions