[asterisk-bugs] [JIRA] (ASTERISK-27858) Cannot build static with chan_mgcp, chan_phone

Benjamin Keith Ford (JIRA) noreply at issues.asterisk.org
Wed May 16 13:56:55 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243434#comment-243434 ] 

Benjamin Keith Ford commented on ASTERISK-27858:
------------------------------------------------

[~xkill], were you successful in compiling without STATIC? If so, I'll go ahead and open up another issue for what we want to do with STATIC in the future.

> Cannot build static with chan_mgcp, chan_phone
> ----------------------------------------------
>
>                 Key: ASTERISK-27858
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27858
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2, Channels/chan_mgcp, Channels/chan_phone, Channels/chan_pjsip, Channels/General
>    Affects Versions: 15.4.0
>         Environment: Debian Jessie (armel)
>            Reporter: Pablo Catalina
>            Severity: Minor
>              Labels: pjsip
>
> Compiling asterisk on armel (debian jessie) with LOW MEM and STATIC enabled:
> {code}
>    [CC] chan_mgcp.c -> chan_mgcp.o
>    [LD] chan_mgcp.o -> chan_mgcp.so
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o)(.text+0x18): R_ARM_TLS_LE32 relocation not permitted in shared object
> /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o): In function `_dl_initial_error_catch_tsd':
> (.text+0x18): dangerous relocation: unsupported relocation
> collect2: error: ld returned 1 exit status
> /root/asterisk-15.4.0/Makefile.rules:176: recipe for target 'chan_mgcp.so' failed
> make[1]: *** [chan_mgcp.so] Error 1
> Makefile:386: recipe for target 'channels' failed
> make: *** [channels] Error 2
> {code}
> {code}
>    [CC] chan_phone.c -> chan_phone.o
>    [LD] chan_phone.o -> chan_phone.so
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o)(.text+0x18): R_ARM_TLS_LE32 relocation not permitted in shared object
> /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o): In function `_dl_initial_error_catch_tsd':
> (.text+0x18): dangerous relocation: unsupported relocation
> collect2: error: ld returned 1 exit status
> /root/asterisk-15.4.0/Makefile.rules:176: recipe for target 'chan_phone.so' failed
> make[1]: *** [chan_phone.so] Error 1
> Makefile:386: recipe for target 'channels' failed
> make: *** [channels] Error 2
> {code}
> {code}
>    [CC] chan_iax2.c -> chan_iax2.o
>    [CC] iax2/parser.c -> iax2/parser.o
>    [CC] iax2/firmware.c -> iax2/firmware.o
>    [CC] iax2/provision.c -> iax2/provision.o
>    [CC] iax2/codec_pref.c -> iax2/codec_pref.o
>    [CC] iax2/format_compatibility.c -> iax2/format_compatibility.o
>    [LD] chan_iax2.o iax2/parser.o iax2/firmware.o iax2/provision.o iax2/codec_pref.o iax2/format_compatibility.o -> chan_iax2.so
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o)(.text+0x18): R_ARM_TLS_LE32 relocation not permitted in shared object
> /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o): In function `_dl_initial_error_catch_tsd':
> (.text+0x18): dangerous relocation: unsupported relocation
> collect2: error: ld returned 1 exit status
> /root/asterisk-15.4.0/Makefile.rules:176: recipe for target 'chan_iax2.so' failed
> make[1]: *** [chan_iax2.so] Error 1
> Makefile:386: recipe for target 'channels' failed
> make: *** [channels] Error 2
> {code}
> {code}
>    [CC] chan_pjsip.c -> chan_pjsip.o
>    [CC] pjsip/dialplan_functions.c -> pjsip/dialplan_functions.o
>    [CC] pjsip/cli_commands.c -> pjsip/cli_commands.o
>    [LD] chan_pjsip.o pjsip/dialplan_functions.o pjsip/cli_commands.o -> chan_pjsip.so
> /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o)(.text+0x18): R_ARM_TLS_LE32 relocation not permitted in shared object
> /usr/lib/gcc/arm-linux-gnueabi/4.9/../../../arm-linux-gnueabi/libc.a(dl-tsd.o): In function `_dl_initial_error_catch_tsd':
> (.text+0x18): dangerous relocation: unsupported relocation
> collect2: error: ld returned 1 exit status
> /root/asterisk-15.4.0/Makefile.rules:176: recipe for target 'chan_pjsip.so' failed
> make[1]: *** [chan_pjsip.so] Error 1
> Makefile:386: recipe for target 'channels' failed
> make: *** [channels] Error 2
> {code}
> Probably all the channels are affected by this issue. I'm going to compile without STATIC flag.



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



More information about the asterisk-bugs mailing list