[Asterisk-Dev] Re: ast_pthread_create use with external lib

Karl Brose karlbrose at optonline.net
Fri Oct 1 12:31:48 MST 2004



I had the same problem on someone's installation recently,
it's not the CVS mechanisms fault.
The definitions of ast_pthread_create are weird depending on
OS definitions.
I had to insert the #define in chan_vpb.c to get a quick fix.
The real problem needs to be solved elsewhere in the headers,
but had no time to looking into it yet.

#ifdef pthread_create
#undef pthread_create
#endif
#define ast_pthread_create pthread_create         <===== inserted



Tony Mountifield wrote:

>In article <003501c4a7bb$793a3fc0$cc01000a at texnet.org>,
>Leandro <leandro at texnet.it> wrote:
>  
>
>>----- Original Message ----- 
>>From: "Richard Lyman" <pchammer at dynx.net>
>>To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
>>Sent: Thursday, September 30, 2004 6:46 PM
>>Subject: Re: [Asterisk-Dev] ast_pthread_create use with external lib
>>
>>
>>    
>>
>>>Leandro wrote:
>>>
>>>      
>>>
>>>>Hello,
>>>>I am trying to use OpenLine cards with Asterisk (I found laying around
>>>>two OpenLine4 dated back 2002), but the vpb driver uses the
>>>>pthread_create library call instead of ast_pthread_create and so
>>>>asterisk, while loading modules, starting with chan_sip.so, exits with
>>>>the common "hint" undefined symbol: __use_ast_pthread_create_instead__
>>>>
>>>>Is there a way to use the vpb driver?
>>>>
>>>>Leandro
>>>>
>>>>
>>>>        
>>>>
>>>__use_ ***>>> ast_pthread_create <<<*** _instead__
>>>
>>>so rename all pthread_create to ast_pthread_create ...
>>>
>>>      
>>>
>>I tried, but it fails because ast_pthread_create isn't available to
>>vpb_driver.
>>
>>Any new hint?
>>    
>>
>
>It sounds like you might have sticky tags keeping you on an old version.
>
>Try: cvs update -A
>
>ast_pthread_create is defined in <asterisk/utils.h>
>
>The current versions of chan_vpb and chan_sip do correctly use utils.h
>
>Cheers
>Tony
>  
>



More information about the asterisk-dev mailing list