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
_______________________________________________
media_api mailing list
media_api@create.ucsb.edu
http://lists.create.ucsb.edu/mailman/listinfo/media_api

Reply via email to