Re: Compiling error on Ubuntu

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4eaXRMiY1-yatv4TrqZJodADTMEvmkzKhY24-iM8uOuUg@mail.gmail.com>
2015-01-30 0:36 GMT+00:00  <[email protected]>:
> 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&acute;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


Hi Federico,
  it's a known old issue. Yesterday I just fixed snapshot creation.
Could you try download again last snapshot (current on
http://www.freetds.org/software.html) ?

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.