[asterisk-bugs] [JIRA] (ASTERISK-25503) Compilation failure in Fedora 23 - 'collect2: error: ld returned 1 exit status'

Charles Moye (JIRA) noreply at issues.asterisk.org
Wed Apr 20 14:00:56 CDT 2016


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

Charles Moye commented on ASTERISK-25503:
-----------------------------------------

Ran into this on Tiny Core 7, for asterisk-certified-13.1-cert6 and certified-asterisk-1.8.28-cert5, adding the LDFLAGS="-z muldefs" resolved it for both.
I was seeing chan_iax2 and then chan_dahdi fail, after I disabled chan_iax in menuselect. Was able to re-enable chan_iax2 after adding this option to the configure.

> Compilation failure in Fedora 23 - 'collect2: error: ld returned 1 exit status'
> -------------------------------------------------------------------------------
>
>                 Key: ASTERISK-25503
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25503
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem
>    Affects Versions: 12.8.2, 13.6.0
>         Environment: Fedora 23
>            Reporter: Private Name
>
> I could not compile any version of Asterisk12 in Fedora 23. There must be a flag that needs to be set. The errors below:  
> [Edit by Rusty - Cleaning up the excessive debug below this line. As we've mentioned before please attach debug to the issue in .txt format. Do not post large debug into description or comment fields.]
> {noformat}
>  [LD] chan_sip.o sip/security_events.o sip/dialplan_functions.o sip/reqresp_parser.o sip/config_parser.o sip/utils.o -> chan_sip.so
> sip/security_events.o: In function `ast_atomic_fetchadd_int':
> ...
> chan_sip.o:/usr/src/asterisk/include/asterisk/strings.h:1099: first defined here
> sip/utils.o: In function `ast_rq_is_int':
> /usr/src/asterisk/include/asterisk/config.h:1116: multiple definition of `ast_rq_is_int'
> chan_sip.o:/usr/src/asterisk/include/asterisk/config.h:1116: first defined here
> collect2: error: ld returned 1 exit status
> /usr/src/asterisk/Makefile.rules:138: recipe for target 'chan_sip.so' failed
> make[1]: *** [chan_sip.so] Error 1
> Makefile:383: recipe for target 'channels' failed
> make: *** [channels] Error 2
> {noformat}



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



More information about the asterisk-bugs mailing list