I'm having trouble with mod_pocketsphinx on Mac OS X 10.6 using git head from Wed Apr 14 21:36:41 2010 -0400. My freeswitch.log says: 2010-04-15 22:50:30.418812 [NOTICE] switch_loadable_module.c:272 Adding API Function 'luarun' 2010-04-15 22:50:30.418863 [NOTICE] switch_loadable_module.c:272 Adding API Function 'lua' 2010-04-15 22:50:30.419302 [CRIT] switch_loadable_module.c:882 Error Loading module /usr/local/freeswitch/mod/mod_pocketsphinx.so **dlopen(/usr/local/freeswitch/mod/mod_pocketsphinx.so, 6): Symbol not found: _iconv Referenced from: /usr/local/freeswitch/mod/mod_pocketsphinx.so Expected in: flat namespace in /usr/local/freeswitch/mod/mod_pocketsphinx.so** From my freeswitch.la I see: # Libraries that this one depends upon. dependency_libs=' -L/Users/admin/src/freeswitch/libs/apr-util/xml/expat/lib /Users/admin/src/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la /Users/admin/src/freeswitch/libs/apr/libapr-1.la -liconv -ldl -lpthread -lm -L/opt/local/lib -lssl -lcrypto -lz -lncurses' That looks OK to my unskilled eyes, although I do have libiconv in two places, the default /usr/lib: lrwxr-xr-x 1 root wheel 16 Sep 10 2009 /usr/lib/libiconv.2.4.0.dylib -> libiconv.2.dylib -r-xr-xr-x 1 root wheel 3205760 Nov 19 18:00 /usr/lib/libiconv.2.dylib lrwxr-xr-x 1 root wheel 20 Sep 10 2009 /usr/lib/libiconv.dylib -> libiconv.2.4.0.dylib and a copy from MacPorts, which came for the ride when I installed git: -rw-r--r-- 2 root admin 1084720 Apr 2 12:40 /opt/local/lib/libiconv.2.dylib -rw-r--r-- 2 root admin 1115488 Apr 2 12:40 /opt/local/lib/libiconv.a lrw-r--r-- 1 root admin 16 Apr 2 12:40 /opt/local/lib/libiconv.dylib -> libiconv.2.dylib -rw-r--r-- 2 root admin 918 Apr 2 12:40 /opt/local/lib/libiconv.la Does anyone have any thoughts on how I can debug this? Thanks, - Bruce
Thanks to bkw_ and some other friendly IRC helpers, it has been established that indeed the MacPorts install that I mentioned below was the source of my _iconv linker problem. I'll just record a few things here on the mailing list as Google fodder in case someone else hits this same problem, and maybe make a small note somewhere in the wiki. FreeSWITCH on Mac OS X assumes a standard Mac OS X build environment, and it appears that MacPorts can make things a bit non-standard. I only had MacPorts installed to get the git-core port, and I've verified that uninstalling MacPorts and installing git from a disk image works fine. Disk images of git are available here: http://code.google.com/p/git-osx-installer/downloads/list?can=3 Two other experiments to report. I removed the MacPorts directories of /opt/local/bin and /opt/local/sbin from my $PATH and FreeSWITCH built and loaded fine, although the above git disk image install was required for 'make current'. I then tried leaving the /opt dirs at the end of my path, and again ran into the _iconv problem below. So if you need MacPorts on your computer for some other reason, you may have to selectively disable it in your $PATH whenever you want to build FreeSWITCH unless you can come up with some more elegant solution than I could. I was a little unimpressed with how installing git from MacPorts required 17 other ports first, so I'm happy to go the "git from .dmg" route myself. Thanks again everyone, - Bruce On 2010-04-16, at 12:11 AM, Bruce Fletcher wrote:
I'm having trouble with mod_pocketsphinx on Mac OS X 10.6 using git head from Wed Apr 14 21:36:41 2010 -0400.
My freeswitch.log says:
2010-04-15 22:50:30.418812 [NOTICE] switch_loadable_module.c:272 Adding API Function 'luarun' 2010-04-15 22:50:30.418863 [NOTICE] switch_loadable_module.c:272 Adding API Function 'lua' 2010-04-15 22:50:30.419302 [CRIT] switch_loadable_module.c:882 Error Loading module /usr/local/freeswitch/mod/mod_pocketsphinx.so **dlopen(/usr/local/freeswitch/mod/mod_pocketsphinx.so, 6): Symbol not found: _iconv Referenced from: /usr/local/freeswitch/mod/mod_pocketsphinx.so Expected in: flat namespace in /usr/local/freeswitch/mod/mod_pocketsphinx.so**
From my freeswitch.la I see:
# Libraries that this one depends upon. dependency_libs=' -L/Users/admin/src/freeswitch/libs/apr-util/xml/expat/lib /Users/admin/src/freeswitch/libs/apr-util/xml/expat/lib/libexpat.la /Users/admin/src/freeswitch/libs/apr/libapr-1.la -liconv -ldl -lpthread -lm -L/opt/local/lib -lssl -lcrypto -lz -lncurses'
That looks OK to my unskilled eyes, although I do have libiconv in two places, the default /usr/lib:
lrwxr-xr-x 1 root wheel 16 Sep 10 2009 /usr/lib/libiconv.2.4.0.dylib -> libiconv.2.dylib -r-xr-xr-x 1 root wheel 3205760 Nov 19 18:00 /usr/lib/libiconv.2.dylib lrwxr-xr-x 1 root wheel 20 Sep 10 2009 /usr/lib/libiconv.dylib -> libiconv.2.4.0.dylib
and a copy from MacPorts, which came for the ride when I installed git:
-rw-r--r-- 2 root admin 1084720 Apr 2 12:40 /opt/local/lib/libiconv.2.dylib -rw-r--r-- 2 root admin 1115488 Apr 2 12:40 /opt/local/lib/libiconv.a lrw-r--r-- 1 root admin 16 Apr 2 12:40 /opt/local/lib/libiconv.dylib -> libiconv.2.dylib -rw-r--r-- 2 root admin 918 Apr 2 12:40 /opt/local/lib/libiconv.la
Does anyone have any thoughts on how I can debug this?
Thanks, - Bruce
_______________________________________________ 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
participants (1)
-
Bruce Fletcher