i will explain the issue, I know the cause, i haven't had time to trace the solution

it is the inline thing, centos 6/7 uses -O2 or -O3 (it varies, and I don't remember when/why). O2 and superior tries to do inlining whenever it is possible.  Inlining won't be on the linking and there is where it fails (google about that, there is a good explanation, better than this).

So, to fix this issue, we need to find the definition of that library. If it is inline, we should take the inline thing, if it is not inline, we need to figure out how to tell the gcc to not try inline optimizations. using --no-inline-* options won't worki, -O2 has precedence.


As far as I remember, this issue is not on flite. I think I read the code once, and flite does not do a call to nd_pcm_hw_params_any, but alsa does.

LD


Luis Daniel Lucio Quiroz
CISSP, CISM, CISA
Linux, VoIP and much more fun
www.okay.com.mx

Need LCR? Check out LCR for FusionPBX with FreeSWITCH
Need Billing? Check out Billing for FusionPBX with FreeSWITCH

2015-11-24 23:07 GMT-05:00 Sergey Safarov <s.safarov@gmail.com>:
Also exist FS-8084

On Tue, Nov 24, 2015 at 10:38 PM, Jonathan Hunter <jhunter@voxboxcoms.co.uk> wrote:
Thanks Michael, created under FS-8567.

Jon

On Tue, Nov 24, 2015 at 7:12 PM, Michael Jerris <mike@jerris.com> wrote:
please file a jira on this


On Tuesday, November 24, 2015, Jonathan Hunter <jhunter@voxboxcoms.co.uk> wrote:
Hi,

I am still having issues with loading mod_flite on FreeSWITCH 1.6.5-1 and this is after moving to Centos 7.1.1503 from 6.7.

I have installed FreeSWITCH from packages as per confluence;

yum install freeswitch-config-vanilla
yum install sox freeswitch-sounds*

I have also installed;


freeswitch-asrtts-flite.x86_64.

However when starting up and trying to load mod_flite I am now getting;

2015-11-24 18:53:03.320552 [CRIT] switch_loadable_module.c:1520 Error Loading module /usr/lib64/freeswitch/mod/mod_flite.so
**/usr/lib64/libflite.so.1: undefined symbol: snd_pcm_hw_params_any**

I have installed also;


 yum list | grep flite*
flite.x86_64                              2.0.0-0.el7.centos         @freeswitch
flite-debuginfo.x86_64                    2.0.0-0.el7.centos         @freeswitch
flite-devel.x86_64                        2.0.0-0.el7.centos         @freeswitch
freeswitch-asrtts-flite.x86_64            1.6.5-1.el7.centos         @freeswitch
and
yum list | grep alsa*
alsa-firmware.noarch                      1.0.28-2.el7               @anaconda
alsa-lib.x86_64                           1.0.28-2.el7               @anaconda
alsa-lib-devel.x86_64                     1.0.28-2.el7               @base
alsa-tools-firmware.x86_64                1.0.27-4.el7               @anaconda
alsa-utils.x86_64                         1.0.28-4.el7               @base

Am I missing another package of some sort? Any help appreciated.

thanks

Jon



_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org



--
Jonathan Hunter
Technical Director /Telephony Developer


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.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
http://www.freeswitch.org