Re: [ecasound] Compiling Ecasound for amd64

From: Joel Roth <joelz@email-addr-hidden>
Date: Thu Jan 15 2009 - 13:00:54 EET

On Wed, Jan 14, 2009 at 12:36:24AM +0200, Kai Vehmanen wrote:
> 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)...

Kai,

Thanks for picking this out.

A little trial-and-error shows that I need to change all
the Makefiles. Okay, I can script that. But first
a question: Do I just need to change CFLAGS?
What about AM_CFLAGS and ECA_S_CFLAGS?

I expect it wouldn't hurt to do them all...

Joel

-- 
Joel Roth
------------------------------------------------------------------------------
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 Thu Jan 15 16:15:01 2009

This archive was generated by hypermail 2.1.8 : Thu Jan 15 2009 - 16:15:01 EET