Hello again, ... >> The solution should be as easy as recompiling perl with -fPIC. Here's a >> link to the list archives where this has been discussed in detail. >> >> >>http://www.gossamer-threads.com/lists/engine?list=modperl;do=search_results >>;search_forum=forum_8;search_string=fpic;search_type=AND&sb=post_time > >Of course, that's what it says above. My point is, I've had perl yank -fPIC >from my demands on the build on PPC arch. Mighty kind of it, eh?
We attempted to compile perl with: ccflags='-fPIC' sh Configure -de (yes, make clean first) but unfortunately to no avail. Like you said, Perl didn't seem to care -fPIC is not used when Perl is built. Next, we changed config.sh from -fpic to -fPIC and did the make again. In this case Perl did use -fPIC but we get the same error, mod_perl is not happy with the DynaLoader. Also tried to clean everything out with 'make cleandist' first and run ./Configure with -Doptimize='-g' to really make sure the -fPIC is passed in. I definitely see the -fPIC option, for example: "...cc -c -DDEBUGGING -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -g -DVERSION=\"0.94\" -DXS_VERSION=\"0.94\" -fPIC "-I../../.." shared.c..." Everything seems happy until the make step in mod_perl, where I still get: ..lib/perl5/5.8.8/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc \ -o mod_perl.so /bin/ld: /usr/local/lib/perl5/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoa der.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/perl5/5.8.8/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad value collect2: ld returned 1 exit status... So at this point, I am confident that I compile Perl with -fPIC. I read all the ducumentation you pointed me to and that I could find, but it keeps coming back to the same error. Thanks again Bianca -- Unisolve Pty Ltd - Melbourne Australia