Feature #514

Please compile FreeTDM for Alpine

Added by David Williams over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:01/13/2011
Priority:Normal Due date:
Assignee:Natanael Copa % Done:

100%

Category:Aports
Target version:Alpine 2.1.5

Description

We are moving from Asterisk to Freeswitch for our PBX Gateways, and need FreeTDM and libpri for Freeswitch. Is it possible to have these packages compiled?

Associated revisions

Revision 9d678885
Added by Jeff Bilyk over 1 year ago

main/freeswitch: fix libpri

ref #514

Revision c81b105d
Added by Jeff Bilyk over 1 year ago

main/freeswitch: bump pkgrel to rebuild against last commit

ref #514

Revision b93f7262
Added by Jeff Bilyk over 1 year ago

main/freeswitch: add rebootstrap.sh call to actually fix libpri

ref #514

Revision 98576ee4
Added by Jeff Bilyk about 1 year ago

main/freeswitch: fix libpri

ref #514
(cherry picked from commit 9d678885f28393384af2d7c6ac851c28361af99a)

Revision e79ee51e
Added by Jeff Bilyk about 1 year ago

main/freeswitch: bump pkgrel to rebuild against last commit

ref #514
(cherry picked from commit c81b105d7827e1f77fa67b86dd056ba652c78ab7)

Revision 1cafa9f4
Added by Jeff Bilyk about 1 year ago

main/freeswitch: add rebootstrap.sh call to actually fix libpri

ref #514
(cherry picked from commit b93f7262803d7169a8a9a9a9ba583d67493aaf37)

History

Updated by Michael Mason over 1 year ago

  • Status changed from New to Assigned
  • Assignee set to Michael Mason
  • % Done changed from 0 to 10

This should be as simple as adding a line to the modules.conf. I am testing and should have something shortly.

Updated by Michael Mason over 1 year ago

When just adding the line for freetdm is seems that the flite modules and split function doesn't run properly.

mv: can't rename '/home/ms13sp/aports/main/freeswitch/pkg/freeswitch/usr/lib/freeswitch/mod_say_de.so': No such file or directory

ERROR: freeswitch-flite*: flite failed
ERROR: freeswitch*: prepare_subpackages failed
ERROR: freeswitch: all failed

Updated by Michael Mason over 1 year ago

  • Assignee changed from Michael Mason to Natanael Copa

Figured out that this need bash and a few svn tools to compile. ncopa, do you have any ideas why it thinks the freetdm.h file is missing? Need to update some configure options?

making install mod_freetdm
Compiling /home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/src/mod/../../libs/freetdm/mod_freetdm/mod_freetdm.c...
quiet_libtool: compile:  gcc -I/home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/src/include -I/home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/src/include -I/home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/libs/libteletone/src -fPIC -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -march=i486 -Os -fomit-frame-pointer -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/src/mod/../../libs/freetdm/mod_freetdm/mod_freetdm.c  -fPIC -DPIC -o .libs/mod_freetdm.o
/home/mmason/aports/main/freeswitch/src/freeswitch-1.0.6/src/mod/../../libs/freetdm/mod_freetdm/mod_freetdm.c:34:21: fatal error: freetdm.h: No such file or directory

Updated by Jeff Bilyk over 1 year ago

Submitted patch that gets this compiled. Probably not the cleanest way to fix, but it works for now...

Updated by Jeff Bilyk over 1 year ago

Commit ad7f39fa0464538e97c3b1e5acf3e61c8fb9f623 added them - added one too many spaces to commit message, so doesn't link to this ticket automatically.

Updated by Michael Mason over 1 year ago

Seems like the module is compiled and present in the package and filesystem. When trying to load the module it does not appear loaded. fs_cli module_exists command.
It seems though during the compile process freeswitch needs some svn tools. This doesn't really seem to help.

Noticed that ftmod_pri is not present in the package. Didn't know if the bootstrap script needs to be run before compiling freetdm. When doing this though it coughs out an error:

cc1: warnings being treated as errors
src/switch_core_sqldb.c: In function '_switch_cache_db_get_db_handle':
src/switch_core_sqldb.c:314:47: error: comparison between 'switch_odbc_status_t' and 'enum <anonymous>'
src/switch_core_sqldb.c: In function 'switch_cache_db_execute_sql_real':
src/switch_core_sqldb.c:389:90: error: comparison between 'switch_status_t' and 'enum <anonymous>'
make: *** [libfreeswitch_la-switch_core_sqldb.lo] Error 1
make: *** Waiting for unfinished jobs....

Updated by Jeff Bilyk over 1 year ago

Replicated issue. I think the problem may be that the sed for -Werror is getting done before the rebootstrap.sh run. I moved things around in the APKBUILD (rebootstrap.sh gets run before modules.conf copy and -Werror sed), and will maybe get another test build in tonight.

Updated by Jeff Bilyk over 1 year ago

Can you try freeswitch-1.0.6-r17? I added rebootstrap.sh and fixed the error you mention above. Hopefully this time it build ftmod_libpri properly, but as before, I don't have the hardware to test...

Updated by Natanael Copa about 1 year ago

  • Category set to Aports
  • Target version set to Alpine 2.2.0

Updated by Natanael Copa about 1 year ago

can you guys test the current 1.0.7 version?

Updated by David Williams about 1 year ago

I installed 1.0.7 and configured freetdm.conf.xml with a libpri span, and it is up and running. Thanks for your help!

Updated by Natanael Copa about 1 year ago

  • Status changed from Assigned to Resolved
  • Target version changed from Alpine 2.2.0 to Alpine 2.1.5
  • % Done changed from 10 to 100

wat backported to 2.1-stable too.

Updated by Natanael Copa about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF