hi im trying to install asterisk 1.2.23 but i have a problem while running make command n the problem is
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:840: error: ‘SQLSMALLINT’ undeclared (first use in this function)
app_voicemail.c:840: error: (Each undeclared identifier is reported only once
app_voicemail.c:840: error: for each function it appears in.)
app_voicemail.c:840: error: expected ‘;’ before ‘colcount’
app_voicemail.c:841: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:841: error: expected ‘;’ before ‘stmt’
app_voicemail.c:846: error: expected ‘;’ before ‘collen’
app_voicemail.c:847: error: expected ‘;’ before ‘datatype’
app_voicemail.c:848: error: expected ‘;’ before ‘decimaldigits’
app_voicemail.c:849: error: expected ‘;’ before ‘nullable’
app_voicemail.c:850: error: ‘SQLULEN’ undeclared (first use in this function)
app_voicemail.c:850: error: expected ‘;’ before ‘colsize’
app_voicemail.c:879: warning: implicit declaration of function ‘SQLAllocHandle’
app_voicemail.c:879: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:879: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:879: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:880: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:880: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:885: warning: implicit declaration of function ‘SQLPrepare’
app_voicemail.c:885: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:888: warning: implicit declaration of function ‘SQLFreeHandle’
app_voicemail.c:891: warning: implicit declaration of function ‘SQLBindParameter’
app_voicemail.c:891: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:891: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:891: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:893: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:899: warning: implicit declaration of function ‘SQLFetch’
app_voicemail.c:900: error: ‘SQL_NO_DATA’ undeclared (first use in this function)
app_voicemail.c:915: warning: implicit declaration of function ‘SQLNumResultCols’
app_voicemail.c:915: error: ‘colcount’ undeclared (first use in this function)
app_voicemail.c:925: error: ‘collen’ undeclared (first use in this function)
app_voicemail.c:926: warning: implicit declaration of function ‘SQLDescribeCol’
app_voicemail.c:927: error: ‘datatype’ undeclared (first use in this function)
app_voicemail.c:927: error: ‘colsize’ undeclared (first use in this function)
app_voicemail.c:927: error: ‘decimaldigits’ undeclared (first use in this function)
app_voicemail.c:927: error: ‘nullable’ undeclared (first use in this function)
app_voicemail.c:935: warning: implicit declaration of function ‘SQLGetData’
app_voicemail.c:935: error: ‘SQL_BINARY’ undeclared (first use in this function)
app_voicemail.c: In function ‘last_message_index’:
app_voicemail.c:1007: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1007: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1014: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1014: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1014: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1015: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1015: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1020: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1026: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1026: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1026: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1027: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘message_exists’:
app_voicemail.c:1058: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1058: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1067: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1067: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1067: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1068: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1068: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1073: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1079: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1079: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1079: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1081: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘delete_file’:
app_voicemail.c:1116: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1116: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1124: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1124: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1124: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1125: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1125: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1130: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1136: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1136: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1136: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1138: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘copy_file’:
app_voicemail.c:1154: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1154: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1165: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1165: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1165: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1166: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1166: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1175: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1181: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1181: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1181: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1192: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘store_file’:
app_voicemail.c:1212: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1212: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1213: error: ‘SQLINTEGER’ undeclared (first use in this function)
app_voicemail.c:1213: error: expected ‘;’ before ‘len’
app_voicemail.c:1269: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1269: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1269: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1270: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1270: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1286: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1292: error: ‘len’ undeclared (first use in this function)
app_voicemail.c:1293: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1293: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1293: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1295: error: ‘SQL_C_BINARY’ undeclared (first use in this function)
app_voicemail.c:1295: error: ‘SQL_LONGVARBINARY’ undeclared (first use in this function)
app_voicemail.c:1310: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘rename_file’:
app_voicemail.c:1332: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:1332: error: expected ‘;’ before ‘stmt’
app_voicemail.c:1343: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:1343: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:1343: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:1344: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:1344: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:1353: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:1359: error: ‘SQL_PARAM_INPUT’ undeclared (first use in this function)
app_voicemail.c:1359: error: ‘SQL_C_CHAR’ undeclared (first use in this function)
app_voicemail.c:1359: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:1370: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘messagecount’:
app_voicemail.c:2057: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:2057: error: expected ‘;’ before ‘stmt’
app_voicemail.c:2084: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:2084: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2084: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:2085: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:2085: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:2090: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:2096: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:2108: error: ‘SQL_CHAR’ undeclared (first use in this function)
app_voicemail.c:2117: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2129: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c: In function ‘has_voicemail’:
app_voicemail.c:2161: error: ‘SQLHSTMT’ undeclared (first use in this function)
app_voicemail.c:2161: error: expected ‘;’ before ‘stmt’
app_voicemail.c:2184: error: ‘SQL_HANDLE_STMT’ undeclared (first use in this function)
app_voicemail.c:2184: error: ‘odbc_obj’ has no member named ‘con’
app_voicemail.c:2184: error: ‘stmt’ undeclared (first use in this function)
app_voicemail.c:2185: error: ‘SQL_SUCCESS’ undeclared (first use in this function)
app_voicemail.c:2185: error: ‘SQL_SUCCESS_WITH_INFO’ undeclared (first use in this function)
app_voicemail.c:2190: error: ‘SQL_NTS’ undeclared (first use in this function)
app_voicemail.c:2196: error: too many arguments to function ‘odbc_smart_execute’
app_voicemail.c:2208: error: ‘SQL_CHAR’ undeclared (first use in this function)
make[1]: *** [app_voicemail.o] Error 1
make[1]: Leaving directory `/root/Desktop/asterisk-1.2.23/apps’
make: *** [subdirs] Error 1
i dont know what is that n how to slove it can any one help me to get through this n i cant go for asterisk 1.4 i only want asterisk 1.2 for some specfic reasons
hope to get help from u guys thank u.