Hi Juha,
in order to compile the unixodbc module, you need external package
unixodbc-dev (on Debian). I removed the module from default compiling.
regards,
bogdan
Juha Heinanen wrote:
Bogdan-Andrei Iancu writes:
Marco will maintain the module - I already grant
you CVS access on the
project. Please feel free to work on it.
after unixodbc module was introduced to HEAD, i got the following
compilation errors.
-- juha
Compiling dbase.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
-malign-double -falign-loops -mcpu=athlon -DNAME='"ser"'
-DVERSION='"1.1.0-dev3 "' -DARCH='"i386"'
-DOS='"linux"' -DCOMPILER='"gcc 3.3"' -D__CPU_i386
-D__OS_linux -DCFG_DIR='"/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
-DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DF_MALLOC
-DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DHAVE_GETHOSTBYNAME2
-DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL
-DHAVE_ALLOCA_H -c dbase.c -o dbase.o
In file included from dbase.c:39:
val.h:36:17: sql.h: No such file or directory
val.h:37:20: sqlext.h: No such file or directory
In file included from dbase.c:39:
val.h:50: error: syntax error before '*' token
In file included from dbase.c:40:
my_con.h:40:17: sql.h: No such file or directory
my_con.h:41:20: sqlext.h: No such file or directory
In file included from dbase.c:40:
my_con.h:53: error: syntax error before "SQLHENV"
my_con.h:53: warning: no semicolon at end of struct or union
my_con.h:54: warning: type defaults to `int' in declaration of `stmt_handle'
my_con.h:54: warning: data definition has no type or storage class
my_con.h:55: error: syntax error before "dbc"
my_con.h:55: warning: type defaults to `int' in declaration of `dbc'
my_con.h:55: warning: data definition has no type or storage class
my_con.h:58: error: syntax error before '}' token
my_con.h:79: error: syntax error before "SQLHANDLE"
dbase.c: In function `submit_query':
dbase.c:55: error: dereferencing pointer to incomplete type
dbase.c:57: warning: implicit declaration of function `SQLFreeStmt'
dbase.c:57: error: dereferencing pointer to incomplete type
dbase.c:57: error: `SQL_CLOSE' undeclared (first use in this function)
dbase.c:57: error: (Each undeclared identifier is reported only once
dbase.c:57: error: for each function it appears in.)
dbase.c:58: warning: implicit declaration of function `SQL_SUCCEEDED'
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:60: error: dereferencing pointer to incomplete type
dbase.c:61: error: dereferencing pointer to incomplete type
dbase.c:61: error: `SQL_HANDLE_DBC' undeclared (first use in this function)
dbase.c:65: warning: implicit declaration of function `SQLAllocStmt'
dbase.c:65: error: dereferencing pointer to incomplete type
dbase.c:65: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:68: error: dereferencing pointer to incomplete type
dbase.c:69: error: dereferencing pointer to incomplete type
dbase.c:72: warning: implicit declaration of function `SQLExecDirect'
dbase.c:72: error: dereferencing pointer to incomplete type
dbase.c:72: error: `SQLCHAR' undeclared (first use in this function)
dbase.c:72: error: syntax error before ')' token
dbase.c:76: error: dereferencing pointer to incomplete type
dbase.c: At top level:
dbase.c:121: error: syntax error before '*' token
dbase.c: In function `print_values':
dbase.c:125: error: `_c' undeclared (first use in this function)
dbase.c:125: error: `_b' undeclared (first use in this function)
dbase.c:125: error: `_l' undeclared (first use in this function)
dbase.c:125: error: `_v' undeclared (first use in this function)
dbase.c:125: error: `_n' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:152: error: syntax error before '*' token
dbase.c: In function `print_where':
dbase.c:158: error: `_c' undeclared (first use in this function)
dbase.c:158: error: `_b' undeclared (first use in this function)
dbase.c:158: error: `_l' undeclared (first use in this function)
dbase.c:158: error: `_k' undeclared (first use in this function)
dbase.c:158: error: `_v' undeclared (first use in this function)
dbase.c:158: error: `_n' undeclared (first use in this function)
dbase.c:166: error: `_o' undeclared (first use in this function)
dbase.c: At top level:
dbase.c:198: error: syntax error before '*' token
dbase.c: In function `print_set':
dbase.c:204: error: `_c' undeclared (first use in this function)
dbase.c:204: error: `_b' undeclared (first use in this function)
dbase.c:204: error: `_l' undeclared (first use in this function)
dbase.c:204: error: `_k' undeclared (first use in this function)
dbase.c:204: error: `_v' undeclared (first use in this function)
dbase.c:204: error: `_n' undeclared (first use in this function)
dbase.c: In function `db_free_result':
dbase.c:368: warning: implicit declaration of function `SQLFreeHandle'
dbase.c:368: error: `SQL_HANDLE_STMT' undeclared (first use in this function)
dbase.c:368: error: dereferencing pointer to incomplete type
dbase.c:369: error: dereferencing pointer to incomplete type
dbase.c: In function `db_query':
dbase.c:422: error: dereferencing pointer to incomplete type
dbase.c: In function `db_insert':
dbase.c:498: error: dereferencing pointer to incomplete type
dbase.c: In function `db_delete':
dbase.c:545: error: dereferencing pointer to incomplete type
dbase.c: In function `db_update':
dbase.c:589: error: dereferencing pointer to incomplete type
dbase.c:599: error: dereferencing pointer to incomplete type
dbase.c: In function `db_replace':
dbase.c:643: error: dereferencing pointer to incomplete type
make[2]: *** [dbase.o] Error 1