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

Pablo Catalina (JIRA) noreply at issues.asterisk.org
Wed May 16 05:09:55 CDT 2018


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

Pablo Catalina updated ASTERISK-27858:
--------------------------------------

    Component/s: Channels/chan_iax2
    Description: 
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}

  was:
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}



> 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
>    Affects Versions: 15.4.0
>         Environment: Debian Jessie (armel)
>            Reporter: Pablo Catalina
>
> 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}



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



More information about the asterisk-bugs mailing list