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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Fri Sep 10 10:38:33 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Friendly Automation closed ASTERISK-29634.
------------------------------------------

    Resolution: Fixed

> 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: 16.20.0, 18.6.0, 19.0.0
>            Reporter: George Joseph
>            Assignee: 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