There's a similar error been reported on the perldl mailing list regarding the building of pgplot. See the thread [Perldl] Instaliing PGPLOT in ubuntu at http://mailman.jach.hawaii.edu/pipermail/perldl/2008-June/thread.html.
The matter is not actually resolved there, but at least you might get some ideas about what's needed. (I think there's a number of pgplot-specific issues mentioned there that won't apply to the bloom library.) The advice seems to be that you would need to re-build the bloom library, editing the makefile to include -fPIC as an option to the compiler and linker. (With luck, that might be all you need to do.)
Anyway ... take a look and see if there's something there that helps.
Cheere, Rob | [reply] [d/l] |
(...) If I need to mess with the Makefile or such, please supply steps, as I am not sure how to properly customize a cpan initiated make.
Now, given that I need to sneak in the -fPIC flag into the cpan routine, how would I do that?
BUT: isn't this flag already set? See:
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c bloom.c -fPIC -DPIC -o .
| [reply] |
BUT: isn't this flag already set?
Yes, it seems to be set for the building of Bloom::Faster.I think it also needs to be set (but apparently wasn't) when the bloom library (libbloom.so) was built. So ... the suggestion seems to be that you need to first rebuild the libbloom library with -fPIC.
Mind you, I'm only going by what I've read in that perldl mailing list thread - mainly http://mailman.jach.hawaii.edu/pipermail/perldl/2008-June/003642.html, where the poster is talking about re-building the pgplot C library, not about re-building the PGPLOT perl module. (But I have no personal experience to rely on, here.)
Cheers, Rob
| [reply] |