Re: Astertisk missing library

2024-02-07 Thread deich...@placebonol.com
thanks for reporting back your successful resolution 

On February 6, 2024 1:27:28 PM MST, Peter Fraser  wrote:
>Although not understanding the output of LD_DEBUG, I made a guess, that the 
>problem was with load order.
>
>After a bit of experimentation, I added
>
>load = res_audiosocket.so
>load = res_speech.so
>load = res_stasis.so
>load = res_pjproject.so
>load = res_rtp_asterisk.so
>load = res_pjsip.so
>load = res_xmpp.so
>load = res_pjsip_session.so
>load = res_rtp_multicast.so
>load = res_ael_share.so
>load = res_pjsip_pubsub.so
>load = res_stasis_recording.so
>load = res_pjsip_outbound_publish.so
>
>To the beginning of modules.conf asterisk loaded without missing symbols. 
>
>-Original Message-
>From: Peter Fraser 
>Sent: Tuesday, February 6, 2024 2:22 PM
>To: misc@openbsd.org
>Subject: RE: Astertisk missing library
>
>setting LD_DEBUG does generate a lot of output 8384 lines.
>
>first is the extracted code where app_audiosocket.so is loaded, the error is 
>reported. It was a line 607 in the debug ouptut the second is the section is 
>where res_audiosocket.so is loaded. It was at line 4622 in the output.
>
>I find it very strange that asterisk reports an error after  
>app_audiosocket.so is loaded, but later seems properly load res_audiosocket.so 
>which contains the missing symbols.
>
>I am hoping that someone can extract something from this.
>I do have all 8000 plus line of output if someone is interested.
>
>dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
>objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
>0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
>/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
>/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
>/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
>[/usr/local/lib/asterisk/modules/app_audiosocket.so]
>examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
>loading: libBlocksRuntime.so.0.0 required by 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>loading: libpthread.so.27.1 required by 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>linking dep /usr/lib/libpthread.so.27.1 as child of 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>tail /usr/local/lib/asterisk/modules/app_audiosocket.so
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
>'ast_audiosocket_connect'
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
>'ast_audiosocket_init'
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
>'ast_audiosocket_send_frame'
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
>'ast_audiosocket_receive_frame'
>unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
>unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
>unload_shlib called on /usr/lib/libpthread.so.27.1 unload_shlib unloading on 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>dlopen: /usr/local/lib/asterisk/modules/app_audiosocket.so: done 
>(failed).dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
>objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
>0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
>/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
>/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
>/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
>[/usr/local/lib/asterisk/modules/app_audiosocket.so]
>examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
>loading: libBlocksRuntime.so.0.0 required by 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>loading: libpthread.so.27.1 required by 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>linking dep /usr/lib/libpthread.so.27.1 as child of 
>/usr/local/lib/asterisk/modules/app_audiosocket.so
>tail /usr/local/lib/asterisk/modules/app_audiosocket.so
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
>'ast_audiosocket_connect'
>asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined s

Re: Astertisk missing library

2024-02-06 Thread Peter Fraser
Although not understanding the output of LD_DEBUG, I made a guess, that the 
problem was with load order.

After a bit of experimentation, I added

load = res_audiosocket.so
load = res_speech.so
load = res_stasis.so
load = res_pjproject.so
load = res_rtp_asterisk.so
load = res_pjsip.so
load = res_xmpp.so
load = res_pjsip_session.so
load = res_rtp_multicast.so
load = res_ael_share.so
load = res_pjsip_pubsub.so
load = res_stasis_recording.so
load = res_pjsip_outbound_publish.so

To the beginning of modules.conf asterisk loaded without missing symbols. 

-Original Message-
From: Peter Fraser 
Sent: Tuesday, February 6, 2024 2:22 PM
To: misc@openbsd.org
Subject: RE: Astertisk missing library

setting LD_DEBUG does generate a lot of output 8384 lines.

first is the extracted code where app_audiosocket.so is loaded, the error is 
reported. It was a line 607 in the debug ouptut the second is the section is 
where res_audiosocket.so is loaded. It was at line 4622 in the output.

I find it very strange that asterisk reports an error after  app_audiosocket.so 
is loaded, but later seems properly load res_audiosocket.so which contains the 
missing symbols.

