[Freeswitch-users] mod_pocketsphinx link error on Mac OS X 10.6

Bruce Fletcher bruce at nani.ca
Fri Apr 16 00:11:37 PDT 2010


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




More information about the FreeSWITCH-users mailing list