swift_port_close

Home » Asterisk Users » swift_port_close
Asterisk Users 3 Comments

Hi,

i am trying to install the just from git cloned app_swift version.
Compiling works fine. Install as well. But if i try to load the module
at Asterisk it fails with.

Command ‘module load app_swift.so ‘ failed.
[Jun 20 11:29:51] WARNING[24217]: loader.c:460 load_dynamic_module:
Error loading module ‘app_swift.so’:
/usr/lib/asterisk/modules/app_swift.so: undefined symbol: swift_port_close
[Jun 20 11:29:51] WARNING[24217]: loader.c:850 load_resource: Module
‘app_swift.so’ could not be loaded.

My System Informations:

server*CLI> core show version
Asterisk 1.8.13.0 built by root @ server on a x86_64 running Linux on
2012-06-20 08:55:14 UTC

root@server:~# uname -r
3.2.0-25-generic

root@server:~# ldd /usr/lib/asterisk/modules/app_swift.so
linux-vdso.so.1 => (0x00007fff6d3ff000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2010a65000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2011041000)

root@server:~# cat /etc/ld.so.conf.d/swift.conf
/opt/swift/lib

root@server:~#ldconfig -v | grep swift
/opt/swift/lib:

libswift.so.6 -> libswift.so.6.0
libceplex_de.so.6 -> libceplex_de.so.6.0
libceplang_de.so.6 -> libceplang_de.so.6.0

root@server:~# swift -V

Cepstral Swift v6.0.1, March 2012

Default Voice: Matthias-8kHz v6.0.0
Language: German v5.1.0
Lexicon: unknown v0.0.0

Concurrency: 1 Port(s) Registered
0 Port(s) In Use

Distribution: No audio distribution license was found.
Saving audio to a file is disabled.

Copyright (C) 2000-20012, Cepstral LLC.

Do You have any Ideas why that won’t work?

Best Regards Jakob B├Âttger

default iconsmime.p7s

3 thoughts on - swift_port_close

  • Hi Jakob,

    I just finished replying to your direct email (which you can disregard now as this seems to be a different problem). I’m pretty sure I know what the issue is, but I’ll have to get back to you later this evening (my time).

    – D

  • Am 20.06.2012 14:24, schrieb Darren Sessions:
    Thanks for your fast reply.

    thats the output of ld /usr/lib/asterisk/modules/app_swift.so

    root@server:/opt/swift/lib# ld /usr/lib/asterisk/modules/app_swift.so
    ld: warning: cannot find entry symbol _start; not setting start address
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_tvdiff_ms’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_pthread_mutex_init’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_config_load2′
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_close’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_open’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_unregister_application’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_register_file_version’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_val_string’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_set_write_format’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_write’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_tv’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_samp2tv’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_config_destroy’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `pbx_builtin_setvar_helper’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_engine_open’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_engine_close’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_log’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_answer’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_set_voice_by_name’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_waitfor’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_set_callback’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_module_user_remove’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_stopstream’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_module_user_hangup_all’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_unregister_file_version’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_tvadd’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_exists_extension’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `fmin’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_module_register’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_read’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_pthread_mutex_unlock’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_stop’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_port_speak_text’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_copy_string’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_variable_retrieve’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_module_user_add’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_event_get_error’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_register_application2′
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_module_unregister’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_waitfordigit’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `__ast_pthread_mutex_lock’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_params_new’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `ast_frame_free’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to `ast_tvnow’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_event_get_audio’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_register_ast_chan’
    /usr/lib/asterisk/modules/app_swift.so: undefined reference to
    `swift_params_set_val’

    default iconsmime.p7s

  • I have a different problem-

    i just compiled app_swift 3 from the new git repo for asterisk 1.8.13.0

    asterisk loads the module fine, but as soon as i try to swift anything,
    asterisk core dumps.

    i’ll be glad to post the corefile or sample extensions.conf if desired.