I am hoping that someone can extract something from this.
I do have all 8000 plus line of output if someone is interested.

dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
/usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
[/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1 unload_shlib unloading on 
/usr/local/lib/asterisk/modules/app_audiosocket.so
dlopen: /usr/local/lib/asterisk/modules/app_audiosocket.so: done 
(failed).dlopen: loading: /usr/local/lib/asterisk/modules/app_audiosocket.so
objname [/usr/local/lib/asterisk/modules/app_audiosocket.so], dynp 
0x5bda75834a0, objtype 4 lbase 5bda757f000, obase 5bda757f000  flags 
/usr/local/lib/asterisk/modules/app_audiosocket.so = 0x0 head 
/usr/local/lib/asterisk/modules/app_audiosocket.so
obj /usr/local/lib/asterisk/modules/app_audiosocket.so has 
/usr/local/lib/asterisk/modules/app_audiosocket.so as head linking 
/usr/local/lib/asterisk/modules/app_audiosocket.so as dlopen()ed head 
[/usr/local/lib/asterisk/modules/app_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/app_audiosocket.so'
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/app_audiosocket.so
tail /usr/local/lib/asterisk/modules/app_audiosocket.so
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_connect'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_init'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_send_frame'
asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
'ast_audiosocket_receive_frame'
unload_shlib called on /usr/local/lib/asterisk/modules/app_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1 unload_shlib unlo

Re: Astertisk missing library

2024-02-06 Thread Peter Fraser
cket.so]
examining: '/usr/local/lib/asterisk/modules/res_audiosocket.so'
loading: libpthread.so.27.1 required by 
/usr/local/lib/asterisk/modules/res_audiosocket.so
loading: libBlocksRuntime.so.0.0 required by 
/usr/local/lib/asterisk/modules/res_audiosocket.so
linking dep /usr/local/lib/libBlocksRuntime.so.0.0 as child of 
/usr/local/lib/asterisk/modules/res_audiosocket.so
linking dep /usr/lib/libpthread.so.27.1 as child of 
/usr/local/lib/asterisk/modules/res_audiosocket.so
tail /usr/local/lib/asterisk/modules/res_audiosocket.so
protect RELRO [0x5bdacbf6dc0,0x5bdacbf8000) in 
/usr/local/lib/asterisk/modules/res_audiosocket.so
doing ctors obj 0x5bd85ea4800 @0x5bdacbf5640: 
[/usr/local/lib/asterisk/modules/res_audiosocket.so]
doing initarray obj 0x5bd85ea4800 @0x5bdacbf6e58: 
[/usr/local/lib/asterisk/modules/res_audiosocket.so]
dlopen: /usr/local/lib/asterisk/modules/res_audiosocket.so: done (success).
doing finiarray obj 0x5bd85ea4800 @0x5bdacbf6e60: 
[/usr/local/lib/asterisk/modules/res_audiosocket.so]
doing dtors obj 0x5bd85ea4800 @0x5bdacbf5660: 
[/usr/local/lib/asterisk/modules/res_audiosocket.so]
unload_shlib called on /usr/local/lib/asterisk/modules/res_audiosocket.so
unload_shlib called on /usr/local/lib/libBlocksRuntime.so.0.0
unload_shlib called on /usr/lib/libpthread.so.27.1
unload_shlib unloading on /usr/local/lib/asterisk/modules/res_audiosocket.so
dlopen: loading: /usr/local/lib/asterisk/modules/res_audiosocket.so
objname [/usr/local/lib/asterisk/modules/res_audiosocket.so], dynp 
0x5bd62362e68, objtype 4 lbase 5bd6235e000, obase 5bd6235e000
 flags /usr/local/lib/asterisk/modules/res_audiosocket.so = 0x0
head /usr/local/lib/asterisk/modules/res_audiosocket.so
obj /usr/local/lib/asterisk/modules/res_audiosocket.so has 
/usr/local/lib/asterisk/modules/res_audiosocket.so as head
linking /usr/local/lib/asterisk/modules/res_audiosocket.so as dlopen()ed
head [/usr/local/lib/asterisk/modules/res_audiosocket.so]
examining: '/usr/local/lib/asterisk/modules/res_audiosocket.so'

-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Stuart 
Henderson
Sent: Tuesday, February 6, 2024 4:17 AM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

On 2024-02-06, deich...@placebonol.com  wrote:
> are the libraries in the search path?

they're not normal library deps for the main binary, all dlopen()'d from the 
relevant path.

> On February 5, 2024 10:54:38 AM MST, Peter Fraser  wrote:
>>I should also add the libraries re on my system, and nm says they 
>>contain the simples I don't know why they are not loading.

maybe you'll get some clues by running with LD_DEBUG set in the environment - 
there will be a *lot* of output so run under script(1).

or, try comparing /etc/asterisk with one of your working machines and see 
what's different.

>>From: owner-m...@openbsd.org  On Behalf Of 
>>Stuart Henderson
>>Sent: Monday, February 5, 2024 7:15 AM
>>To: misc@openbsd.org
>>Subject: Re: Astertisk missing library
>>
>>On 2024-02-04, Peter Fraser  wrote:
>>> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
>>> from 7.3  amd64  to 7.4.
>>...
>>> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
>>> will be loaded.
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_connect'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_init'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_send_frame'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_receive_frame'
>>
>>those are in res_audiosocket.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_new'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_destroy'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_load'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_unload'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_activate'
>>
>>and those in res_speech.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
>>> 'stasis_app_exec'
>>
>>res_statis
>>
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so:

Re: Astertisk missing library

2024-02-06 Thread Stuart Henderson
On 2024-02-06, deich...@placebonol.com  wrote:
> are the libraries in the search path?

they're not normal library deps for the main binary, all dlopen()'d from
the relevant path.

> On February 5, 2024 10:54:38 AM MST, Peter Fraser  wrote:
>>I should also add the libraries re on my system, and nm says they contain the 
>>simples
>>I don't know why they are not loading.

maybe you'll get some clues by running with LD_DEBUG set in the
environment - there will be a *lot* of output so run under script(1).

or, try comparing /etc/asterisk with one of your working machines and
see what's different.

>>From: owner-m...@openbsd.org  On Behalf Of Stuart 
>>Henderson
>>Sent: Monday, February 5, 2024 7:15 AM
>>To: misc@openbsd.org
>>Subject: Re: Astertisk missing library
>>
>>On 2024-02-04, Peter Fraser  wrote:
>>> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
>>> from 7.3  amd64  to 7.4.
>>...
>>> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
>>> will be loaded.
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_connect'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_init'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_send_frame'
>>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>>> symbol 'ast_audiosocket_receive_frame'
>>
>>those are in res_audiosocket.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_new'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_destroy'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_load'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_unload'
>>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>>> symbol 'ast_speech_grammar_activate'
>>
>>and those in res_speech.so
>>
>>> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
>>> 'stasis_app_exec'
>>
>>res_statis
>>
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_cli_traverse_objects'
>>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>>> 'ast_sip_push_task_wait_servant'
>>
>>res_pjsip
>>
>>etc. I think you may be missing something in modules.conf. I'd probably start 
>>with a copy of /usr/local/share/examples/asterisk/default/modules.conf
>>and see if that works, then tweak from there.
>>
>>--
>>Please keep replies on the mailing list.
>>
>


-- 
Please keep replies on the mailing list.



Re: Astertisk missing library

2024-02-05 Thread deich...@placebonol.com
are the libraries in the search path?

On February 5, 2024 10:54:38 AM MST, Peter Fraser  wrote:
>I should also add the libraries re on my system, and nm says they contain the 
>simples
>I don't know why they are not loading.
>
>-Original Message-
>From: owner-m...@openbsd.org  On Behalf Of Stuart 
>Henderson
>Sent: Monday, February 5, 2024 7:15 AM
>To: misc@openbsd.org
>Subject: Re: Astertisk missing library
>
>On 2024-02-04, Peter Fraser  wrote:
>> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
>> from 7.3  amd64  to 7.4.
>...
>> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
>> will be loaded.
>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>> symbol 'ast_audiosocket_connect'
>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>> symbol 'ast_audiosocket_init'
>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>> symbol 'ast_audiosocket_send_frame'
>> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined 
>> symbol 'ast_audiosocket_receive_frame'
>
>those are in res_audiosocket.so
>
>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>> symbol 'ast_speech_new'
>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>> symbol 'ast_speech_destroy'
>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>> symbol 'ast_speech_grammar_load'
>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>> symbol 'ast_speech_grammar_unload'
>> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
>> symbol 'ast_speech_grammar_activate'
>
>and those in res_speech.so
>
>> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
>> 'stasis_app_exec'
>
>res_statis
>
>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>> 'ast_sip_cli_traverse_objects'
>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>> 'ast_sip_cli_traverse_objects'
>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>> 'ast_sip_cli_traverse_objects'
>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>> 'ast_sip_cli_traverse_objects'
>> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
>> 'ast_sip_push_task_wait_servant'
>
>res_pjsip
>
>etc. I think you may be missing something in modules.conf. I'd probably start 
>with a copy of /usr/local/share/examples/asterisk/default/modules.conf
>and see if that works, then tweak from there.
>
>--
>Please keep replies on the mailing list.
>


Re: Astertisk missing library

2024-02-05 Thread Peter Fraser
I should also add the libraries re on my system, and nm says they contain the 
simples
I don't know why they are not loading.

-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Stuart 
Henderson
Sent: Monday, February 5, 2024 7:15 AM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

On 2024-02-04, Peter Fraser  wrote:
> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
> from 7.3  amd64  to 7.4.
...
> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
> will be loaded.
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_connect'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_init'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_send_frame'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_receive_frame'

those are in res_audiosocket.so

> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_new'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_destroy'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_load'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_unload'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_activate'

and those in res_speech.so

> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
> 'stasis_app_exec'

res_statis

> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_push_task_wait_servant'

res_pjsip

etc. I think you may be missing something in modules.conf. I'd probably start 
with a copy of /usr/local/share/examples/asterisk/default/modules.conf
and see if that works, then tweak from there.

--
Please keep replies on the mailing list.



Re: Astertisk missing library

2024-02-05 Thread Peter Fraser
I did track down the missing modules to the same list of libraries.

I did use a copy  /usr/local/share/examples/asterisk/default/modules.conf in 
/etc/asterisk/modules.conf
And got the same error.
I also tried deleting all the noload from modules.conf
Still the same error.


-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Stuart 
Henderson
Sent: Monday, February 5, 2024 7:15 AM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

On 2024-02-04, Peter Fraser  wrote:
> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
> from 7.3  amd64  to 7.4.
...
> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
> will be loaded.
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_connect'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_init'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_send_frame'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_receive_frame'

those are in res_audiosocket.so

> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_new'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_destroy'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_load'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_unload'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_activate'

and those in res_speech.so

> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
> 'stasis_app_exec'

res_statis

> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_push_task_wait_servant'

res_pjsip

etc. I think you may be missing something in modules.conf. I'd probably start 
with a copy of /usr/local/share/examples/asterisk/default/modules.conf
and see if that works, then tweak from there.

--
Please keep replies on the mailing list.



Re: Astertisk missing library

2024-02-05 Thread Stuart Henderson
On 2024-02-04, Peter Fraser  wrote:
> Asterisk 20.5.2 works for me two different amd64 computers that I upgraded 
> from 7.3  amd64  to 7.4.
...
> [Feb  4 10:33:11] NOTICE[107524]: loader.c:2405 load_modules: 280 modules 
> will be loaded.
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_connect'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_init'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_send_frame'
> asterisk:/usr/local/lib/asterisk/modules/app_audiosocket.so: undefined symbol 
> 'ast_audiosocket_receive_frame'

those are in res_audiosocket.so

> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_new'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_destroy'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_load'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_unload'
> asterisk:/usr/local/lib/asterisk/modules/app_speech_utils.so: undefined 
> symbol 'ast_speech_grammar_activate'

and those in res_speech.so

> asterisk:/usr/local/lib/asterisk/modules/app_stasis.so: undefined symbol 
> 'stasis_app_exec'

res_statis

> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_cli_traverse_objects'
> asterisk:/usr/local/lib/asterisk/modules/chan_pjsip.so: undefined symbol 
> 'ast_sip_push_task_wait_servant'

res_pjsip

etc. I think you may be missing something in modules.conf. I'd probably
start with a copy of /usr/local/share/examples/asterisk/default/modules.conf
and see if that works, then tweak from there.

-- 
Please keep replies on the mailing list.



Re: Astertisk missing library

2024-02-04 Thread Peter Fraser
sign requested 
address
[Feb  4 10:33:12] ERROR[107524]: res_sorcery_config.c:422 
sorcery_config_internal_load: Could not create an object of type 'transport' 
with id 'udp' from configuration file 'pjsip.conf'
[Feb  4 10:33:12] ERROR[107524]: res_pjsip/config_transport.c:917 
transport_apply: Transport 'tcp' could not be started: Can't assign requested 
address
[Feb  4 10:33:12] ERROR[107524]: res_sorcery_config.c:422 
sorcery_config_internal_load: Could not create an object of type 'transport' 
with id 'tcp' from configuration file 'pjsip.conf'
[Feb  4 10:33:14] ERROR[107524]: res_sorcery_config.c:328 
sorcery_config_internal_load: Unable to load config file 'stir_shaken.conf'
[Feb  4 10:33:14] ERROR[107524]: res_sorcery_config.c:328 
sorcery_config_internal_load: Unable to load config file 'stir_shaken.conf'
[Feb  4 10:33:14] ERROR[107524]: res_sorcery_config.c:328 
sorcery_config_internal_load: Unable to load config file 'stir_shaken.conf'
[Feb  4 10:33:14] ERROR[107524]: res_sorcery_config.c:328 
sorcery_config_internal_load: Unable to load config file 'stir_shaken.conf'
[Feb  4 10:33:14] ERROR[107524]: res_sorcery_config.c:328 
sorcery_config_internal_load: Unable to load config file 'aeap.conf'
[Feb  4 10:33:14] WARNING[107524]: res_musiconhold.c:1180 moh_parse_options: 
Music on hold 'random' setting is deprecated in 14.  Please use 'sort=random' 
instead.
[Feb  4 10:33:14] ERROR[107524]: config_options.c:710 aco_process_config: 
Unable to load config file 'confbridge.conf'
[Feb  4 10:33:14] ERROR[107524]: app_confbridge.c:4625 load_module: Unable to 
load config. Not loading module.
[Feb  4 10:33:14] WARNING[107524]: app_minivm.c:2777 load_config: Failed to 
load configuration file. Module activated with default settings.
[Feb  4 10:33:14] ERROR[107524]: config_options.c:710 aco_process_config: 
Unable to load config file 'res_http_media_cache.conf'
[Feb  4 10:33:14] NOTICE[107524]: res_http_media_cache.c:780 load_module: Could 
not load res_http_media_cache config; using defaults
[Feb  4 10:33:14] WARNING[107524]: loader.c:2409 load_modules: Some 
non-required modules failed to load.
[Feb  4 10:33:15] ERROR[107524]: loader.c:2524 load_modules: app_confbridge 
declined to load.
[Feb  4 10:33:15] ERROR[107524]: loader.c:2524 load_modules: Declined modules 
which depend on app_confbridge: app_page
Asterisk Ready.
*CLI> [Feb  4 10:33:17] ERROR[520765]: res_pjsip.c:903 
ast_sip_set_tpselector_from_transport_name: Unable to retrieve PJSIP transport 
'udp'

-Original Message-
From: owner-m...@openbsd.org  On Behalf Of Stuart 
Henderson
Sent: Sunday, February 4, 2024 4:43 AM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

On 2024-02-03, Peter Fraser  wrote:
> Yes
>
> From pkg_info
>
> asterisk-20.5.2 open source multi-protocol PBX and telephony toolkit
...
>>The asterisk on a new system is missing a large number of symbols of the form:
>>
>>ast_sip_* ast_stir_* statis_app*
>>
>>I can't find what is missing, I assume some what a library dependency 
>>was missed, so my other Asterisk on other OpendBSD system are using 
>>the old version

Please show some actual error messages/logs. modules.conf might be interesting 
too. Which machine arch are you using? Release or snapshots?

20.5.2 works for me on a 7.4 amd64 system.

--
Please keep replies on the mailing list.




Re: Astertisk missing library

2024-02-04 Thread Stuart Henderson
On 2024-02-03, Peter Fraser  wrote:
> Yes
>
> From pkg_info
>
> asterisk-20.5.2 open source multi-protocol PBX and telephony toolkit
...
>>The asterisk on a new system is missing a large number of symbols of the form:
>>
>>ast_sip_* ast_stir_* statis_app*
>>
>>I can't find what is missing, I assume some what a library dependency was 
>>missed, so my other Asterisk on other OpendBSD system are using the old 
>>version

Please show some actual error messages/logs. modules.conf might
be interesting too. Which machine arch are you using? Release or
snapshots?

20.5.2 works for me on a 7.4 amd64 system.

-- 
Please keep replies on the mailing list.



Re: Astertisk missing library

2024-02-03 Thread Peter Fraser
Yes

>From pkg_info

asterisk-20.5.2 open source multi-protocol PBX and telephony toolkit
asterisk-core-sounds-en-gsm-1.6.1p0 core English sound files for Asterisk (gsm)
asterisk-core-sounds-en-ulaw-1.6.1p0 core English sound files for Asterisk 
(ulaw)
asterisk-extra-sounds-en-gsm-1.5.2p0 additional English sound files for 
Asterisk (gsm)
asterisk-extra-sounds-en-ulaw-1.5.2p0 additional English sound files for 
Asterisk (ulaw)
asterisk-moh-opsound-gsm-2.03p3 opsound music-on-hold for Asterisk (gsm)
asterisk-moh-opsound-wav-2.03p3 opsound music-on-hold for Asterisk (wav)
gsm-1.0.22  GSM audio codec library and convertera



-Original Message-
From: owner-m...@openbsd.org  On Behalf Of 
deich...@placebonol.com
Sent: Saturday, February 3, 2024 4:30 PM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

Did you install from pkg_add,?

On February 3, 2024 1:05:26 PM MST, Peter Fraser  wrote:
>I am putting up Asterisk on a new OpenBSD system.
>
>It is for a charity, I have not put together a new system for a long time, but 
>I have upgraded several.
>
>The asterisk on a new system is missing a large number of symbols of the form:
>
>ast_sip_* ast_stir_* statis_app*
>
>I can't find what is missing, I assume some what a library dependency was 
>missed, so my other Asterisk on other OpendBSD system are using the old version
>
>Any help or suggestions you can offer would be appreciated.
>
>
-Original Message-
From: owner-m...@openbsd.org  On Behalf Of 
deich...@placebonol.com
Sent: Saturday, February 3, 2024 4:30 PM
To: misc@openbsd.org
Subject: Re: Astertisk missing library

Did you install from pkg_add,?

On February 3, 2024 1:05:26 PM MST, Peter Fraser  wrote:
>I am putting up Asterisk on a new OpenBSD system.
>
>It is for a charity, I have not put together a new system for a long time, but 
>I have upgraded several.
>
>The asterisk on a new system is missing a large number of symbols of the form:
>
>ast_sip_* ast_stir_* statis_app*
>
>I can't find what is missing, I assume some what a library dependency was 
>missed, so my other Asterisk on other OpendBSD system are using the old version
>
>Any help or suggestions you can offer would be appreciated.
>
>



Re: Astertisk missing library

2024-02-03 Thread deich...@placebonol.com
Did you install from pkg_add,?

On February 3, 2024 1:05:26 PM MST, Peter Fraser  wrote:
>I am putting up Asterisk on a new OpenBSD system.
>
>It is for a charity, I have not put together a new system for a long time, but 
>I have upgraded several.
>
>The asterisk on a new system is missing a large number of symbols of the form:
>
>ast_sip_* ast_stir_* statis_app*
>
>I can't find what is missing, I assume some what a library dependency was 
>missed, so my other Asterisk on other OpendBSD system are using the old version
>
>Any help or suggestions you can offer would be appreciated.
>
>


Astertisk missing library

2024-02-03 Thread Peter Fraser
I am putting up Asterisk on a new OpenBSD system.

It is for a charity, I have not put together a new system for a long time, but 
I have upgraded several.

The asterisk on a new system is missing a large number of symbols of the form:

ast_sip_* ast_stir_* statis_app*

I can't find what is missing, I assume some what a library dependency was 
missed, so my other Asterisk on other OpendBSD system are using the old version

Any help or suggestions you can offer would be appreciated.