“relocation R_X86_64_32S against ” linking Error

前端 未结 5 1836
被撕碎了的回忆
被撕碎了的回忆 2020-11-28 04:23

I\'m Trying to Link a static Library to a shared library , I\'m Getting the Following error

/usr/bin/ld: ../../../libraries/log4cplus/liblog4cplus.a(fileappender.o         


        
5条回答
  •  我在风中等你
    2020-11-28 04:57

    Relocation R_X86_64_PC32 against undefined symbol , usually happens when LDFLAGS are set with hardening and CFLAGS not .
    Maybe just user error:
    If you are using -specs=/usr/lib/rpm/redhat/redhat-hardened-ld at link time, you also need to use -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 at compile time, and as you are compiling and linking at the same time, you need either both, or drop the -specs=/usr/lib/rpm/redhat/redhat-hardened-ld . Common fixes :
    https://bugzilla.redhat.com/show_bug.cgi?id=1304277#c3
    https://github.com/rpmfusion/lxdream/blob/master/lxdream-0.9.1-implicit.patch

提交回复
热议问题