[asterisk-bugs] [JIRA] (ASTERISK-29634) res_snmp: gcc 11 needs -fPIC to compile correctly

George Joseph (JIRA) noreply at issues.asterisk.org
Wed Sep 8 09:34:33 CDT 2021


George Joseph created ASTERISK-29634:
----------------------------------------

             Summary: res_snmp:  gcc 11 needs -fPIC to compile correctly
                 Key: ASTERISK-29634
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29634
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_snmp
    Affects Versions: 18.6.0, 16.20.0, 19.0.0
            Reporter: George Joseph


Wirhout -fPIC:
{code}
   [LD] res_snmp.o snmp/agent.o -> res_snmp.so
/usr/bin/ld: /tmp/ccQpmjU4.ltrans0.ltrans.o: warning: relocation against `ast_lastreloadtime' in read-only section `.text'
/usr/bin/ld: /tmp/ccQpmjU4.ltrans0.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `ast_verb_sys_level' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list