[asterisk-bugs] [JIRA] (ASTERISK-20761) Asterisk 11 Compile errors when embedding modules (/usr/bin/ld: Dwarf Error: ...)

Corey Farrell (JIRA) noreply at issues.asterisk.org
Thu Sep 12 03:15:03 CDT 2013


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

Corey Farrell updated ASTERISK-20761:
-------------------------------------

    Attachment: embedded-12up.patch
                embedded-11.patch
                embedded-all.patch

Updated patches are attached.  This patch removes the changes to include/asterisk/module.h as they seem to cause crashing on some systems.  NO_EMBED_MODS Makefile variable was also removed since all modules are embeddable.

Embedded modules cannot hide non-static symbols.  I used 'nm' to audit global symbols in all object (*.o) files.  Static was added to any variable that is not used outside it's own source, and not normally exported.  These fixes resolve the duplicate symbol error's with embedded linking.

Asterisk 12 res_pjsip and res_pjsip_messaging both had pjsip_message_method.  The patch for asterisk 12 removes both since the same variable is already declared and exported from pjproject.  That change needs testing or verified by someone with more knowledge of res_pjsip.

PJPROJECT in Asterisk 11 is a special problem.  It requires adding shared libraries to asterisk which are not otherwise used.  This is not directly supported through the normal method of embedding libraries.  My patch adds special targets to res/Makefile which print LDFLAGS and LDLIBS needed for PJPROJECT.  This is called from main/Makefile so PJPROJECT can be linked to asterisk.
                
> Asterisk 11 Compile errors when embedding modules (/usr/bin/ld: Dwarf Error: ...)
> ---------------------------------------------------------------------------------
>
>                 Key: ASTERISK-20761
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20761
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/BuildSystem, Resources/res_rtp_asterisk, Resources/res_xmpp
>    Affects Versions: 11.0.0, 11.0.1
>         Environment: Debian 6 x64
>            Reporter: Thomas Eugene
>         Attachments: Asterisk_11_Compile_Error.txt, embedded-11.patch, embedded-12up.patch, embedded-all.patch
>
>
> When compiling Version 11, I get compile time error with DWARF error. I get this when I embed modules. I also has removed the main/modules.link issues that seems not be caught by anyone since version 1.8, 10 and 11.
> I have all the packages needed. Asterisk 1.8 has no issues compiling.
> I will attach the compile time logs with the errors I see

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list