Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Compiling Audio::TagLib

by Rodster001 (Pilgrim)
on Jul 13, 2017 at 19:21 UTC ( #1195074=perlquestion: print w/replies, xml ) Need Help??
Rodster001 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I am running into an issue when compiling Audio::TagLib and I am at a loss (I have tried using cpan to install and manually downloading, both are failing). I am getting an error to recompile with a different flag, but I am not sure how to do this or why this is even an issue. I do not fully understand the problem nor how to fix.

chmod 644 TagLib.bs rm -f blib/arch/auto/Audio/TagLib/TagLib.so g++ -shared -L/usr/local/lib -fstack-protector -Wl,-E -fPIC TagLib.o + -o blib/arch/auto/Audio/TagLib/TagLib.so \ -L/usr/local/lib -ltag -lz \ /usr/bin/ld: /usr/local/lib/libtag.a(mpegfile.cpp.o): relocation R_X86 +_64_32S against `_ZTVN6TagLib4MPEG4FileE' can not be used when making + a shared object; recompile with -fPIC /usr/local/lib/libtag.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make: *** [blib/arch/auto/Audio/TagLib/TagLib.so] Error 1

Any help would GREATLY be appreciated!

Thanks

UPDATE: Downgrading Taglib to 1.11 fixed the issue (see my reply below)

Replies are listed 'Best First'.
Re: Compiling Audio::TagLib
by syphilis (Chancellor) on Jul 13, 2017 at 23:19 UTC
    /usr/bin/ld: /usr/local/lib/libtag.a(mpegfile.cpp.o): relocation R_X86 ....

    If libtag.a is a static library, you need to add -DTAGLIB_STATIC to the compiler flags. (I do this by providing a DEFINE=-DTAGLIB_STATIC argument to the 'perl Makefile.PL' command.)
    However, I don't know if that relates to the error message you received and, since a downgrade to version 1.11 is likely of little importance, it probably doesn't matter ;-)

    Cheers,
    Rob
Re: Compiling Audio::TagLib
by Rodster001 (Pilgrim) on Jul 13, 2017 at 20:37 UTC
    I am not sure what the issue is here. But I had TagLib 1.11.1 installed. I downloaded and installed TagLib 1.11 and that fixed the problem.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1195074]
Front-paged by Corion
help
Chatterbox?
[Eily]: s/complete ness/complete mess/ :P
[Eily]: and you can overload "0+" rather than bool, as numification is used instead of stringification in boolean context when available

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2017-07-27 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (415 votes). Check out past polls.