amd64 compile of rrdtool ( relocation R_X86_64_32 error )

Steven Hartland killing at multiplay.co.uk
Mon May 16 13:22:18 GMT 2005


When compiling rrdtool on amd64 I get the follow. Having read around about
the message I must say I'm none the wiser. I've tried adding -fPIC to the rrd_private
compile but that doesnt seem to have any effect. What am I missing?

[log]
/bin/sh /usr/local/bin/libtool15 --mode=link 
cc  -O -pipe -I/usr/local/include -L/usr/local/lib -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations 
 -Wnested-externs -Winline    -o librrd_private.la  -static -fPIC gdpng.lo getopt.lo getopt1.lo gifsize.lo parsetime.lo 
pngsize.lo rrd_create.lo rrd_diff.lo rrd_dump.lo rrd_info.lo  rrd_error.lo rrd_fetch.lo rrd_format.lo rrd_graph.lo  rrd_last.lo 
rrd_open.lo rrd_resize.lo rrd_restore.lo  rrd_tune.lo rrd_update.lo rrd_xport.lo ../cgilib-0.4/librrd_cgi.la 
../gd1.3/librrd_gd.la   ../libpng-1.0.9/librrd_png.la                   -lz -lm
[/log]

[error]
rm -f blib/arch/auto/RRDs/RRDs.so
LD_RUN_PATH="" cc  -shared  -L/usr/local/lib RRDs.o -L../src/.libs/ -lrrd_private  -lz -lm -o blib/arch/auto/RRDs/RRDs.so
/usr/bin/ld: ../src/.libs//librrd_private.a(getopt.o): relocation R_X86_64_32 can not be used when making a shared object; 
recompile with -fPIC
../src/.libs//librrd_private.a: could not read symbols: Bad value
[/error] 



================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137
or return the E.mail to postmaster at multiplay.co.uk.



More information about the freebsd-hackers mailing list