<div dir="ltr">you need to install the development package for odbc on your OS before you can build for ODBC.<br>This is one of the few dependancy libs we do not build for you.<br><br><br><div class="gmail_quote">On Wed, Sep 24, 2008 at 4:12 AM, Woody Dickson <span dir="ltr"><<a href="mailto:woodydickson@gmail.com">woodydickson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi,<br>
<br>
I tried to run "./configure --enable-core-odbc-support" but got the following error during "make":<br>
<br>
Compiling src/switch_pcm.c ...<br>
Compiling libs/libteletone/src/libteletone_detect.c ...<br>
Compiling libs/libteletone/src/libteletone_generate.c ...<br>
Compiling src/switch_odbc.c ...<br>
In file included from src/switch_odbc.c:33:<br>
./src/include/switch_odbc.h:36:17: error: sql.h: No such file or directory<br>
./src/include/switch_odbc.h:43:20: error: sqlext.h: No such file or directory<br>
./src/include/switch_odbc.h:45:22: error: sqltypes.h: No such file or directory<br>
In file included from src/switch_odbc.c:33:<br>
./src/include/switch_odbc.h:66: error: expected declaration specifiers or '...' before 'SQLHSTMT'<br>
./src/include/switch_odbc.h:69: error: expected declaration specifiers or '...' before 'SQLHSTMT'<br>
src/switch_odbc.c:39: error: expected specifier-qualifier-list before 'SQLHENV'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_new':<br>
src/switch_odbc.c:72: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:72: error: 'SQL_NULL_HANDLE' undeclared (first use in this function)<br>
src/switch_odbc.c:72: error: (Each undeclared identifier is reported only once<br>
src/switch_odbc.c:72: error: for each function it appears in.)<br>
src/switch_odbc.c:73: error: 'switch_odbc_handle_t' has no member named 'state'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_disconnect':<br>
src/switch_odbc.c:92: error: 'switch_odbc_handle_t' has no member named 'state'<br>
cc1: warnings being treated as errors<br>
src/switch_odbc.c:93: warning: implicit declaration of function 'SQLDisconnect'<br>
src/switch_odbc.c:93: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:101: error: 'switch_odbc_handle_t' has no member named 'state'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_connect':<br>
src/switch_odbc.c:109: error: 'SQLINTEGER' undeclared (first use in this function)<br>
src/switch_odbc.c:109: error: expected ';' before 'err'<br>
src/switch_odbc.c:112: error: 'SQLSMALLINT' undeclared (first use in this function)<br>
src/switch_odbc.c:112: error: expected ';' before 'valueLength'<br>
src/switch_odbc.c:115: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:115: error: 'SQL_NULL_HANDLE' undeclared (first use in this function)<br>
src/switch_odbc.c:116: warning: implicit declaration of function 'SQLAllocHandle'<br>
src/switch_odbc.c:116: error: 'SQL_HANDLE_ENV' undeclared (first use in this function)<br>
src/switch_odbc.c:116: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:118: error: 'SQL_SUCCESS' undeclared (first use in this function)<br>
src/switch_odbc.c:118: error: 'SQL_SUCCESS_WITH_INFO' undeclared (first use in this function)<br>
src/switch_odbc.c:123: warning: implicit declaration of function 'SQLSetEnvAttr'<br>
src/switch_odbc.c:123: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:123: error: 'SQL_ATTR_ODBC_VERSION' undeclared (first use in this function)<br>
src/switch_odbc.c:123: error: 'SQL_OV_ODBC3' undeclared (first use in this function)<br>
src/switch_odbc.c:127: warning: implicit declaration of function 'SQLFreeHandle'<br>
src/switch_odbc.c:127: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:131: error: 'SQL_HANDLE_DBC' undeclared (first use in this function)<br>
src/switch_odbc.c:131: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:131: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:135: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:138: warning: implicit declaration of function 'SQLSetConnectAttr'<br>
src/switch_odbc.c:138: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:138: error: 'SQL_LOGIN_TIMEOUT' undeclared (first use in this function)<br>
src/switch_odbc.c:138: error: 'SQLPOINTER' undeclared (first use in this function)<br>
src/switch_odbc.c:138: error: expected expression before ')' token<br>
src/switch_odbc.c:140: error: 'switch_odbc_handle_t' has no member named 'state'<br>
src/switch_odbc.c:148: warning: implicit declaration of function 'SQLConnect'<br>
src/switch_odbc.c:148: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:148: error: 'SQLCHAR' undeclared (first use in this function)<br>
src/switch_odbc.c:148: error: expected expression before ')' token<br>
src/switch_odbc.c:150: error: expected ';' before 'outstr'<br>
src/switch_odbc.c:151: error: expected ';' before 'outstrlen'<br>
src/switch_odbc.c:153: warning: implicit declaration of function 'SQLDriverConnect'<br>
src/switch_odbc.c:153: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:153: error: expected expression before ')' token<br>
src/switch_odbc.c:159: error: too many arguments to function 'switch_odbc_handle_get_error'<br>
src/switch_odbc.c:163: warning: implicit declaration of function 'SQLGetDiagRec'<br>
src/switch_odbc.c:163: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:163: error: 'err' undeclared (first use in this function)<br>
src/switch_odbc.c:166: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:170: warning: implicit declaration of function 'SQLGetInfo'<br>
src/switch_odbc.c:170: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:170: error: 'SQL_DRIVER_NAME' undeclared (first use in this function)<br>
src/switch_odbc.c:170: error: expected expression before ')' token<br>
src/switch_odbc.c:172: error: 'valueLength' undeclared (first use in this function)<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:173: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:176: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:176: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:176: error: 'switch_odbc_handle_t' has no member named 'odbc_driver'<br>
src/switch_odbc.c:177: error: 'switch_odbc_handle_t' has no member named 'is_firebird'<br>
src/switch_odbc.c:179: error: 'switch_odbc_handle_t' has no member named 'is_firebird'<br>
src/switch_odbc.c:183: error: 'switch_odbc_handle_t' has no member named 'state'<br>
src/switch_odbc.c: In function 'db_is_up':<br>
src/switch_odbc.c:190: error: 'SQLHSTMT' undeclared (first use in this function)<br>
src/switch_odbc.c:190: error: expected ';' before 'stmt'<br>
src/switch_odbc.c:191: error: 'SQLLEN' undeclared (first use in this function)<br>
src/switch_odbc.c:191: error: expected ';' before 'm'<br>
src/switch_odbc.c:196: error: 'SQLCHAR' undeclared (first use in this function)<br>
src/switch_odbc.c:196: error: expected ';' before 'sql'<br>
src/switch_odbc.c:199: error: 'SQLRETURN' undeclared (first use in this function)<br>
src/switch_odbc.c:199: error: expected ';' before 'rc'<br>
src/switch_odbc.c:200: error: 'SQLSMALLINT' undeclared (first use in this function)<br>
src/switch_odbc.c:200: error: expected ';' before 'nresultcols'<br>
src/switch_odbc.c:209: error: 'switch_odbc_handle_t' has no member named 'is_firebird'<br>
src/switch_odbc.c:210: error: 'sql' undeclared (first use in this function)<br>
src/switch_odbc.c:215: error: 'SQL_HANDLE_STMT' undeclared (first use in this function)<br>
src/switch_odbc.c:215: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:215: error: 'stmt' undeclared (first use in this function)<br>
src/switch_odbc.c:215: error: 'SQL_SUCCESS' undeclared (first use in this function)<br>
src/switch_odbc.c:219: warning: implicit declaration of function 'SQLPrepare'<br>
src/switch_odbc.c:219: error: 'SQL_NTS' undeclared (first use in this function)<br>
src/switch_odbc.c:223: warning: implicit declaration of function 'SQLExecute'<br>
src/switch_odbc.c:225: warning: implicit declaration of function 'SQLRowCount'<br>
src/switch_odbc.c:225: error: 'm' undeclared (first use in this function)<br>
src/switch_odbc.c:226: error: 'rc' undeclared (first use in this function)<br>
src/switch_odbc.c:226: warning: implicit declaration of function 'SQLNumResultCols'<br>
src/switch_odbc.c:226: error: 'nresultcols' undeclared (first use in this function)<br>
src/switch_odbc.c:240: error: too many arguments to function 'switch_odbc_handle_get_error'<br>
src/switch_odbc.c: At top level:<br>
src/switch_odbc.c:285: error: expected declaration specifiers or '...' before 'SQLHSTMT'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_exec':<br>
src/switch_odbc.c:287: error: 'SQLHSTMT' undeclared (first use in this function)<br>
src/switch_odbc.c:287: error: expected ';' before 'stmt'<br>
src/switch_odbc.c:294: error: 'SQL_HANDLE_STMT' undeclared (first use in this function)<br>
src/switch_odbc.c:294: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:294: error: 'stmt' undeclared (first use in this function)<br>
src/switch_odbc.c:294: error: 'SQL_SUCCESS' undeclared (first use in this function)<br>
src/switch_odbc.c:298: error: 'SQL_NTS' undeclared (first use in this function)<br>
src/switch_odbc.c:304: error: 'SQL_SUCCESS_WITH_INFO' undeclared (first use in this function)<br>
src/switch_odbc.c:308: error: 'rstmt' undeclared (first use in this function)<br>
src/switch_odbc.c: In function 'switch_odbc_handle_callback_exec':<br>
src/switch_odbc.c:328: error: 'SQLHSTMT' undeclared (first use in this function)<br>
src/switch_odbc.c:328: error: expected ';' before 'stmt'<br>
src/switch_odbc.c:329: error: 'SQLSMALLINT' undeclared (first use in this function)<br>
src/switch_odbc.c:329: error: expected ';' before 'c'<br>
src/switch_odbc.c:330: error: 'SQLLEN' undeclared (first use in this function)<br>
src/switch_odbc.c:330: error: expected ';' before 'm'<br>
src/switch_odbc.c:339: error: 'SQL_HANDLE_STMT' undeclared (first use in this function)<br>
src/switch_odbc.c:339: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:339: error: 'stmt' undeclared (first use in this function)<br>
src/switch_odbc.c:339: error: 'SQL_SUCCESS' undeclared (first use in this function)<br>
src/switch_odbc.c:343: error: 'SQL_NTS' undeclared (first use in this function)<br>
src/switch_odbc.c:349: error: 'SQL_SUCCESS_WITH_INFO' undeclared (first use in this function)<br>
src/switch_odbc.c:353: error: 'c' undeclared (first use in this function)<br>
src/switch_odbc.c:354: error: 'm' undeclared (first use in this function)<br>
src/switch_odbc.c:357: error: 't' undeclared (first use in this function)<br>
src/switch_odbc.c:363: warning: implicit declaration of function 'SQLFetch'<br>
src/switch_odbc.c:372: error: 'x' undeclared (first use in this function)<br>
src/switch_odbc.c:373: error: expected ';' before 'NameLength'<br>
src/switch_odbc.c:374: error: 'SQLULEN' undeclared (first use in this function)<br>
src/switch_odbc.c:374: error: expected ';' before 'ColumnSize'<br>
src/switch_odbc.c:378: warning: implicit declaration of function 'SQLDescribeCol'<br>
src/switch_odbc.c:378: error: 'SQLCHAR' undeclared (first use in this function)<br>
src/switch_odbc.c:378: error: expected expression before ')' token<br>
src/switch_odbc.c:379: error: 'ColumnSize' undeclared (first use in this function)<br>
src/switch_odbc.c:383: warning: implicit declaration of function 'SQLGetData'<br>
src/switch_odbc.c:383: error: 'SQL_C_CHAR' undeclared (first use in this function)<br>
src/switch_odbc.c:383: error: expected expression before ')' token<br>
src/switch_odbc.c: In function 'switch_odbc_handle_destroy':<br>
src/switch_odbc.c:424: error: 'SQL_HANDLE_DBC' undeclared (first use in this function)<br>
src/switch_odbc.c:424: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:425: error: 'SQL_HANDLE_ENV' undeclared (first use in this function)<br>
src/switch_odbc.c:425: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_get_state':<br>
src/switch_odbc.c:436: error: 'switch_odbc_handle_t' has no member named 'state'<br>
src/switch_odbc.c: At top level:<br>
src/switch_odbc.c:439: error: expected declaration specifiers or '...' before 'SQLHSTMT'<br>
src/switch_odbc.c: In function 'switch_odbc_handle_get_error':<br>
src/switch_odbc.c:441: error: 'SQL_MAX_MESSAGE_LENGTH' undeclared (first use in this function)<br>
src/switch_odbc.c:442: error: 'SQL_SQLSTATE_SIZE' undeclared (first use in this function)<br>
src/switch_odbc.c:443: error: 'SQLINTEGER' undeclared (first use in this function)<br>
src/switch_odbc.c:443: error: expected ';' before 'sqlcode'<br>
src/switch_odbc.c:444: error: 'SQLSMALLINT' undeclared (first use in this function)<br>
src/switch_odbc.c:444: error: expected ';' before 'length'<br>
src/switch_odbc.c:447: warning: implicit declaration of function 'SQLError'<br>
src/switch_odbc.c:447: error: 'switch_odbc_handle_t' has no member named 'env'<br>
src/switch_odbc.c:447: error: 'switch_odbc_handle_t' has no member named 'con'<br>
src/switch_odbc.c:447: error: 'stmt' undeclared (first use in this function)<br>
src/switch_odbc.c:447: error: 'SQLCHAR' undeclared (first use in this function)<br>
src/switch_odbc.c:447: error: expected expression before ')' token<br>
src/switch_odbc.c:447: error: 'SQL_SUCCESS' undeclared (first use in this function)<br>
src/switch_odbc.c:448: error: 'sqlcode' undeclared (first use in this function)<br>
src/switch_odbc.c:442: warning: unused variable 'sqlstate'<br>
src/switch_odbc.c:441: warning: unused variable 'buffer'<br>
make[2]: *** [libfreeswitch_la-switch_odbc.lo] Error 1<br>
Making all in src<br>
Making all in mod<br>
<br>
making all mod_amr<br>
make[5]: *** No rule to make target `/usr/src/freeswitch/<a href="http://libfreeswitch.la" target="_blank">libfreeswitch.la</a>', needed by `mod_amr.so'. Stop.<br>
make[4]: *** [all] Error 1<br>
make[3]: *** [mod_amr-all] Error 1<br>
make[2]: *** [all-recursive] Error 1<br>
Making all in build<br>
+-------- FreeSWITCH Build Complete -----------+<br>
+ FreeSWITCH has been successfully built. +<br>
+ Install by running: +<br>
+ +<br>
+ make install +<br>
+----------------------------------------------+<br>
make[1]: *** [all-recursive] Error 1<br>
make: *** [all] Error 2<br>
<br>
I am running on Centos and odbc is already installed. <br>
<br>
Could someone give me idea about what could be the problem?<br>
<br>
<br>
Thanks,<br>
Woody<br>
<br>
<br>
<br>
<br>
<br></div>
<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>