Re: [Freeswitch-users] mod_flite fails due to undefined symbol: cmu_lex_init
With the command as below, LD_PRELOAD="/usr/local/lib/libflite_cmu_us_kal.so /usr/local/lib/libflite_usenglish.so /usr/local/lib/libflite_cmulex.so /usr/local/lib/libflite.so" ./bin/freeswitch I finally got mod_flite working on Ubuntu 16.04 with Freeswitch 1.8.0 source code So the question is why Freeswitch does not load above libraries by itself? /Kaiduan On Wednesday, September 5, 2018, 11:54:07 AM EDT, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote: Thanks Michael. I downloaded the flite 2.0 from http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz and build it as below ./configure --enable-sharedmakemake install build and run freeswitch-1.8, the same error occurred again. However mod_flite was successfully loaded if I ran freeswitch as below (used LD_PRELOAD to load libflite_cmulex) kxie@kxie-Inspiron-3656:~/freeswitch-install$ pwd/home/kxie/freeswitch-installkxie@kxie-Inspiron-3656:~/freeswitch-install$ LD_PRELOAD=/usr/local/lib/libflite_cmulex.so ./bin/freeswitch /Kaiduan On Tuesday, September 4, 2018, 12:32:54 PM EDT, Michael Jerris <mike@jerris.com> wrote: Our build requires flite 2.0 …. Our latest Debian unstable and 1.8 repos have these packages, for ubuntu you likely need to build these packages yourself from our support deps in stash. On Sep 3, 2018, at 12:26 PM, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote: From: kaiduan xie <kaiduanx@yahoo.ca> Subject: mod_flite fails due to undefined symbol: cmu_lex_init Date: August 30, 2018 at 7:10:06 PM EDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Hi all, I build and run FreeSwitch 1.6.20 from source on Ubuntu 16.0.4 xenial, the mod_filte failed while loading, 2018-08-30 19:03:30.786468 [CRIT] switch_loadable_module.c:1522 Error Loading module /home/kxie/freeswitch-dev-install/lib/freeswitch/mod/mod_flite.so**/usr/local/lib/libflite_cmu_us_slt.so.1: undefined symbol: cmu_lex_init** Any idea to solve this issue? Many thanks, /Kaiduan _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
I don’t see this issue on debian. ld.so.conf might fix it, or building to /usr instead of /usr/local. Check out our debian directory for how we build the packages for debian as a hint. On debian 9 we just started using system packages as they now have working flite 2.0 in the distro, see master for the patches necessary for that to work without pkg-config (which unfortunately the debian package does not have) Our deb directory is here: https://freeswitch.org/stash/projects/SD/repos/libflite/browse/debian <https://freeswitch.org/stash/projects/SD/repos/libflite/browse/debian> You might want to use the src from this git checkout as I’m not sure the tarball has our debian packaging in it or not. Mike
On Sep 5, 2018, at 5:52 PM, kaiduan xie <kaiduanx@yahoo.ca> wrote:
With the command as below,
LD_PRELOAD="/usr/local/lib/libflite_cmu_us_kal.so /usr/local/lib/libflite_usenglish.so /usr/local/lib/libflite_cmulex.so /usr/local/lib/libflite.so" ./bin/freeswitch
I finally got mod_flite working on Ubuntu 16.04 with Freeswitch 1.8.0 source code
So the question is why Freeswitch does not load above libraries by itself?
/Kaiduan On Wednesday, September 5, 2018, 11:54:07 AM EDT, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote:
Thanks Michael.
I downloaded the flite 2.0 from http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz <http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz> and build it as below
./configure --enable-shared make make install
build and run freeswitch-1.8, the same error occurred again.
However mod_flite was successfully loaded if I ran freeswitch as below (used LD_PRELOAD to load libflite_cmulex)
kxie@kxie-Inspiron-3656:~/freeswitch-install$ pwd /home/kxie/freeswitch-install kxie@kxie-Inspiron-3656:~/freeswitch-install$ LD_PRELOAD=/usr/local/lib/libflite_cmulex.so ./bin/freeswitch
/Kaiduan
On Tuesday, September 4, 2018, 12:32:54 PM EDT, Michael Jerris <mike@jerris.com> wrote:
Our build requires flite 2.0 …. Our latest Debian unstable and 1.8 repos have these packages, for ubuntu you likely need to build these packages yourself from our support deps in stash.
On Sep 3, 2018, at 12:26 PM, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> wrote:
From: kaiduan xie <kaiduanx@yahoo.ca <mailto:kaiduanx@yahoo.ca>> Subject: mod_flite fails due to undefined symbol: cmu_lex_init Date: August 30, 2018 at 7:10:06 PM EDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>>
Hi all,
I build and run FreeSwitch 1.6.20 from source on Ubuntu 16.0.4 xenial, the mod_filte failed while loading,
2018-08-30 19:03:30.786468 [CRIT] switch_loadable_module.c:1522 Error Loading module /home/kxie/freeswitch-dev-install/lib/freeswitch/mod/mod_flite.so **/usr/local/lib/libflite_cmu_us_slt.so.1: undefined symbol: cmu_lex_init**
Any idea to solve this issue?
Many thanks,
/Kaiduan
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss <https://freeswitch.com/oss> https://freeswitch.org/confluence <https://freeswitch.org/confluence> https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users <http://lists.freeswitch.org/mailman/listinfo/freeswitch-users> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users <http://lists.freeswitch.org/mailman/options/freeswitch-users> https://freeswitch.com <https://freeswitch.com/>
kaiduan - when you _built_ freeswitch, did you make sure it built using the extra libs you installed manually? I do custom builds of all of the dependent libs on my box (ubuntu 16), and install into /local/fslibs/install, and then during build I use: export PKG_CONFIG_PATH=/local/fslibs/install/lib/pkgconfig:/usr/share/pkgconfig cd /local/freeswitch/src ./configure -C --disable-fhs --prefix=/local/freeswitch/server At that point I don't have to set any env vars to get FS to launch. -- Nathan ------------------------------------------------------------------------------------------------------------------------ *From:* Michael Jerris <mike@jerris.com> *Sent:* Thu, Sep 6, 2018 4:04 AM CDT *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* [Freeswitch-users] mod_flite fails due to undefined symbol: cmu_lex_init
I don’t see this issue on debian. ld.so.conf might fix it, or building to /usr instead of /usr/local. Check out our debian directory for how we build the packages for debian as a hint. On debian 9 we just started using system packages as they now have working flite 2.0 in the distro, see master for the patches necessary for that to work without pkg-config (which unfortunately the debian package does not have)
Our deb directory is here: https://freeswitch.org/stash/projects/SD/repos/libflite/browse/debian
You might want to use the src from this git checkout as I’m not sure the tarball has our debian packaging in it or not.
Mike
On Sep 5, 2018, at 5:52 PM, kaiduan xie <kaiduanx@yahoo.ca <mailto:kaiduanx@yahoo.ca>> wrote:
With the command as below,
LD_PRELOAD="/usr/local/lib/libflite_cmu_us_kal.so /usr/local/lib/libflite_usenglish.so /usr/local/lib/libflite_cmulex.so /usr/local/lib/libflite.so" ./bin/freeswitch
I finally got mod_flite working on Ubuntu 16.04 with Freeswitch 1.8.0 source code
So the question is why Freeswitch does not load above libraries by itself?
/Kaiduan On Wednesday, September 5, 2018, 11:54:07 AM EDT, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> wrote:
Thanks Michael.
I downloaded the flite 2.0 from http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz and build it as below
./configure --enable-shared make make install
build and run freeswitch-1.8, the same error occurred again.
However mod_flite was successfully loaded if I ran freeswitch as below (used LD_PRELOAD to load libflite_cmulex)
kxie@kxie-Inspiron-3656:~/freeswitch-install$ pwd /home/kxie/freeswitch-install kxie@kxie-Inspiron-3656:~/freeswitch-install$ LD_PRELOAD=/usr/local/lib/libflite_cmulex.so ./bin/freeswitch
/Kaiduan
On Tuesday, September 4, 2018, 12:32:54 PM EDT, Michael Jerris <mike@jerris.com <mailto:mike@jerris.com>> wrote:
Our build requires flite 2.0 …. Our latest Debian unstable and 1.8 repos have these packages, for ubuntu you likely need to build these packages yourself from our support deps in stash.
On Sep 3, 2018, at 12:26 PM, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>> wrote:
*From: *kaiduan xie <kaiduanx@yahoo.ca <mailto:kaiduanx@yahoo.ca>> *Subject: **mod_flite fails due to undefined symbol: cmu_lex_init* *Date: *August 30, 2018 at 7:10:06 PM EDT *To: *FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org>>
Hi all,
I build and run FreeSwitch 1.6.20 from source on Ubuntu 16.0.4 xenial, the mod_filte failed while loading,
2018-08-30 19:03:30.786468 [CRIT] switch_loadable_module.c:1522 Error Loading module /home/kxie/freeswitch-dev-install/lib/freeswitch/mod/mod_flite.so **/usr/local/lib/libflite_cmu_us_slt.so.1: undefined symbol: cmu_lex_init**
Any idea to solve this issue?
Many thanks,
/Kaiduan
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com <https://freeswitch.com/>
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com <https://cluecon.com/>
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com <https://freeswitch.com/>
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
-- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect
Nathan, After build and install flite to /usr/local, I build freeswitch as below, 1. ./devel-bootstrap.sh --prefix=/home/kxie/freeswitch-dev-install2. change modules.conf to enable flite3. make4. make install /Kaiduan On Thursday, September 6, 2018, 2:02:20 PM EDT, Nathan Neulinger <nneul@mst.edu> wrote: kaiduan - when you _built_ freeswitch, did you make sure it built using the extra libs you installed manually? I do custom builds of all of the dependent libs on my box (ubuntu 16), and install into /local/fslibs/install, and then during build I use: export PKG_CONFIG_PATH=/local/fslibs/install/lib/pkgconfig:/usr/share/pkgconfig cd /local/freeswitch/src ./configure -C --disable-fhs --prefix=/local/freeswitch/server At that point I don't have to set any env vars to get FS to launch. -- Nathan From: Michael Jerris <mike@jerris.com> Sent: Thu, Sep 6, 2018 4:04 AM CDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] mod_flite fails due to undefined symbol: cmu_lex_init I don’t see this issue on debian. ld.so.conf might fix it, or building to /usr instead of /usr/local. Check out our debian directory for how we build the packages for debian as a hint. On debian 9 we just started using system packages as they now have working flite 2.0 in the distro, see master for the patches necessary for that to work without pkg-config (which unfortunately the debian package does not have) Our deb directory is here: https://freeswitch.org/stash/projects/SD/repos/libflite/browse/debian You might want to use the src from this git checkout as I’m not sure the tarball has our debian packaging in it or not. Mike On Sep 5, 2018, at 5:52 PM, kaiduan xie <kaiduanx@yahoo.ca> wrote: With the command as below, LD_PRELOAD="/usr/local/lib/libflite_cmu_us_kal.so /usr/local/lib/libflite_usenglish.so /usr/local/lib/libflite_cmulex.so /usr/local/lib/libflite.so" ./bin/freeswitch I finally got mod_flite working on Ubuntu 16.04 with Freeswitch 1.8.0 source code So the question is why Freeswitch does not load above libraries by itself? /Kaiduan On Wednesday, September 5, 2018, 11:54:07 AM EDT, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote: Thanks Michael. I downloaded the flite 2.0 from http://files.freeswitch.org/downloads/libs/flite-2.0.0.tar.gz and build it as below ./configure --enable-shared make make install build and run freeswitch-1.8, the same error occurred again. However mod_flite was successfully loaded if I ran freeswitch as below (used LD_PRELOAD to load libflite_cmulex) kxie@kxie-Inspiron-3656:~/freeswitch-install$ pwd /home/kxie/freeswitch-install kxie@kxie-Inspiron-3656:~/freeswitch-install$LD_PRELOAD=/usr/local/lib/libflite_cmulex.so ./bin/freeswitch /Kaiduan On Tuesday, September 4, 2018, 12:32:54 PM EDT, Michael Jerris <mike@jerris.com> wrote: Our build requires flite 2.0 …. Our latest Debian unstable and 1.8 repos have these packages, for ubuntu you likely need to build these packages yourself from our support deps in stash. On Sep 3, 2018, at 12:26 PM, kaiduan xie via FreeSWITCH-users <freeswitch-users@lists.freeswitch.org> wrote: From: kaiduan xie <kaiduanx@yahoo.ca> Subject: mod_flite fails due to undefined symbol: cmu_lex_init Date: August 30, 2018 at 7:10:06 PM EDT To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Hi all, I build and run FreeSwitch 1.6.20 from source on Ubuntu 16.0.4 xenial, the mod_filte failed while loading, 2018-08-3019:03:30.786468 [CRIT] switch_loadable_module.c:1522 Error Loading module /home/kxie/freeswitch-dev-install/lib/freeswitch/mod/mod_flite.so **/usr/local/lib/libflite_cmu_us_slt.so.1: undefined symbol: cmu_lex_init** Any idea to solve this issue? Many thanks, /Kaiduan _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com -- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 612-1412 System Administrator - Architect _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com
participants (3)
-
kaiduan xie
-
Michael Jerris
-
Nathan Neulinger