[Media_api] portmidi on AMD64

Boenn G (CCI) gboenn at glam.ac.uk
Mon Apr 21 07:20:22 PDT 2008


Hi list,

sorry if this has been reported before.
when compiling portmidi under linux on an AMD64, i had to add the -fPIC flag to the gcc flags.

reason: 
when trying to build John Harrison's pyPortMidi gcc bailed out with this error:

./linux/libportmidi.a(pmlinux.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
./linux/libportmidi.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

what they said:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 
On certain architectures (AMD64 amongst them), shared libraries *must* be "PIC-enabled".

cheers

Georg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.create.ucsb.edu/pipermail/media_api/attachments/20080421/3a83f07f/attachment.html 


More information about the media_api mailing list