Hi, i am trying to compile the latest version of orca source code on CentOS 4.0 system running amd64 bit processor. I am getting the following error:
make[5]: Entering directory `/usr/local/src/orca-snapshot-r407/packages/rrdtool-1.0.49/perl-shared' cp RRDs.pm blib/lib/RRDs.pm cp ntmake.pl blib/lib/ntmake.pl /usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv RRDs.xsc RRDs.c gcc -c -I.. -I../src -I../gd1.3 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHAVE_CONFIG_H -O2 -g -pipe -m64 -DVERSION="1.000491" -DXS_VERSION="1.000491" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" -DPERLPATCHLEVEL=8 RRDs.c In file included from ../src/rrd_tool.h:24, from RRDs.xs:13: ../config.h:191:1: warning: "VERSION" redefined <command line>:7:1: warning: this is the location of the previous definition Running Mkbootstrap for RRDs () chmod 644 RRDs.bs rm -f blib/arch/auto/RRDs/RRDs.so gcc -shared RRDs.o -L../src/.libs/ -lrrd_private -lm -o blib/arch/auto/RRDs/RRDs.so /usr/bin/ld: ../src/.libs//librrd_private.a(parsetime.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../src/.libs//librrd_private.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[5]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1 make[5]: Leaving directory `/usr/local/src/orca-snapshot-r407/packages/rrdtool-1.0.49/perl-shared'
what should i do to fix this problem and get it working?
Thanks, James
_________________________________________________________________ The new MSN Search Toolbar now includes Desktop search! http://toolbar.msn.co.uk/
James Bond wrote:
Hi, i am trying to compile the latest version of orca source code on CentOS 4.0 system running amd64 bit processor. I am getting the following error:
<snipped>
/usr/bin/ld: ../src/.libs//librrd_private.a(parsetime.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../src/.libs//librrd_private.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[5]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1 make[5]: Leaving directory `/usr/local/src/orca-snapshot-r407/packages/rrdtool-1.0.49/perl-shared'
what should i do to fix this problem and get it working?
Thanks, James
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Have you tried the suggest fix by the compiler? Or have you attempted this and is simply bombs out in some horrid fashion still? There was a similar thread about this last week I think. You may want to search the archives.
HTH
Alex White
I believe that was the problem I had and refered to. Same error message when building the .so. My solution was to build the object on a 32-bit platform, and then import it in. It works to some degree, but not fully, so I'm back to square one. The relocation bit is what killed the goose...
Alex White wrote:
James Bond wrote:
Hi, i am trying to compile the latest version of orca source code on CentOS 4.0 system running amd64 bit processor. I am getting the following error:
<snipped>
/usr/bin/ld: ../src/.libs//librrd_private.a(parsetime.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC ../src/.libs//librrd_private.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[5]: *** [blib/arch/auto/RRDs/RRDs.so] Error 1 make[5]: Leaving directory `/usr/local/src/orca-snapshot-r407/packages/rrdtool-1.0.49/perl-shared'
what should i do to fix this problem and get it working?
Thanks, James
relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
Have you tried the suggest fix by the compiler? Or have you attempted this and is simply bombs out in some horrid fashion still? There was a similar thread about this last week I think. You may want to search the archives.
HTH
Alex White _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Thu, 2005-10-13 at 08:20, James Bond wrote:
i am trying to compile the latest version of orca source code on CentOS 4.0 system running amd64 bit processor. I am getting the following error:
I can't help with that problem but speaking of rrd and 64-bits.... I'm trying to run cacti to graph the interface traffic of some Centos 3.5 x86_64 servers and it looks like there is a math error in the values returned by snmp. After a reboot they look right for a while but after a while (perhaps 2gigs total traffic...) they go crazy.
-- Les Mikesell les@futuresource.com
On Thu, 2005-10-13 at 13:49, Les Mikesell wrote:
On Thu, 2005-10-13 at 08:20, James Bond wrote:
i am trying to compile the latest version of orca source code on CentOS 4.0 system running amd64 bit processor. I am getting the following error:
I can't help with that problem but speaking of rrd and 64-bits.... I'm trying to run cacti to graph the interface traffic of some Centos 3.5 x86_64 servers and it looks like there is a math error in the values returned by snmp. After a reboot they look right for a while but after a while (perhaps 2gigs total traffic...) they go crazy.
Been awhile since I did anything with rrd or mrtg but could it be that you have selected the wrong type for the value being represented? I seem to recall a type that allowed for values to be reset to zero (counter rolls over). You may have a type set that is looking for increasing values only. From your brief description it sounds like the counters may be rolling over and cacti is having trouble figuring this out. You need to have a data type that is cumulative so when/if the counter roles over to zero the graphs will continue to show the expected info.
Change the data type used to the correct type and it should work.