Compiling error on Ubuntu
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <20150129173609.634bca34b52c4f6bbfcba067e6079228.356515d492.mailapi@email01.secureserver.net> |
I am compiling freetds from CVS like this
./configure --prefix= --with-tdsver=8.0 --enable-msdblib --with-unixodbc=$(odbc_config --prefix) --enable-krb5
the configure command runs fine, but the make fails, as below
/bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/include/krb5 -I/usr/include/et -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I//include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -pthread -g -O2 -Wdeclaration-after-statement -MT gssapi.lo -MD -MP -MF .deps/gssapi.Tpo -c -o gssapi.lo gssapi.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../include -I../../include -I/usr/include/krb5 -I/usr/include/et -DUNIXODBC -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG_INT=8 -I//include -D_REENTRANT -D_THREAD_SAFE -DDEBUG=1 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long -pthread -g -O2 -Wdeclaration-after-statement -MT gssapi.lo -MD -MP -MF .deps/gssapi.Tpo -c gssapi.c -fPIC -DPIC -o .libs/gssapi.o
gssapi.c:259:1: error: conflicting types for 'error_message'
error_message(OM_uint32 e)
^
In file included from gssapi.c:57:0:
/usr/include/et/com_err.h:38:20: note: previous declaration of 'error_message' was here
extern char const *error_message (long);
^
make[4]: *** [gssapi.lo] Error 1
make[4]: Leaving directory `/usr/src/freetds/src/tds'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/freetds/src/tds'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/freetds/src/tds'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/freetds/src'
make: *** [all-recursive] Error 1
if I do not add kerberos to the configure, it does work,
Compile-time settings (established with the "configure" script)
Version: freetds v0.92.dev.20150129
freetds.conf directory: /etc
MS db-lib source compatibility: yes
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 5.0
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: no
However I cannot make unixODBC connect to MS SQL. Tsql, does connect fine. Maybe I don´t need kerberos, but, how do I troubleshoot unixodbc with freetds?
I am using of course an entry in freetds.conf with
tds version = 8.0
Yours
Federico