[Asterisk-Dev] problem in loading module with asterisk
Steven Critchfield
critch at basesys.com
Fri Feb 18 10:28:37 MST 2005
On Fri, 2005-02-18 at 07:36 -0800, Kamran Ahmad wrote:
> hi developers
>
> i have developed a module(having a c file) for
> asterisk. it is compiling well and installed .so file
> to /usr/lib/asterisk/modules/. now when i try to load
> it with asterisk it is giving me error
> here is the error message
>
> [app_prepaid_auth_pin.so]Feb 19 20:06:47
> WARNING[5991]: loader.c:301 __load_resource:
> /usr/lib/asterisk/modules/app_prepaid_auth_pin.so:
> undefined symbol: SQLExecDirect
> Feb 19 20:06:47 WARNING[5991]: loader.c:509
> load_modules: Loading module app_prepaid_auth_pin.so
> failed!
My guess is you included a header to use the SQLExecDirect function to
get at your DB but you didn't link to the lib while compiling. Look for
your lib and add it to your gcc line.
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-dev
mailing list