Re: [ecasound] Compiling Ecasound for amd64

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Wed Jan 14 2009 - 00:36:24 EET

Hello,

On Tue, 25 Nov 2008, bolangi@email-addr-hidden-nac-project.org wrote:

> In attempting to compile Audio::Ecasound, the Perl interface
> to Ecasound for AMD64, I get the following error message:
>
[...]
> /usr/bin/ld: /usr/local/lib/libecasoundc.a(ecasoundc_sa.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

d'oh, this is a bug in the build rules. Files as:
https://sourceforge.net/tracker/index.php?func=detail&aid=2505551&group_id=4605&atid=104605

> I recompiled Ecasound adding -fPIC to CXXFLAGS in the Makefile,
> then make install. I deleted other copies of libecasound from
> my system. Set ld.so.conf to include the right directories.
> Come back to try make'ing Audio::Ecasound.

It's very easy to a miss a spot with these options (especially as you are
essentially you are fighting against libtool, which thinks you do not
need -fPIC). My guess would be that you need to add -fPIC to CFLAGS as
well (as ecasoundc.c is written in C)...

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Wed Jan 14 04:15:01 2009

This archive was generated by hypermail 2.1.8 : Wed Jan 14 2009 - 04:15:02 EET