unixmad wrote:
> Hi, I have apache2 php5 and mysql all working, however I then want to
> have mod_perl compiled and installed with apache so i did perl
> Makefile.PL MP_APXS=/usr/local/apache/bin/apxs
> MP_APR_CONFIG=/usr/local/apache/bin/apr-config
> 
> after doing make it errors near the end with
> /usr/bin/ld: /usr/local/apache/lib/libapr-0.a(apr_snprintf.o):
> relocation R_X86_64_32S can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/apache/lib/libapr-0.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> 
> How would I go about fixing this?

I'd guess that this is an issue with your perl.  my perl -V shows

  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

which is where the -fpic compile option is taken from.  so, please post your
perl -V, in addition to reading over

  http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

specifically the part on compilers and generating a proper bug report.

just for general knowledge, I have no problem getting mod_perl and php to
coexist in the same apache using DSO, but I've only tried 5.0.0.

--Geoff

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to