🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: perl.modperl.modules.dev
Article #1

Re: Mod Perl Problem

#1
From: Stas Bekman
Date: Tue, 11 Oct 2005 05:57
62 lines
4580 bytes
what's modperl-modules-dev /at/ perl.org? wizard, where did you find that 
address? in the future please post to 
http://perl.apache.org/maillist/modperl.html

wizard wrote:

> I am installing mod perl on an dual AMD 64-Bit processor machine. I am
> using 64 bit gcc for compilation ( The same I have been using for
> Apache 2 and Perl 5.8.3). When I compile  mod perl , I get the
> following error which says:-
> relocation of R_X86_64_32 can not be used when making a shared object;
> recompile with -fPIC.
> 
> Kindly tell me what it means and what can I do with the error. I am
> posting below the compilation line with the error.

we ought to document that issue in the troubleshooting doc. wizard, You 
need to rebuild perl with -fPIC, and then rebuild mod_perl. Please refer 
to this thread:
http://www.gossamer-threads.com/lists/modperl/modperl/80799?search_string=%26quot%3B-fPIC%26quot%3B;#80799

also please remember to follow the guidelines, when submitting bug reports:
http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems

> PLEASE HELP.
> 
> x86_64-unknown-linux-gnu-gcc -shared -L/usr/local/lib \
>  \
> 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_io_apache.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_error.lo modperl_debug.lo modperl_common_util.lo
> modperl_common_log.lo modperl_hooks.lo modperl_directives.lo
> modperl_flags.lo modperl_xsinit.lo modperl_exports.lo  -Wl,-E
> -L/usr/local/lib
> /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a
> -L/usr/local/lib/perl5/5.8.6/x86_64-linux/CORE -lperl -lnsl -ldl -lm
> -lcrypt -lutil -lc \
> -o mod_perl.so
> /opt/crosstool/x86_64-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/lib/gcc/x86_64-unknown-linux-gnu/3.4.1/../../../../x86_64-unknown-linux-gnu/bin/ld:
> /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o):
> relocation R_X86_64_32 can not be used when making a shared object;
> recompile with -fPIC
> /usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a:
> could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [mod_perl.so] Error 1
> make[1]: Leaving directory
> `/home/staff/install/mod_perl-2.0.1/src/modules/perl'
> make: *** [modperl_lib] Error 2


-- 
_______________________________________________________________
Stas Bekman mailto:stas@stason.org   | http://stason.org/
MailChannels: Assured Messaging (TM) | http://mailchannels.com/
The "Practical mod_perl" book        | http://modperlbook.org/
Technical Details
Message-ID: <434B5464.2080106@stason.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.modperl.modules.dev.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.perl.org
References: <1128952334.516895.88950@g14g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <434B5464.2080106@stason.org>
Subject: Re: Mod Perl Problem
Date: Mon, 10 Oct 2005 22:57:56 -0700
From: stas@stason.org (Stas Bekman)
References: <1128952334.516895.88950@g14g2000cwa.googlegroups.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-perl.modperl.modules.dev.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!prodigy.net!logbridge.uoregon.edu!newsfeed.stanford.edu!nntp.perl.org
Newsgroups: perl.modperl.modules.dev
Return-Path: <stas@stason.org>
Mailing-List: contact modperl-modules-dev-help@perl.org; run by ezmlm
Delivered-To: mailing list modperl-modules-dev@perl.org
Delivered-To: modperl-modules-dev@perl.org
X-Spam-Status: No, hits=-2.6 required=8.0
 tests=BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received-SPF: pass (x1.develooper.com: local policy)
 by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP;
 by mail.logilune.com (Postfix) with ESMTP id 29665D6E75;
Organization: Hope, Humanized
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.11) Gecko/20050729
X-Accept-Language: en-us, en, he, ru
MIME-Version: 1.0
To: modperl-modules-dev@perl.org, "wizard" <vivek.j.joshi@gmail.com>
In-Reply-To: <1128952334.516895.88950@g14g2000cwa.googlegroups.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Approved: news@nntp.perl.org