Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 May 2005 14:21:41 +0100
From:      "Steven Hartland" <killing@multiplay.co.uk>
To:        <freebsd-hackers@freebsd.org>, <freebsd-ports@freebsd.org>
Subject:   amd64 compile of rrdtool ( relocation R_X86_64_32 error )
Message-ID:  <03e401c55a1a$34d3c330$b3db87d4@multiplay.co.uk>

next in thread | raw e-mail | index | archive | help
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@multiplay.co.uk.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03e401c55a1a$34d3c330$b3db87d4>