Solved ld: error: relocation R_X86_64_32 cannot be used against local symbol

Hi.

I tried to update my system. actually I have FreeBSD 13.3

> portmaster devel/automake

I've got follow error messages.

Code:
ld: error: relocation R_X86_64_32 cannot be used against local symbol; recompile with -fPIC
>>> defined in /usr/lib/libtermcap.a(visbuf.o)
>>> referenced by visbuf.c:0 (/usr/src/contrib/ncurses/ncurses/trace/visbuf.c:0)
>>>               visbuf.o:(_nc_visbuf2n) in archive /usr/lib/libtermcap.a


I have no idea.

Thanks
Steffen
 
what was the target that actually failed ?
this error is when trying to create a shared object by linking against a static lib that does not have position independe code (fpic)
 
I found the problem. There was a missing sym link. I don't know why...

this fix my problem
Code:
ln -sf ../../lib/libncursesw.so.9 /usr/lib/libncursesw.so
 
sh:
root@wallace:/usr/lib # ls -la /usr/lib/ | grep libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jun 20  2022 libcurses.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jul 21  2017 libcursesw.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jun 20  2022 libncurses.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        26 Jan  7 13:06 libncursesw.so -> ../../lib/libncursesw.so.9
lrwxr-xr-x   1 root  wheel        14 Jan  6 11:20 libtermcap.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jan  6 11:20 libtermcapw.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jan  6 11:20 libtermlib.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jan  6 11:20 libtermlibw.so -> libncursesw.so
lrwxr-xr-x   1 root  wheel        14 Jan  6 11:20 libtinfo.so -> libncursesw.so
 
Back
Top