<div>That's correct.</div><div><br></div>If you go this route, then you'll be using a custom Perl for everything, installing CPAN modules for everything, and of course, all of the packages on your system will be ignorant that you're running a non-packaged perl with non-packaged perl modules.<div>
<br></div><div>Caveat compiler,</div><div>Joshua<br><div><br><div class="gmail_quote">On Mon, Sep 27, 2010 at 11:33 PM, <span dir="ltr"><<a href="mailto:johan.segers@ext.ec.europa.eu">johan.segers@ext.ec.europa.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Joshua,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">So, you did not use the Perl modules coming with the
Red Hat Linux OS. You just downloaded them from <a href="http://perl.org" target="_blank">perl.org</a> and compiled yourself.
Do I need the whole perl suite of just a part of it ?</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Rgds,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Johan</font> </span></div><br>
<blockquote dir="ltr" style="margin-right:0px">
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><div class="im"><b>From:</b> <a href="mailto:jkeroes@gmail.com" target="_blank">jkeroes@gmail.com</a>
[mailto:<a href="mailto:jkeroes@gmail.com" target="_blank">jkeroes@gmail.com</a>] <b>On Behalf Of </b>Joshua Keroes<br></div><b>Sent:</b>
Monday, September 27, 2010 8:12 PM<div><div></div><div class="h5"><br><b>To:</b> SEGERS Johan
(OLAF-EXT)<br><b>Cc:</b> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br><b>Subject:</b> Re:
[rrd-users] Relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object<br></div></div></font><br></div><div><div></div><div class="h5">
<div></div>
<div>I had to rebuild Perl with those flags; that's what let all the dependent
src tarballs (e.g. net-snmp, rrdtool) build. Furthermore, I didn't have to do
anything fancy with the dependent tarballs; they built without anything
tricky.</div>
<div><br></div>
<div>Good luck,</div>
<div>Joshua</div>
<div><br>
<div class="gmail_quote">On Mon, Sep 27, 2010 at 1:26 AM, <span dir="ltr"><<a href="mailto:johan.segers@ext.ec.europa.eu" target="_blank">johan.segers@ext.ec.europa.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">Hi
Joshua,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff"><font size="2"><font face="Arial"></font></font></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff"><font size="+0"><font size="2"><font face="Arial"><font color="#000000">I have tried to run</font>
<strong>sh configure --enable-shared </strong><font color="#ff0000"><strong>CXXFLAGS=-fPIC CFLAGS=-fPIC CPPFLAGS=-fPIC</strong>
</font><font color="#000000">but that did not
help....</font></font></font></font></font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">These are the Perl
.rpm that are on my BB-server:</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">perl-Compress-Zlib-1.42-1.fc6<br>perl-5.8.8-27.el5<br>perl-URI-1.35-3<br>perl-HTML-Tagset-3.10-2.1.1<br>perl-DBI-1.52-2.el5<br>perl-Convert-ASN1-0.20-1.1<br>
newt-perl-1.08-9.2.2<br>perl-HTML-Parser-3.55-1.fc6<br>perl-BSD-Resource-1.28-1.fc6.1<br>mod_perl-2.0.4-6.el5<br>perl-libwww-perl-5.805-1.1.1<br>perl-String-CRC32-1.4-2.fc6</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">Any other idea
?</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">I have no idea how I
can solve this problem ....</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">Rgds,</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" size="2">Johan</font></span></div>
<div dir="ltr" align="left"><span><strong><font face="Arial" color="#ff0000" size="2"></font></strong></span> </div><br>
<blockquote dir="ltr" style="margin-right:0px">
<div lang="en-us" dir="ltr" align="left">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:jkeroes@gmail.com" target="_blank">jkeroes@gmail.com</a> [mailto:<a href="mailto:jkeroes@gmail.com" target="_blank">jkeroes@gmail.com</a>] <b>On
Behalf Of </b>Joshua Keroes<br><b>Sent:</b> Thursday, September 23, 2010
7:11 PM<br><b>To:</b> SEGERS Johan (OLAF-EXT)<br><b>Cc:</b> <a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br><b>Subject:</b> Re:
[rrd-users] Relocation R_X86_64_32 against `a local symbol' can not be
used when making a shared object<br></font><br></div>
<div>
<div></div>
<div>
<div></div>I solved a suspiciously similar problem yesterday trying to
build net-snmp-5.5 against perl-5.12.2. Both were built from source on a
64bit CentOS VM using physical Opteron 8300's. The net-snmp-5.5 compile
was breaking during 'make' complaining of -fPIC issues, too.
<div><br></div>
<div>I rebuilt net-snmp-5.5 a dozen times with different strategies - all
failed. I finally resolved the compile problem by rebuilding Perl
with an explicit -fPIC. This might get you running:
<div><br></div>
<div>CFLAGS='-m64 -mtune=nocona' ./Configure -des -A ccflags=-fPIC
&& make && make test && make install</div>
<div><br></div>
<div>Given your reference to X86_64_32, you might not want the -m64 flag.
Anyway, adjust or delete CFLAGS depending on your CPU's and
architecture.</div>
<div><br></div>
<div>After Perl was built, the net-snmp-5.5 compile ran smoothly without
any fancy args.</div>
<div><br></div>
<div>Good luck,</div>
<div>Joshua<br><br>
<div class="gmail_quote">On Thu, Sep 23, 2010 at 7:17 AM, Johans <span dir="ltr"><<a href="mailto:johan.segers@ext.ec.europa.eu" target="_blank">johan.segers@ext.ec.europa.eu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid"><br>I
am migrating my BB with LARRD/RRDTOOL 1.0.49 from 32-bit Red hat Linux 3
to<br>a virtual Red Hat 5.4 64-bit.<br><br>BB is installed and works bit
I get the following problem when I try to<br>compile/link the
RRDTOOL.<br><br>I run:<br><br>1. sh configure --enable-shared
-> OK<br>2. make -> I get the message below even after changing in
the Makefile the<br>CCFLAGS .. -fPIC and CXXFLAGS= ..-fPIC (see in
red)<br><br>The essential line below is : relocation R_X86_64_32 against
`a local<br>symbol' can not be used when making a shared object;
recompile with -fPIC<br>Changes made to Makefile:<br><br>CFLAGS = -g -O2
-fPIC -Wall -pedantic -Ws ….<br>CXXFLAGS = -g -O2 -fPIC<br><br>Has
anyone an idea how to solve this problem
?<br><br>Rgds,<br>Johan<br><br>make[3]: Entering directory
`/usr/local/rrdtool-1.0.49/perl-shared'<br>gcc -c -I.. -I../src
-I../gd1.3 -D_REENTRANT -D_GNU_SOURCE<br>-fno-strict-aliasing -pipe
-Wdeclaration-after-statement<br>-I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64<br>-I/usr/include/gdbm
-DHAVE_CONFIG_H -O2 -g -pipe -Wall<br>-Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector<br>--param=ssp-buffer-size=4 -m64
-mtune=generic
-DVERSION=\"1.000491\"<br>-DXS_VERSION=\"1.000491\"
-fPIC<br>"-I/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/CORE"<br>-DPERLPATCHLEVEL=8
RRDs.c<br>In file included from ../src/rrd_tool.h:24,<br>
from
RRDs.xs:13:<br>../config.h:191:1: warning: "VERSION"
redefined<br><command line>:1:1: warning: this is the location of
the previous definition<br>RRDs.c: In function
âXS_RRDs_xportâ:<br>RRDs.c:302: warning: unused variable
âtargâ<br>RRDs.c:301: warning: unused variable âRETVALâ<br>RRDs.xs:227:
warning: unused variable ârow_cntâ<br>Running Mkbootstrap for RRDs
()<br>chmod 644 RRDs.bs<br>rm -f blib/arch/auto/RRDs/RRDs.so<br>gcc
-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions<br>-fstack-protector --param=ssp-buffer-size=4 -m64
-mtune=generic RRDs.o<br>-L../src/.libs/ -lrrd_private -lm -o
blib/arch/auto/RRDs/RRDs.so \<br>
\<br><br>/usr/bin/ld:
../src/.libs//librrd_private.a(parsetime.o): relocation<br>R_X86_64_32
against `a local symbol' can not be used when making a shared<br>object;
recompile with -fPIC<br>../src/.libs//librrd_private.a: could not read
symbols: Bad value<br>collect2: ld returned 1 exit status<br>make[3]:
*** [blib/arch/auto/RRDs/RRDs.so] Error 1<br>make[3]: Leaving directory
`/usr/local/rrdtool-1.0.49/perl-shared'<br>make[2]: *** [perl_shared]
Error 2<br>make[2]: Leaving directory
`/usr/local/rrdtool-1.0.49'<br>make[1]: *** [all-recursive] Error
1<br>make[1]: Leaving directory `/usr/local/rrdtool-1.0.49'<br>make: ***
[all] Error 2<br><font color="#888888"><br>--<br>View this message in
context: <a href="http://rrd-mailinglists.937164.n2.nabble.com/Relocation-R-X86-64-32-against-a-local-symbol-can-not-be-used-when-making-a-shared-object-tp5563232p5563232.html" target="_blank">http://rrd-mailinglists.937164.n2.nabble.com/Relocation-R-X86-64-32-against-a-local-symbol-can-not-be-used-when-making-a-shared-object-tp5563232p5563232.html</a><br>
Sent
from the RRDtool Users Mailinglist mailing list archive at
Nabble.com.<br><br>_______________________________________________<br>rrd-users
mailing list<br><a href="mailto:rrd-users@lists.oetiker.ch" target="_blank">rrd-users@lists.oetiker.ch</a><br><a href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users" target="_blank">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a><br>
</font></blockquote></div><br></div></div></div></div></blockquote></div></blockquote></div><br></div></div></div></blockquote></div>
</blockquote></div><br></div></div>