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

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Oct 13 05:57:55 CDT 2021


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

Asterisk Team updated ASTERISK-29634:
-------------------------------------

    Target Release Version/s: 19.0.0

> 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
>      Target Release: 16.21.0, 18.7.0, 19.0.0
>
>
> 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