Hi!!!!!
I have the next problem: When I try to compile, I obtain the next error:
Where and How I can obtain these files (sql.h, sqlext.h) that I need to compile this
module?
Thanks!!!!!
make[1]: Entering directory `/root/OPENSER/openser-1.1.0-notls/modules/unixodbc'
Compiling dbase.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops
-falign-loops -ftree-vectorize -mtune=athlon64 -DNAME='"openser"'
-DVERSION='"1.1.0-notls"' -DARCH='"i386"'
-DOS='"linux"' -DCOMPILER='"gcc 4.1.0"' -D__CPU_i386
-D__OS_linux -D__SMP_no -DCFG_DIR='"/usr/local/etc/openser/"'
-DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DF_MALLOC -DSTATISTICS -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 -DHAVE_TIMEGM -DHAVE_EPOLL
-DHAVE_SIGIO_RT -DHAVE_SELECT -I/usr/local/include -c dbase.c -o dbase.o
In file included from dbase.c:44:
val.h:36:17: error: sql.h: No such file or directory
val.h:37:20: error: sqlext.h: No such file or directory
In file included from dbase.c:44:
val.h:50: error: expected â)â before â*â token
In file included from dbase.c:45:
my_con.h:57: error: expected specifier-qualifier-list before âSQLHENVâ
my_con.h:87: error: expected declaration specifiers or â...â before âSQLHANDLEâ
my_con.h:87: error: expected declaration specifiers or â...â before âSQLSMALLINTâ
dbase.c: In function âreconnectâ:
dbase.c:60: error: âSQLCHARâ undeclared (first use in this function)
dbase.c:60: error: (Each undeclared identifier is reported only once
dbase.c:60: error: for each function it appears in.)
dbase.c:60: error: expected â;â before âoutstrâ
dbase.c:61: error: âSQLSMALLINTâ undeclared (first use in this function)
dbase.c:61: error: expected â;â before âoutstrlenâ
dbase.c:67: warning: implicit declaration of function âSQLDisconnectâ
dbase.c:67: error: âstruct my_conâ has no member named âdbcâ
dbase.c:76: warning: implicit declaration of function âSQLDriverConnectâ
dbase.c:76: error: âstruct my_conâ has no member named âdbcâ
dbase.c:77: error: expected expression before â)â token
dbase.c:79: warning: implicit declaration of function âSQL_SUCCEEDEDâ
dbase.c:81: error: âstruct my_conâ has no member named âdbcâ
dbase.c:82: error: âSQL_HANDLE_DBCâ undeclared (first use in this function)
dbase.c:82: error: too many arguments to function âextract_errorâ
dbase.c:86: warning: implicit declaration of function âSQLAllocHandleâ
dbase.c:86: error: âSQL_HANDLE_STMTâ undeclared (first use in this function)
dbase.c:86: error: âstruct my_conâ has no member named âdbcâ
dbase.c:87: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:89: error: âstruct my_conâ has no member named âdbcâ
dbase.c:91: error: âstruct my_conâ has no member named âdbcâ
dbase.c:91: error: too many arguments to function âextract_errorâ
dbase.c: In function âsubmit_queryâ:
dbase.c:104: error: âSQLCHARâ undeclared (first use in this function)
dbase.c:104: error: expected â;â before âsqlstateâ
dbase.c:107: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:109: warning: implicit declaration of function âSQLCloseCursorâ
dbase.c:109: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:110: warning: implicit declaration of function âSQLFreeHandleâ
dbase.c:110: error: âSQL_HANDLE_STMTâ undeclared (first use in this function)
dbase.c:110: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:113: error: âstruct my_conâ has no member named âdbcâ
dbase.c:113: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:116: error: âstruct my_conâ has no member named âdbcâ
dbase.c:118: error: âstruct my_conâ has no member named âdbcâ
dbase.c:118: error: âSQL_HANDLE_DBCâ undeclared (first use in this function)
dbase.c:119: error: âsqlstateâ undeclared (first use in this function)
dbase.c:119: error: too many arguments to function âextract_errorâ
dbase.c:131: warning: implicit declaration of function âSQLExecDirectâ
dbase.c:131: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:131: error: expected expression before â)â token
dbase.c:134: error: expected â;â before âsqlstateâ
dbase.c:136: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:137: error: too many arguments to function âextract_errorâ
dbase.c:147: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:147: error: expected expression before â)â token
dbase.c:151: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:152: error: too many arguments to function âextract_errorâ
dbase.c:154: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:155: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:162: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:163: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c: At top level:
dbase.c:209: error: expected â)â before â*â token
dbase.c:240: error: expected â)â before â*â token
dbase.c:286: error: expected â)â before â*â token
dbase.c: In function âdb_free_resultâ:
dbase.c:451: error: âSQL_HANDLE_STMTâ undeclared (first use in this function)
dbase.c:451: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c:452: error: âstruct my_conâ has no member named âstmt_handleâ
dbase.c: In function âdb_queryâ:
dbase.c:505: warning: implicit declaration of function âprint_whereâ
dbase.c:505: error: âstruct my_conâ has no member named âdbcâ
dbase.c: In function âdb_insertâ:
dbase.c:581: warning: implicit declaration of function âprint_valuesâ
dbase.c:581: error: âstruct my_conâ has no member named âdbcâ
dbase.c: In function âdb_deleteâ:
dbase.c:628: error: âstruct my_conâ has no member named âdbcâ
dbase.c: In function âdb_updateâ:
dbase.c:672: warning: implicit declaration of function âprint_setâ
dbase.c:672: error: âstruct my_conâ has no member named âdbcâ
dbase.c:683: error: âstruct my_conâ has no member named âdbcâ
dbase.c: In function âdb_replaceâ:
dbase.c:727: error: âstruct my_conâ has no member named âdbcâ
make[1]: *** [dbase.o] Error 1
make[1]: Leaving directory `/root/OPENSER/openser-1.1.0-notls/modules/unixodbc'
---------------------------------
Do You Yahoo!? La mejor conexión a Internet y 2GB extra a tu correo por $100 al mes.
http://net.yahoo.com.mx