I'm encountering the following error while trying to compile converters/libutf-8 in a jail. The host machine is a freshly installed/compiled/updated FreeBSD 7.2-RELEASE-p4 amd64 system, and a fresh ports tree, likewise with the jail.
I've been able to replicate the same error on a completely different machine running an up to date 7-STABLE. Also, the Makefile for the port does contain "CFLAGS+= -fPIC", so I am at a loss on the cause of this.
Thanks in advance.
Code:
# make install
===> Vulnerability check disabled, database not found
===> Extracting for libutf-8-1.0,1
=> MD5 Checksum OK for libutf-8-1.0.tar.gz.
=> SHA256 Checksum OK for libutf-8-1.0.tar.gz.
===> Patching for libutf-8-1.0,1
===> Applying FreeBSD patches for libutf-8-1.0,1
===> Configuring for libutf-8-1.0,1
===> Building for libutf-8-1.0,1
cc -O2 -fno-strict-aliasing -pipe -march=nocona -c fget.utf-8.c
cc -O2 -fno-strict-aliasing -pipe -march=nocona -c sget.utf-8.c
cc -O2 -fno-strict-aliasing -pipe -march=nocona -c fput.utf-8.c
cc -O2 -fno-strict-aliasing -pipe -march=nocona -c sput.utf-8.c
cc -O2 -fno-strict-aliasing -pipe -march=nocona -c nomacros.c
ld -o libutf-8.so.1 fget.utf-8.o sget.utf-8.o fput.utf-8.o sput.utf-8.o nomacros.o -shared -soname libutf-8.so.1
ld: fget.utf-8.o: relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
fget.utf-8.o: could not read symbols: Bad value
*** Error code 1
Stop in /usr/ports/converters/libutf-8/work/libutf-8-1.0.
*** Error code 1
Stop in /usr/ports/converters/libutf-8.
I've been able to replicate the same error on a completely different machine running an up to date 7-STABLE. Also, the Makefile for the port does contain "CFLAGS+= -fPIC", so I am at a loss on the cause of this.
Thanks in advance.