Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Cannot build

Date2005-02-22 14:21
From"gogins@pipeline.com"
SubjectRe: [Cs-dev] Cannot build
-fPIC can be added explicitly to the commonEnvironment CCFLAGS variable. 

Original Message:
-----------------
From: Istvan Varga istvan@csounds.com
Date: Tue, 22 Feb 2005 13:34:42 +0100
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Cannot build


jpff@codemist.co.uk wrote:

> gcc -Wl,-Bdynamic -shared -o libpmidi.so InOut/pmidi.os -L. -L.
-L/usr/local/lib64 -L. -L. -L/usr/local/lib/python2.3/config -lportmidi
-lporttime -lasound
>
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin
/ld: /usr/local/lib64/libportmidi.a(portmidi.o): relocation R_X86_64_32
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
> /usr/local/lib64/libportmidi.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> scons: *** [libpmidi.so] Error 1

The message suggests that pmidi.c should be compiled with -fPIC.
On my machine, the flag is used, so it may be a problem with
SConstruct.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net