[JDEV] Problem with compiling xdb_sql (odbc, Cygwin)
raditha dissanayake
jabber at raditha.com
Tue Sep 24 10:06:14 CDT 2002
i haven't tried xdb_sql under win32 but i think using unsigned long
instead ULONG might solve this particular problem.
Wojciech.Dec at winuel.com.pl wrote:
>Hi,
>
>
>I am trying to compile xdb_sql with ODBC and Cygwin.
>I have a lot of errors in win32api's files. There are Makefile and
>compilation
>log below.
>
>For example:
>
>/usr/include/w32api/sqltypes.h:17: parse error before `UDWORD'
>/usr/include/w32api/sqltypes.h:17: warning: data definition has no type or
>storage class
>
>I tried the following code:
>
>#include <stddef.h>
>typedef ULONG UDWORD; // as in w32api/sqltypes.h
>int main() { return 0; }
>
>I got the same errors. It seems GCC (2.95.3-5) does not see ULONG
>definition.
>What is wrong? Is it incorrect installation/configuration of my Cygwin
>or something else?
>
>Thanks in advance for any help.
>
>
>Regards,
>
>Wojciech Dec
>
>
>==================== Makefile begin ====================
>
>include ../platform-settings
>
># Uncomment the flags that are needed for your DB
>CFLAGS:= -I. -I../jabberd $(CFLAGS) # -I/usr/local/pgsql/include/
>
># Uncomment the flags that are needed for your DB
>#CPPFLAGS= # -DPOSTGRESQL_BACKEND -DODBC_BACKEND -DMYSQL_BACKEND
>CPPFLAGS= -DODBC_BACKEND
>
># Uncomment the file that corresponds to your DB
>xdb_sql_OBJECTS= \
> xdb_sql.o \
> xdb_sql_auth0k.o \
> xdb_sql_auth.o \
> xdb_sql_offline.o \
> xdb_sql_register.o \
> xdb_sql_config.o \
> xdb_sql_querydef.o \
> xdb_sql_roster.o \
> xdb_sql_last.o \
> xdb_sql_backend.o \
> xdb_sql_vcard.o \
> xdb_sql_filter.o \
> xdb_sql_generic.o \
> xdb_sql_odbc.o
># xdb_sql_pgsql.o
># xdb_sql_mysql.o
>
>all: xdb_sql.so
>
># Uncomment the lib that is used by your DB
>xdb_sql.so: $(xdb_sql_OBJECTS)
> $(CC) $(CFLAGS) $(MCFLAGS) -o xdb_sql.so $(xdb_sql_OBJECTS)
>$(LDFLAGS) $(LIBS) -static # -L/usr/local/pgsql/lib -lpq -lmysqlclient
>
>clean:
> rm -f $(xdb_sql_OBJECTS) xdb_sql.so
> rm -rf xdb_sql.1.0
>
>dist: all
> mkdir xdb_sql.1.0
> cat FILES | cut -d":" -f 1 | xargs cp --target-directory=xdb_sql.1.0/
> tar cvzf xdb_sql.1.0.tar.gz xdb_sql.1.0
>==================== Makefile end ====================
>
>
>
>
>==================== compilation log begin ====================
>gcc -I. -I../jabberd -g -Wall -I. -I..
>-I/cygdrive/c/cygwin/usr/local/jabber/jabber-1.4.2/jabberd/pth-1.4.0
>-DODBC_BACKEND -c -o xdb_sql_odbc.o xdb_sql_odbc.c
>In file included from ../jabberd/jabberd.h:42,
> from xdb_sql.h:20,
> from xdb_sql_backend.h:19,
> from xdb_sql_odbc.h:19,
> from xdb_sql_odbc.c:16:
>/cygdrive/c/cygwin/usr/local/jabber/jabber-1.4.2/jabberd/pth-1.4.0/pth.h:53:
>
>warning: useless keyword or type name in empty declaration
>/cygdrive/c/cygwin/usr/local/jabber/jabber-1.4.2/jabberd/pth-1.4.0/pth.h:53:
>
>warning: empty declaration
>In file included from /usr/include/w32api/sql.h:13,
> from xdb_sql_odbc.c:17:
>/usr/include/w32api/sqltypes.h:17: parse error before `UDWORD'
>/usr/include/w32api/sqltypes.h:17: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:18: parse error before `UWORD'
>/usr/include/w32api/sqltypes.h:18: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:24: parse error before `PTR'
>/usr/include/w32api/sqltypes.h:24: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:25: parse error before `HENV'
>/usr/include/w32api/sqltypes.h:25: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:26: parse error before `HDBC'
>/usr/include/w32api/sqltypes.h:26: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:27: parse error before `HSTMT'
>/usr/include/w32api/sqltypes.h:27: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:29: parse error before `SQLCHAR'
>/usr/include/w32api/sqltypes.h:29: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:34: parse error before `SQLUINTEGER'
>/usr/include/w32api/sqltypes.h:34: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:36: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqltypes.h:36: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:37: parse error before `SQLPOINTER'
>/usr/include/w32api/sqltypes.h:37: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:50: parse error before `SQLHWND'
>/usr/include/w32api/sqltypes.h:50: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:51: parse error before `BOOKMARK'
>/usr/include/w32api/sqltypes.h:51: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:71: parse error before `SQLTCHAR'
>/usr/include/w32api/sqltypes.h:71: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:84: parse error before `SQLBIGINT'
>/usr/include/w32api/sqltypes.h:84: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:85: parse error before `SQLUBIGINT'
>/usr/include/w32api/sqltypes.h:85: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:90: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqltypes.h:90: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:91: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:92: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:94: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqltypes.h:94: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:95: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:96: parse error before `second'
>/usr/include/w32api/sqltypes.h:96: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:97: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:100: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqltypes.h:100: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:101: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:102: parse error before `hour'
>/usr/include/w32api/sqltypes.h:102: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:103: parse error before `minute'
>/usr/include/w32api/sqltypes.h:103: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:104: parse error before `second'
>/usr/include/w32api/sqltypes.h:104: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:105: parse error before `fraction'
>/usr/include/w32api/sqltypes.h:105: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:106: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:108: parse error before `SQL_DATE_STRUCT'
>/usr/include/w32api/sqltypes.h:108: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:109: parse error before `SQL_TIME_STRUCT'
>/usr/include/w32api/sqltypes.h:109: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:110: parse error before
>`SQL_TIMESTAMP_STRUCT'
>/usr/include/w32api/sqltypes.h:110: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:118: parse error before `SQLUINTEGER'
>/usr/include/w32api/sqltypes.h:118: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:119: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:120: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:122: parse error before `SQLUINTEGER'
>/usr/include/w32api/sqltypes.h:122: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:123: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:124: parse error before `minute'
>/usr/include/w32api/sqltypes.h:124: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:125: parse error before `second'
>/usr/include/w32api/sqltypes.h:125: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:126: parse error before `fraction'
>/usr/include/w32api/sqltypes.h:126: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:127: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:132: parse error before
>`SQL_YEAR_MONTH_STRUCT'
>/usr/include/w32api/sqltypes.h:132: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:132: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:133: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:134: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:135: parse error before `}'
>/usr/include/w32api/sqltypes.h:135: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:138: parse error before `SQLCHAR'
>/usr/include/w32api/sqltypes.h:138: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:140: parse error before `sign'
>/usr/include/w32api/sqltypes.h:140: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:141: parse error before `val'
>/usr/include/w32api/sqltypes.h:141: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:142: parse error before `}'
>/usr/include/w32api/sqltypes.h:142: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:149: parse error before `DWORD'
>/usr/include/w32api/sqltypes.h:149: warning: no semicolon at end of struct
>or union
>/usr/include/w32api/sqltypes.h:150: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:151: parse error before `Data3'
>/usr/include/w32api/sqltypes.h:151: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:152: parse error before `Data4'
>/usr/include/w32api/sqltypes.h:152: warning: data definition has no type or
>storage class
>/usr/include/w32api/sqltypes.h:153: parse error before `}'
>/usr/include/w32api/sqltypes.h:153: warning: data definition has no type or
>storage class
>In file included from xdb_sql_odbc.c:17:
>/usr/include/w32api/sql.h:346: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:348: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:349: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:351: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:352: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:357: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:358: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:360: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:362: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:363: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:364: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:365: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:366: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:367: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:368: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:369: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:370: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:372: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:373: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:374: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:375: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:376: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:377: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:378: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:379: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:382: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:384: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sql.h:389: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:390: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:391: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:393: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:394: parse error before `SQLCHAR'
>/usr/include/w32api/sql.h:395: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:396: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:397: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:398: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:400: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:401: parse error before `SQLPOINTER'
>/usr/include/w32api/sql.h:402: parse error before `SQLPOINTER'
>In file included from xdb_sql_odbc.c:18:
>/usr/include/w32api/sqlext.h:1184: parse error before `SQLHWND'
>/usr/include/w32api/sqlext.h:1185: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1186: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1187: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1188: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1189: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1190: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1192: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1194: parse error before `SQLUINTEGER'
>/usr/include/w32api/sqlext.h:1195: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1196: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1197: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1198: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1199: parse error before `SQLCHAR'
>/usr/include/w32api/sqlext.h:1200: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1201: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1202: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlext.h:1203: warning: `__stdcall__' attribute
>directive ignored
>/usr/include/w32api/sqlext.h:1203: parse error before `ODBCGetTryWaitValue'
>/usr/include/w32api/sqlext.h:1204: warning: `__stdcall__' attribute
>directive ignored
>/usr/include/w32api/sqlext.h:1204: parse error before `ODBCSetTryWaitValue'
>/usr/include/w32api/sqlext.h:1205: warning: parameter names (without types)
>in function declaration
>/usr/include/w32api/sqlext.h:1207: warning: `__stdcall__' attribute
>directive ignored
>/usr/include/w32api/sqlext.h:1207: parse error before `TraceReturn'
>/usr/include/w32api/sqlext.h:1208: warning: `__stdcall__' attribute
>directive ignored
>/usr/include/w32api/sqlext.h:1208: parse error before `TraceVersion'
>In file included from /usr/include/w32api/sqlext.h:1214,
> from xdb_sql_odbc.c:18:
>/usr/include/w32api/sqlucode.h:22: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:24: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:25: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:26: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:27: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:28: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:30: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:32: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:34: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:35: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:36: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:37: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:38: parse error before `SQLHWND'
>/usr/include/w32api/sqlucode.h:39: parse error before `SQLHWND'
>/usr/include/w32api/sqlucode.h:40: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:41: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:42: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:44: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:46: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:48: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:49: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:50: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:51: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:52: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:54: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:55: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:56: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:57: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:60: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:62: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:64: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:66: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:68: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:70: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:71: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:72: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:73: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:74: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:76: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:77: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:78: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:79: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:80: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:81: parse error before `SQLUSMALLINT'
>/usr/include/w32api/sqlucode.h:82: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:84: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:87: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:88: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:89: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:91: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:92: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:93: parse error before `SQLCHAR'
>/usr/include/w32api/sqlucode.h:95: parse error before `SQLPOINTER'
>/usr/include/w32api/sqlucode.h:96: parse error before `SQLPOINTER'
>xdb_sql_odbc.c:44: parse error before `SQLCHAR'
>xdb_sql_odbc.c:44: warning: no semicolon at end of struct or union
>xdb_sql_odbc.c:46: parse error before `}'
>xdb_sql_odbc.c:47: warning: type defaults to `int' in declaration of
>`Tuple'
>xdb_sql_odbc.c:47: warning: data definition has no type or storage class
>xdb_sql_odbc.c:49: parse error before `*'
>xdb_sql_odbc.c:50: parse error before `*'
>xdb_sql_odbc.c:51: parse error before `*'
>xdb_sql_odbc.c:66: parse error before `Tuple'
>xdb_sql_odbc.c:66: warning: no semicolon at end of struct or union
>xdb_sql_odbc.c:69: conflicting types for `field_count'
>xdb_sql_odbc.c:45: previous declaration of `field_count'
>xdb_sql_odbc.c:72: parse error before `}'
>xdb_sql_odbc.c:73: warning: type defaults to `int' in declaration of
>`XdbODBCResult'
>xdb_sql_odbc.c:73: warning: data definition has no type or storage class
>xdb_sql_odbc.c:75: parse error before `*'
>xdb_sql_odbc.c:89: parse error before `*'
>xdb_sql_odbc.c:89: warning: type defaults to `int' in declaration of
>`xdbodbc_query'
>xdb_sql_odbc.c:89: warning: data definition has no type or storage class
>xdb_sql_odbc.c:91: parse error before `*'
>xdb_sql_odbc.c:92: parse error before `*'
>xdb_sql_odbc.c:93: parse error before `*'
>xdb_sql_odbc.c:94: parse error before `*'
>xdb_sql_odbc.c:95: parse error before `*'
>xdb_sql_odbc.c:96: parse error before `*'
>xdb_sql_odbc.c:97: parse error before `*'
>xdb_sql_odbc.c:127: parse error before `s_odbc_message'
>xdb_sql_odbc.c:127: warning: type defaults to `int' in declaration of
>`s_odbc_message'
>xdb_sql_odbc.c:127: warning: data definition has no type or storage class
>xdb_sql_odbc.c: In function `xdbodbc_connect':
>xdb_sql_odbc.c:198: parse error before `)'
>xdb_sql_odbc.c: In function `xdbodbc_is_connected':
>xdb_sql_odbc.c:221: syntax error before `buffer'
>xdb_sql_odbc.c:229: `buffer' undeclared (first use in this function)
>xdb_sql_odbc.c:229: (Each undeclared identifier is reported only once
>xdb_sql_odbc.c:229: for each function it appears in.)
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:259: parse error before `*'
>xdb_sql_odbc.c:259: warning: return-type defaults to `int'
>xdb_sql_odbc.c: In function `xdbodbc_query':
>xdb_sql_odbc.c:261: `res' undeclared (first use in this function)
>xdb_sql_odbc.c:261: warning: statement with no effect
>xdb_sql_odbc.c:264: parse error before `)'
>xdb_sql_odbc.c:285: parse error before `1'
>xdb_sql_odbc.c:292: parse error before `)'
>xdb_sql_odbc.c: In function `xdbodbc_error':
>xdb_sql_odbc.c:312: warning: return from incompatible pointer type
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:318: parse error before `*'
>xdb_sql_odbc.c:325: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_store_result':
>xdb_sql_odbc.c:328: `res' undeclared (first use in this function)
>xdb_sql_odbc.c:359: parse error before `)'
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:391: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_free_result':
>xdb_sql_odbc.c:392: `res' undeclared (first use in this function)
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:409: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_num_tuples':
>xdb_sql_odbc.c:410: `res' undeclared (first use in this function)
>xdb_sql_odbc.c:414: warning: control reaches end of non-void function
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:422: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_num_fields':
>xdb_sql_odbc.c:423: `res' undeclared (first use in this function)
>xdb_sql_odbc.c:427: warning: control reaches end of non-void function
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:434: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_next_tuple':
>xdb_sql_odbc.c:436: `res' undeclared (first use in this function)
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:453: parse error before `*'
>xdb_sql_odbc.c: In function `xdbodbc_get_value':
>xdb_sql_odbc.c:454: `res' undeclared (first use in this function)
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:500: parse error before `*'
>xdb_sql_odbc.c: In function `result_free_data':
>xdb_sql_odbc.c:503: `res' undeclared (first use in this function)
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:519: parse error before `*'
>xdb_sql_odbc.c: In function `tuple_alloc_fields':
>xdb_sql_odbc.c:522: `tuple' undeclared (first use in this function)
>xdb_sql_odbc.c:523: parse error before `)'
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:538: parse error before `*'
>xdb_sql_odbc.c: In function `tuple_get_data':
>xdb_sql_odbc.c:543: `tuple' undeclared (first use in this function)
>xdb_sql_odbc.c:547: parse error before `)'
>xdb_sql_odbc.c:550: `stmt' undeclared (first use in this function)
>xdb_sql_odbc.c:573: parse error before `)'
>xdb_sql_odbc.c: At top level:
>xdb_sql_odbc.c:600: parse error before `*'
>xdb_sql_odbc.c: In function `tuple_free_fields':
>xdb_sql_odbc.c:602: `tuple' undeclared (first use in this function)
>xdb_sql_odbc.c: In function `store_odbc_error':
>xdb_sql_odbc.c:619: `SQLCHAR' undeclared (first use in this function)
>xdb_sql_odbc.c:619: parse error before `state'
>xdb_sql_odbc.c:626: `state' undeclared (first use in this function)
>xdb_sql_odbc.c:627: `msg' undeclared (first use in this function)
>xdb_sql_odbc.c:634: warning: passing arg 1 of `sprintf' from incompatible
>pointer type
>xdb_sql_odbc.c:635: warning: passing arg 1 of `strlen' from incompatible
>pointer type
>xdb_sql_odbc.c:642: warning: passing arg 1 of `strncat' from incompatible
>pointer type
>xdb_sql_odbc.c:645: warning: passing arg 1 of `printf' from incompatible
>pointer type
>make: *** [xdb_sql_odbc.o] Error 1
>==================== compilation log end ====================
>
>
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev
>
>
More information about the JDev
mailing list