Hi Team,

I have tried with "make clean and make install" . Then also I doesn't work.

Usually, whenever we do some changes in any "C file", I used to execute
"make install". Or Is there any other procedure which I need to follow for
recompile and Am I missing anything here for recompiling?

Is there any way to figure it out?


Regards,
Boobalan

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
[email protected]
Sent: Thursday, December 31, 2015 11:30 PM
To: [email protected]
Subject: asterisk-dev Digest, Vol 137, Issue 20

Send asterisk-dev mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.digium.com/mailman/listinfo/asterisk-dev
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of asterisk-dev digest..."


Today's Topics:

   1. Re: Asterisk - 13.6.0 - While bring up Asterisk seeing error
      "undefined symbol": (Matthew Jordan)


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

Message: 1
Date: Thu, 31 Dec 2015 08:32:29 -0600
From: Matthew Jordan <[email protected]>
To: Asterisk Developers Mailing List <[email protected]>
Subject: Re: [asterisk-dev] Asterisk - 13.6.0 - While bring up
        Asterisk seeing error "undefined symbol":
Message-ID:
        <can2pu+6orv9u6sooev4ecluhjhysltkh1zosb2wkg9kccy1...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Dec 31, 2015 at 6:20 AM, Boobalan M <[email protected]>
wrote:

> Hi Team,
>
>
>
> We are encountering below issue often when try to make asterisk up.
>
>
>
> "
>
> [Dec 31 13:31:35] WARNING[17782]: loader.c:553 load_dynamic_module: Error
> loading module 'app_voicemail.so':
> /usr/lib64/asterisk/modules/app_voicemail.so: undefined symbol:
> ast_say_date_with_format
>
> "
>
>
>
> This issue we can able to solve rebuilding whole asterisk only. But some
> times, rebuild also doesn't work.
>
>
>
> Both Asterisk logs and symbols details of one of the modules(
> app_voicemail.so) from error list are attached.
>
>
>
> We could see ?ast_say_date_with_format? is marked as undefined . This we
> are saying from ?nm --demangle app_voicemail.so? output. But I am not
> sure why it often comes.
>
>
>
> Can you please suggestion on this to sort it out since we are facing this
> issue very often.
>
>
>

ast_say_date_with_format is a function pointer, defined in say.h:

SAY_EXTERN int (* ast_say_date_with_format)(struct ast_channel *chan,
time_t t, const char *ints, const char *lang, const char *format, const
char *timezone) SAY_INIT(ast_say_date_with_format);

As the documentation in that header file explains, a module must assign
these function pointers if they wish to change the default functionality
from the internal implementation in say.c. You'll note that this is done by
a constructor function in say.c:

/*! \brief
 * remap the 'say' functions to use those in this file
 */
static void __attribute__((constructor)) __say_init(void)
{
    ast_say_number_full = say_number_full;
    ast_say_enumeration_full = say_enumeration_full;
    ast_say_digit_str_full = say_digit_str_full;
    ast_say_character_str_full = say_character_str_full;
    ast_say_phonetic_str_full = say_phonetic_str_full;
    ast_say_datetime = say_datetime;
    ast_say_time = say_time;
    ast_say_date = say_date;
    ast_say_datetime_from_now = say_datetime_from_now;
    ast_say_date_with_format = say_date_with_format;
}

As well, if loaded, app_playback will override this in its say_init_mode
function. This allows it to change the hardcoded 'say' functions in the
core with the functionality provided by say.conf.

All of this is to say: ast_say_date_with_format is absolutely a defined
function pointer. I'm not sure what compiler you're using, what you've
modified, or how you're building Asterisk, but in all the tens of thousands
of builds I've seen done with both gcc and clang, I've never seen either
compiler have a problem finding the declaration of this function pointer.

The fact that your Errors.txt file is littered with many other symbol
resolution issues makes me think that you have 'tweaked' something,
attempted to build on a very non-standard platform, or are otherwise
operating outside the bounds of the usual build system.

Matt

-- 
Matthew Jordan
Digium, Inc. | Director of Technology
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-dev/attachments/20151231/79f2748
6/attachment-0001.html>

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

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

End of asterisk-dev Digest, Vol 137, Issue 20
*********************************************




-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to