[Home]

Summary:ASTERISK-11411: Compile Fail when enable Module Embedding
Reporter:Dome C. (dome)Labels:
Date Opened:2008-02-10 05:08:17.000-0600Date Closed:2009-04-10 17:16:39
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_h323
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) bug11966.patch
( 1) bug11966-2.patch
( 2) issue_11966.patch
Description:When Include Channel on Module Embedding (make menuselect)
Channel H323 caompile Fail
=================================
../res/modules.link -> asterisk
/usr/bin/ld: Dwarf Error: Abbrev offset (10996) greater than or equal to .debug_abbrev size (748).
../channels/chan_h323.eo: In function `oh323_digit_begin':
chan_h323.c:(.text+0x10ba): undefined reference to `h323_send_tone'
../channels/chan_h323.eo: In function `oh323_digit_end':
chan_h323.c:(.text+0x12c6): undefined reference to `h323_send_tone'
../channels/chan_h323.eo: In function `oh323_call':
chan_h323.c:(.text+0x184f): undefined reference to `h323_make_call'
../channels/chan_h323.eo: In function `oh323_answer':
chan_h323.c:(.text+0x19ac): undefined reference to `h323_answering_call'
../channels/chan_h323.eo: In function `oh323_hangup':
chan_h323.c:(.text+0x1d2e): undefined reference to `h323_clear_call'
../channels/chan_h323.eo: In function `oh323_indicate':
chan_h323.c:(.text+0x24eb): undefined reference to `h323_send_alerting'
chan_h323.c:(.text+0x252f): undefined reference to `h323_send_progress'
chan_h323.c:(.text+0x2560): undefined reference to `h323_answering_call'
chan_h323.c:(.text+0x25a4): undefined reference to `h323_answering_call'
chan_h323.c:(.text+0x25d6): undefined reference to `h323_hold_call'
chan_h323.c:(.text+0x260c): undefined reference to `h323_hold_call'
../channels/chan_h323.eo: In function `oh323_request':
chan_h323.c:(.text+0x6099): undefined reference to `h323_set_id'
../channels/chan_h323.eo: In function `answer_call':
chan_h323.c:(.text+0x8235): undefined reference to `h323_clear_call'
../channels/chan_h323.eo: In function `set_local_capabilities':
chan_h323.c:(.text+0x8eef): undefined reference to `h323_set_capabilities'
../channels/chan_h323.eo: In function `handle_cli_h323_set_trace':
chan_h323.c:(.text+0x9475): undefined reference to `h323_debug'
chan_h323.c:(.text+0x94b5): undefined reference to `h323_debug'
../channels/chan_h323.eo: In function `handle_cli_h323_cycle_gk':
chan_h323.c:(.text+0x9626): undefined reference to `h323_gk_urq'
chan_h323.c:(.text+0x964c): undefined reference to `h323_set_gk'
../channels/chan_h323.eo: In function `handle_cli_h323_hangup':
chan_h323.c:(.text+0x96f8): undefined reference to `h323_soft_hangup'
../channels/chan_h323.eo: In function `handle_cli_h323_show_tokens':
chan_h323.c:(.text+0x980d): undefined reference to `h323_show_tokens'
../channels/chan_h323.eo: In function `reload_config':
chan_h323.c:(.text+0x9fa5): undefined reference to `h323_end_point_exist'
chan_h323.c:(.text+0x9fae): undefined reference to `h323_end_point_create'
chan_h323.c:(.text+0xaf8f): undefined reference to `h323_set_alias'
chan_h323.c:(.text+0xb082): undefined reference to `h323_gk_urq'
chan_h323.c:(.text+0xb0a8): undefined reference to `h323_set_gk'
../channels/chan_h323.eo: In function `load_module':
chan_h323.c:(.text+0xb61e): undefined reference to `h323_end_process'
chan_h323.c:(.text+0xb995): undefined reference to `h323_callback_register'
chan_h323.c:(.text+0xb9c7): undefined reference to `h323_start_listener'
chan_h323.c:(.text+0xba2c): undefined reference to `h323_end_process'
chan_h323.c:(.text+0xbd2a): undefined reference to `h323_set_gk'
../channels/chan_h323.eo: In function `unload_module':
chan_h323.c:(.text+0xbfc2): undefined reference to `h323_gk_urq'
chan_h323.c:(.text+0xbfc7): undefined reference to `h323_end_process'
Comments:By: Joshua C. Colp (jcolp) 2008-02-11 08:55:03.000-0600

This is also applicable to Asterisk 1.4.

By: jmls (jmls) 2008-05-03 14:27:17

any progress on this ?

By: Sean Bright (seanbright) 2008-09-04 11:55:18

dome,

Does this still occur with the lastest 1.6.0 RC?  Also, what platform/distribution are you in?

By: Sean Bright (seanbright) 2008-09-04 13:13:43

Nevermind, I just confirmed that it is still a problem.

By: Jeff Peeler (jpeeler) 2008-12-16 15:06:52.000-0600

This also happens with both chan_gtalk and chan_jingle.

By: Jeff Peeler (jpeeler) 2009-01-13 16:56:39.000-0600

This patch was made by Sean Bright, with one small modification by me.

