Building a port with math/superlu fails: linking a shared obj library adding archive superlu.a fails

Mel Flynn rflynn at
Sun Mar 11 20:47:40 UTC 2012

On 3/11/2012 20:39, O. Hartmann wrote:

> [...]
> warning: variable 'lon_lat_radius'
> set but not used [-Wunused-but-set-variable]
>   CXX    IsisAdjustCameraModel.lo
> /usr/local/bin/ld: /usr/local/lib/libsuperlu.a(dgssvx.o): relocation
> R_X86_64_32 against `.rodata.str1.1' can not be used when making a
> shared object; recompile with -fPIC
> /usr/local/lib/libsuperlu.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> *** [] Error code 1

Are you using USE_AUTOTOOLS=libtool but not automake?
I'm seeing similar issues with zarafa if I do just that. If I let the
port use the provided libtool *or* use the entire autotools toolchain,
then all is well. Also, adding --with-pic to CONFIGURE_ARGS does not
change either outcome.

More information about the freebsd-ports mailing list