[Home]

Summary:ASTERISK-16425: [patch] Upgrading from 1.6.2.10 to 1.8-beta1 did not work with the original modules.conf
Reporter:Ira Emus (ira)Labels:
Date Opened:2010-07-25 12:46:36Date Closed:2010-09-02 00:27:57
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20100819__issue17707__asterisk1.8.diff.txt
( 1) 20100819__issue17707__menuselect.diff.txt
( 2) modules.1.6.conf
Description:After upgrading from 1.6.10 to 1.8 I got the following errors:

WARNING[28505] loader.c: Error loading module 'chan_dahdi.so': /usr/lib/asterisk/modules/chan_dahdi.so: undefined symbol: ast_smdi_interface_unref

WARNING[28505] loader.c: Error loading module 'app_stack.so': /usr/lib/asterisk/modules/app_stack.so: undefined symbol: ast_agi_unregister

WARNING[28505] loader.c: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_decrypt_key

WARNING[28505] loader.c: Error loading module 'app_voicemail.so': /usr/lib/asterisk/modules/app_voicemail.so: undefined symbol: ast_smdi_mwi_message_destroy

Replacing modules.conf with one that only contained the line autoload=yes allowed Asterisk to run and work but left the following errors:

WARNING[14569] loader.c: Error loading module 'func_aes.so': /usr/lib/asterisk/modules/func_aes.so: undefined symbol: ast_aes_set_decrypt_key

WARNING[14569] loader.c: Error loading module 'app_speech_utils.so': /usr/lib/asterisk/modules/app_speech_utils.so: undefined symbol: ast_speech_start


****** ADDITIONAL INFORMATION ******

 gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)

 ld --version
GNU ld version 2.17.50.0.6-14.el5 20061020

CentOS 5.5 with yum update showing everything up to date

I'm sure you'll need more info, which I'll be happy to supply if you tell me what it is.
Comments:By: Paul Belanger (pabelanger) 2010-07-25 13:30:58

Please attached your 1.6.2 modules.conf file.

By: Ira Emus (ira) 2010-07-25 13:38:52

Sorry, it's there now!

By: Leif Madsen (lmadsen) 2010-07-26 10:33:45

This bug stems from the discussion on the mailing list here:

http://lists.digium.com/pipermail/asterisk-users/2010-July/251491.html

Tilghman responds here:

http://lists.digium.com/pipermail/asterisk-users/2010-July/251511.html

By: Tilghman Lesher (tilghman) 2010-08-19 14:34:54

These two patches should fix this issue.  What this does is to ensure that dependencies are built and forced to load, when a version of GCC that has this bug is used to compile Asterisk.

Note that you'll need to also patch menuselect within your Asterisk installation, so that optional dependencies on the affected GCC versions become required dependencies and will be correctly built along with the requested modules.

By: Digium Subversion (svnbot) 2010-08-24 20:42:40

Repository: menuselect
Revision: 814

U   trunk/acinclude.m4
U   trunk/aclocal.m4
U   trunk/autoconfig.h.in
UU  trunk/configure
U   trunk/configure.ac
U   trunk/menuselect.c

------------------------------------------------------------------------
r814 | tilghman | 2010-08-24 20:42:39 -0500 (Tue, 24 Aug 2010) | 8 lines

Translate keyword 'use' to 'depend', if the functionality in the compiler is not present to make 'use' work.

(issue ASTERISK-16425)
Reported by: ira
Patches:
      20100819__issue17707__menuselect.diff.txt uploaded by tilghman (license 14)
Tested by: tilghman

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

http://svn.digium.com/view/menuselect?view=rev&revision=814

By: Digium Subversion (svnbot) 2010-09-02 00:21:03

Repository: asterisk
Revision: 284610

U   branches/1.8/apps/app_adsiprog.c
U   branches/1.8/apps/app_followme.c
U   branches/1.8/apps/app_getcpeid.c
U   branches/1.8/apps/app_queue.c
U   branches/1.8/apps/app_speech_utils.c
U   branches/1.8/apps/app_stack.c
U   branches/1.8/apps/app_voicemail.c
U   branches/1.8/channels/chan_agent.c
U   branches/1.8/channels/chan_dahdi.c
U   branches/1.8/channels/chan_iax2.c
U   branches/1.8/channels/chan_mgcp.c
U   branches/1.8/channels/chan_sip.c
U   branches/1.8/funcs/func_aes.c
U   branches/1.8/include/asterisk/module.h
U   branches/1.8/main/loader.c
U   branches/1.8/pbx/pbx_dundi.c
U   branches/1.8/pbx/pbx_loopback.c
U   branches/1.8/pbx/pbx_realtime.c

------------------------------------------------------------------------
r284610 | tilghman | 2010-09-02 00:21:02 -0500 (Thu, 02 Sep 2010) | 10 lines

When optional_api is non-optional, force dependent modules to be loaded.

(closes issue ASTERISK-16425)
Reported by: ira
Patches:
      20100819__issue17707__asterisk1.8.diff.txt uploaded by tilghman (license 14)
Tested by: tilghman

Review: https://reviewboard.asterisk.org/r/876/

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

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

By: Digium Subversion (svnbot) 2010-09-02 00:27:56

Repository: asterisk
Revision: 284628

_U  trunk/
U   trunk/apps/app_adsiprog.c
U   trunk/apps/app_followme.c
U   trunk/apps/app_getcpeid.c
U   trunk/apps/app_queue.c
U   trunk/apps/app_speech_utils.c
U   trunk/apps/app_stack.c
U   trunk/apps/app_voicemail.c
U   trunk/channels/chan_agent.c
U   trunk/channels/chan_dahdi.c
U   trunk/channels/chan_iax2.c
U   trunk/channels/chan_mgcp.c
U   trunk/channels/chan_sip.c
U   trunk/funcs/func_aes.c
U   trunk/include/asterisk/module.h
U   trunk/main/loader.c
U   trunk/pbx/pbx_dundi.c
U   trunk/pbx/pbx_loopback.c
U   trunk/pbx/pbx_realtime.c

------------------------------------------------------------------------
r284628 | tilghman | 2010-09-02 00:27:56 -0500 (Thu, 02 Sep 2010) | 17 lines

Merged revisions 284610 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
 r284610 | tilghman | 2010-09-02 00:20:59 -0500 (Thu, 02 Sep 2010) | 10 lines
 
 When optional_api is non-optional, force dependent modules to be loaded.
 
 (closes issue ASTERISK-16425)
  Reported by: ira
  Patches:
        20100819__issue17707__asterisk1.8.diff.txt uploaded by tilghman (license 14)
  Tested by: tilghman
 
 Review: https://reviewboard.asterisk.org/r/876/
........

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

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