By: Sergey Tamkovich (sergee) 2009-01-14 05:04:30.000-0600

probably a typo in the patch:

-chan_h323.so: chan_h323.o h323/libchanh323.a
+modules.link: h323/libchanh323.a
+endif
+else
+chan_h323.so: chan_h323.o h323/libchanh323


a believe it should be h323/libchanh323.a in the last string

By: Jeff Peeler (jpeeler) 2009-01-14 10:49:00.000-0600

Thanks, I did no testing on other platforms to catch that.

By: Sean Bright (seanbright) 2009-01-14 11:47:34.000-0600

And just for the history books, the patch was actually written by Kevin Fleming and I was saving it for a really really really rainy day.  FWIW, he said that while it got things to compile, it might not actually create a working executable.

By: Jeff Peeler (jpeeler) 2009-01-14 12:10:41.000-0600

Well I can at least verify it works on Linux. I'll come back to this after I finish some other h323 work.

By: Digium Subversion (svnbot) 2009-04-10 15:26:47

Repository: asterisk
Revision: 187906

U   trunk/channels/Makefile

------------------------------------------------------------------------
r187906 | jpeeler | 2009-04-10 15:26:47 -0500 (Fri, 10 Apr 2009) | 12 lines

Fix module embedding for chan_h323.

Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.

(closes issue ASTERISK-11411)
Reported by: dome
Patches:
     issue_11966.patch uploaded by kpfleming (license 421)
Tested by: jpeeler


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187906

By: Digium Subversion (svnbot) 2009-04-10 15:27:59

Repository: asterisk
Revision: 187912

_U  branches/1.6.0/
U   branches/1.6.0/channels/Makefile

------------------------------------------------------------------------
r187912 | jpeeler | 2009-04-10 15:27:59 -0500 (Fri, 10 Apr 2009) | 18 lines

Merged revisions 187906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r187906 | jpeeler | 2009-04-10 15:26:46 -0500 (Fri, 10 Apr 2009) | 12 lines
 
 Fix module embedding for chan_h323.
 
 Include libchanh323.a in the modules.link file so that all the symbols can be
 resolved at link time.
 
 (closes issue ASTERISK-11411)
 Reported by: dome
 Patches:
       issue_11966.patch uploaded by kpfleming (license 421)
 Tested by: jpeeler
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187912

By: Digium Subversion (svnbot) 2009-04-10 15:28:18

Repository: asterisk
Revision: 187914

_U  branches/1.6.1/
U   branches/1.6.1/channels/Makefile

------------------------------------------------------------------------
r187914 | jpeeler | 2009-04-10 15:28:18 -0500 (Fri, 10 Apr 2009) | 18 lines

Merged revisions 187906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r187906 | jpeeler | 2009-04-10 15:26:46 -0500 (Fri, 10 Apr 2009) | 12 lines
 
 Fix module embedding for chan_h323.
 
 Include libchanh323.a in the modules.link file so that all the symbols can be
 resolved at link time.
 
 (closes issue ASTERISK-11411)
 Reported by: dome
 Patches:
       issue_11966.patch uploaded by kpfleming (license 421)
 Tested by: jpeeler
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187914

By: Digium Subversion (svnbot) 2009-04-10 15:28:36

Repository: asterisk
Revision: 187916

_U  branches/1.6.2/
U   branches/1.6.2/channels/Makefile

------------------------------------------------------------------------
r187916 | jpeeler | 2009-04-10 15:28:36 -0500 (Fri, 10 Apr 2009) | 18 lines

Merged revisions 187906 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r187906 | jpeeler | 2009-04-10 15:26:46 -0500 (Fri, 10 Apr 2009) | 12 lines
 
 Fix module embedding for chan_h323.
 
 Include libchanh323.a in the modules.link file so that all the symbols can be
 resolved at link time.
 
 (closes issue ASTERISK-11411)
 Reported by: dome
 Patches:
       issue_11966.patch uploaded by kpfleming (license 421)
 Tested by: jpeeler
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187916

By: Digium Subversion (svnbot) 2009-04-10 17:16:13

Repository: asterisk
Revision: 187962

U   branches/1.4/channels/Makefile

------------------------------------------------------------------------
r187962 | jpeeler | 2009-04-10 17:16:13 -0500 (Fri, 10 Apr 2009) | 9 lines

Fix module embedding for chan_h323.

Include libchanh323.a in the modules.link file so that all the symbols can be
resolved at link time.

(closes issue ASTERISK-11411)
Reported by: dome


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187962

By: Digium Subversion (svnbot) 2009-04-10 17:16:38

Repository: asterisk
Revision: 187963

_U  trunk/

------------------------------------------------------------------------
r187963 | jpeeler | 2009-04-10 17:16:38 -0500 (Fri, 10 Apr 2009) | 14 lines

Blocked revisions 187962 via svnmerge

........
 r187962 | jpeeler | 2009-04-10 17:16:13 -0500 (Fri, 10 Apr 2009) | 9 lines
 
 Fix module embedding for chan_h323.
 
 Include libchanh323.a in the modules.link file so that all the symbols can be
 resolved at link time.
 
 (closes issue ASTERISK-11411)
 Reported by: dome
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=187963