Asterisk installation problem need some help

Hi guys,

im getting nfollowing error when i try to install asterisk

In file included from app_voicemail.c:74:
…/include/asterisk/res_odbc.h:28:17: error: sql.h: No such file or directory
…/include/asterisk/res_odbc.h:29:20: error: sqlext.h: No such file or directory
…/include/asterisk/res_odbc.h:30:22: error: sqltypes.h: No such file or directory
In file included from app_voicemail.c:74:
…/include/asterisk/res_odbc.h:41: error: expected specifier-qualifier-list before ‘SQLHENV’
…/include/asterisk/res_odbc.h:58: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘odbc_prepare_and_execute’
…/include/asterisk/res_odbc.h:59: error: expected declaration specifiers or ‘…’ before ‘SQLHSTMT’
…/include/asterisk/res_odbc.h:60: error: expected declaration specifiers or ‘…’ before ‘SQLHSTMT’
app_voicemail.c: In function ‘retrieve_file’:
app_voicemail.c:837: error: ‘SQLSMALLINT’ undeclared (first use in this function)
app_voicemail.c:837: error: (Each undeclared identifier is reported only once
app_voicemail.c:837: error: for each function it appears in.)
app_voicemail.c:837: error: expected ‘;’ before ‘colcount’
app_voicemail.c:838: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:838: error: expected ‘;’ before ‘stmt’
app_voicemail.c:843: error: expected ‘;’ before ‘collen’
app_voicemail.c:844: error: expected ‘;’ before ‘datatype’
app_voicemail.c:845: error: expected ‘;’ before ‘decimaldigits’
app_voicemail.c:846: error: expected ‘;’ before ‘nullable’
app_voicemail.c:847: error: ‘SQLULEN’ undeclared (first use in this function)
app_voicemail.c:847: error: expected ‘;’ before ‘colsize’
app_voicemail.c:871: warning: implicit declaration of function ‘SQLAllocHandle’
app_voicemail.c:871: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:871: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:871: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:872: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:872: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:877: warning: implicit declaration of function ‘SQLPrepare’
app_voicemail.c:877: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:880: warning: implicit declaration of function ‘SQLFreeHandle’
app_voicemail.c:883: warning: implicit declaration of function ‘SQLBindParameter’
app_voicemail.c:883: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:883: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:883: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:885: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:891: warning: implicit declaration of function ‘SQLFetch’
app_voicemail.c:892: error: ‘SQL_NO_DATA’ undeclared (first use in this function)
app_voicemail.c:907: warning: implicit declaration of function ‘SQLNumResultCols’
app_voicemail.c:907: error: ‘colcount’ undeclared (first use in this function)
app_voicemail.c:917: error: ‘collen’ undeclared (first use in this function)
app_voicemail.c:918: warning: implicit declaration of function ‘SQLDescribeCol’
app_voicemail.c:919: error: ‘datatype’ undeclared (first use in this function)
app_voicemail.c:919: error: ‘colsize’ undeclared (first use in this function)
app_voicemail.c:919: error: ‘decimaldigits’ undeclared (first use in this function)
app_voicemail.c:919: error: ‘nullable’ undeclared (first use in this function)
app_voicemail.c:926: warning: implicit declaration of function ‘SQLGetData’
app_voicemail.c:926: error: ‘SQL_BINARY’ undeclared (first use in this function)
app_voicemail.c: In function ‘last_message_index’:
app_voicemail.c:993: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:993: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1000: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1000: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1000: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1001: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1001: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1006: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1012: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1012: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1012: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1013: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘message_exists’:
app_voicemail.c:1044: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1044: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1053: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1053: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1053: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1054: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1054: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1059: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1065: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1065: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1065: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1067: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘delete_file’:
app_voicemail.c:1102: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1102: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1110: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1110: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1110: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1111: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1111: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1116: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1122: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1122: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1122: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1124: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘copy_file’:
app_voicemail.c:1140: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1140: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1151: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1151: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1151: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1152: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1152: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1161: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1167: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1167: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1167: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1178: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘store_file’:
app_voicemail.c:1198: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1198: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1199: error: ‘SQLINTEGER’ undeclared (first use in this function)
app_voicemail.c:1199: error: expected ‘;’ before ‘len’
app_voicemail.c:1255: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1255: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1255: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1256: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1256: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1272: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1278: error: ‘len’ undeclared (first use in this function)
app_voicemail.c:1279: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1279: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1279: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1281: error: ‘SQL_C_BINARY’ undeclared (first use in this function)
app_voicemail.c:1281: error: ‘SQL_LONGVARBINARY’ undeclared (first use in this function)
app_voicemail.c:1296: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘rename_file’:
app_voicemail.c:1318: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1318: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1329: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1329: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1329: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1330: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1330: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1339: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1345: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1345: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1345: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1356: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘messagecount’:
app_voicemail.c:2011: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:2011: error: expected ‘;’ before ‘stmt’
app_voicemail.c:2038: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:2038: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2038: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:2039: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:2039: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:2044: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:2050: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:2062: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:2071: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2083: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘has_voicemail’:
app_voicemail.c:2115: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:2115: error: expected ‘;’ before ‘stmt’
app_voicemail.c:2138: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:2138: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2138: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:2139: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:2139: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:2144: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:2150: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:2162: error: ‘SQL_CHAR’ undeclared (first use in this function)
make[1]: *** [app_voicemail.o] Error 1
make[1]: Leaving directory `/usr/local/src/asterisk-1.2.9.1/apps’
make: *** [subdirs] Error 1

any suggestion are welcome…

thx for the reply.pls try post some solution coz its urgent for me.

regards,
bala.