<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.21283" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=830573106-28092010><FONT face=Arial
color=#0000ff size=2>Joshua,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=830573106-28092010><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=830573106-28092010><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 perl.org 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 class=830573106-28092010></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=830573106-28092010><FONT face=Arial
color=#0000ff size=2>Rgds,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=830573106-28092010><FONT face=Arial
color=#0000ff size=2>Johan</FONT> </SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> jkeroes@gmail.com
[mailto:jkeroes@gmail.com] <B>On Behalf Of </B>Joshua Keroes<BR><B>Sent:</B>
Monday, September 27, 2010 8:12 PM<BR><B>To:</B> SEGERS Johan
(OLAF-EXT)<BR><B>Cc:</B> rrd-users@lists.oetiker.ch<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>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></BLOCKQUOTE></BODY></HTML>