drachtio / drachtio-freeswitch-modules

A collection of open-sourced freeswitch modules that I use in various drachtio applications
MIT License
171 stars 119 forks source link

Undefined symbol building FS with mod_dialogflow #70

Closed ruipfmendes closed 2 years ago

ruipfmendes commented 2 years ago

Hello,

I have been working on updating my current build of FreeSWITCH with mod_dialogflow. I had a previously working one using FS v1.10.1, but considering the recent support provided by this PR I'm using this opportunity to bump it to more recent versions since we've been noticing some performance issues that may be resolved by more recent versions of FS.

To do that I've been looking to replicate your jambonz install script ( https://github.com/jambonz/jambonz-infrastructure/blob/main/packer/jambonz-feature-server/scripts/install_freeswitch.sh ) and your ansible role tasks ( https://github.com/drachtio/ansible-role-fsmrf/tree/master/tasks ). The difference is I'm building this using docker.

os-release of the base image: NAME="Debian GNU/Linux" VERSION_ID="9" VERSION="9 (stretch)"

Dockerfile: https://gist.github.com/ruipfmendes/59684e9ef9da7c0d4192ed6ae1de6354 the dir patches is the one containing configure.ac Makefile.am modules.conf.in modules.conf.vanilla.xml modules.conf.xml the dir $CFG_DIR has my own FS configuration files: autoload_configs, dialplan, sip_profile and vars.xml

When launching FreeSWITCH I get this error: 2021-10-06 14:26:04.728860 [CRIT] switch_loadable_module.c:1785 Error Loading module /usr/local/freeswitch/mod/mod_dialogflow.so **/usr/local/freeswitch/mod/mod_dialogflow.so: undefined symbol: _ZN6google5cloud10dialogflow7v2beta139_Intent_Message_Image_default_instance_E**

Does anything strike you as odd at first glance? I noticed that my issue is similar to this one https://github.com/drachtio/drachtio-freeswitch-modules/issues/23 , but I've double-checked that we are using the same versions for the main libraries and tried multiple times to follow the instructions and I can't get it fixed but I've run out of ideas

davehorton commented 2 years ago

the scripts in the packer template you reference are the best ones (most current, most tested) ones to go off.

You'll note if you look at them that I am building on debian 10, not 9. Also that I am no longer patching Makefile.am etc but simply copying in the version I want.

ruipfmendes commented 2 years ago

yes Indeed I'm also copying the files now, but the dir is named patches because as I recall you used to use patch files and I did the same 😛 I will try my luck using debian 10 instead. thank you

ruipfmendes commented 2 years ago

it worked with debian 10, thank you 👍