Lanny Derby wrote:
1. Problem Description:

I am attempting to install mod_perl with apache 2.0.45 and experiencing some
difficulty. I am using mod_perl-1.99_09 because anything beyond that
requires apache 2.0.46 or greater. The install process is listed below.
Everything seems to work fine until I attempt to "make". The program exits
with this error:

ld: -r and -shared may not be used together
[...]
*** /usr/local/bin/perl -V
[...]

Linker and Libraries:

ld='cc', ldflags =' -L/usr/local/lib'

Your perl says that the linker to be used is 'cc', not 'ld'.


Dynamic Linking:

dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic
-Wl,-rpath,/usr/local/lib/perl5/5.8.1/i686-linux/CORE'

cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
[...]
ld -shared -L/usr/local/lib \

However here we get 'ld'.


mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo
modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo
modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo
modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo
modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo
modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo
modperl_svptr_table.lo modperl_const.lo modperl_constants.lo
modperl_apache_compat.lo modperl_hooks.lo modperl_directives.lo
modperl_flags.lo modperl_xsinit.lo -rdynamic
-Wl,-rpath,/usr/local/lib/perl5/5.8.1/i686-linux/CORE -L/usr/local/lib
/usr/local/lib/perl5/5.8.1/i686-linux/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.1/i686-linux/CORE -lperl -lnsl -ldl -lm -lcrypt
-lutil -lc \

-o mod_perl.so

ld: -r and -shared may not be used together

I think this has been fixed in 1.99_10 by Geoff: http://marc.theaimsgroup.com/?l=apache-modperl-cvs&m=106390946300985&w=2

If you can't upgrade to the latest pm, try to apply the patch at the above URL and rebuild from scratch again. Let us know if this worked.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com



Reply via email to