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

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


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

> [...]
>  IsisInterfaceMapLineScan.cc:92:11: warning: variable 'lon_lat_radius'
> set but not used [-Wunused-but-set-variable]
>   CXX    IsisAdjustCameraModel.lo
>   CXXLD  libaspIsisIO.la
> /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
> *** [libaspIsisIO.la] 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.
-- 
Mel


More information about the freebsd-ports mailing list