Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-08-03 Thread Douglas Seifert
Solving my own issue:  The order of linking was incorrect.

Change the Makefile as follows to solve this issue.


diff --git a/Makefile b/Makefile
index dec892d..90d79df 100644
--- a/Makefile
+++ b/Makefile
@@ -73,7 +73,7 @@ all: banner $(AST_INC_CHECK) $(AST_VER_CHECK)
@echo 

 $(NAME).so : $(NAME).o
-   $(CC) $(SOLINK) -o $@ $(LDFLAGS) $
+   $(CC) $(SOLINK) -o $@ $ $(LDFLAGS)

 banner:
@echo 
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-08-01 Thread Douglas Seifert
All,

I am experiencing this same issue.  it seems that you were able to resolve
it offline.  Could you by any chance post the solution.

telephonics1*CLI module load app_swift.so
Unable to load module app_swift.so
Command 'module load app_swift.so' failed.
[Aug  1 05:01:01] WARNING[28635]: loader.c:458 load_dynamic_module: Error
loading module 'app_swift.so': /usr/lib/asterisk/modules/app_swift.so:
undefined symbol: swift_port_close
[Aug  1 05:01:01] WARNING[28635]: loader.c:848 load_resource: Module
'app_swift.so' could not be loaded.
telephonics1*CLI

I suspect an issue when linking app_swift.so.  Here is how the module is
linked:

gcc -shared -Xlinker -x -o app_swift.so -L/opt/swift/lib -L/usr/lib -lswift
-lceplang_en -lceplex_us app_swift.o

However, ldd shows the module doesn't list libswift.so as a dependency:

# ldd app_swift.so
linux-vdso.so.1 =  (0x7fff2bbff000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f7cb005e000)
/lib64/ld-linux-x86-64.so.2 (0x7f7cb0631000)

It appears the libswift.so is build correctly and does export the
swift_port_close function:

# readelf -s libswift.so | grep port_close
   619: 0006ac0023 FUNCGLOBAL DEFAULT   10
swift_port_close_output
   941: 0006aec0   224 FUNCGLOBAL DEFAULT   10 swift_port_close
  1025: 0006aec0   224 FUNCGLOBAL DEFAULT   10 swift_port_close
  2082: 0006ac0023 FUNCGLOBAL DEFAULT   10
swift_port_close_output

Any help would be appreciated.

Thanks,
Doug Seifert
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-23 Thread Jeremy Kister

On 6/22/2012 10:39 PM, Darren Sessions wrote:

both would be appreciated.

if you can send me a backtrace, that'd be great


http://jeremy.kister.net/tmp/swift/

--

Jeremy Kister
http://jeremy.kister.net./

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-22 Thread Jeremy Kister

On 6/20/2012 8:24 AM, Darren Sessions wrote:

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).


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.

--

Jeremy Kister
http://jeremy.kister.net./


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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


Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-22 Thread Darren Sessions
both would be appreciated.

if you can send me a backtrace, that'd be great

On Jun 22, 2012, at 8:06 PM, Jeremy Kister wrote:

 On 6/20/2012 8:24 AM, Darren Sessions wrote:
 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).
 
 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.
 
 -- 
 
 Jeremy Kister
 http://jeremy.kister.net./
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


[asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-20 Thread Jakob-Matthias Böttger

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 =  (0x7fff6d3ff000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f2010a65000)
/lib64/ld-linux-x86-64.so.2 (0x7f2011041000)

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-8kHzv6.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




smime.p7s
Description: S/MIME Kryptografische Unterschrift
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-20 Thread Darren Sessions
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


On Jun 20, 2012, at 4:41 AM, Jakob-Matthias Böttger wrote:

 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 =  (0x7fff6d3ff000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f2010a65000)
/lib64/ld-linux-x86-64.so.2 (0x7f2011041000)
 
 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-8kHzv6.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
 
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close

2012-06-20 Thread Jakob-Matthias Böttger

Am 20.06.2012 14:24, schrieb Darren Sessions:

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


On Jun 20, 2012, at 4:41 AM, Jakob-Matthias Böttger wrote:


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 =  (0x7fff6d3ff000)
libc.so.6 = /lib/x86_64-linux-gnu/libc.so.6 (0x7f2010a65000)
/lib64/ld-linux-x86-64.so.2 (0x7f2011041000)

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-8kHzv6.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


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

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

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: