Skip to Content.
Sympa Menu

freetds - Re: [freetds] Using gnuTLS

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Tony Baldarelli" <tbaldarelli AT wmsvision.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Using gnuTLS
  • Date: Fri, 8 Apr 2011 16:05:45 -0400

Ok, I found the problem with using gnuTLS with version freetds-0.82. I
missed this error when the configure script ran:
./configure: libgnutls-config: command not found
./configure: libgnutls-config: command not found
The same thing happens with freetds-0.83.dev.20110314 and
freetds-0.82.1.dev.20110306.

This happens because the version of gnuTLS I have does not have this script.
In fact, it says in the "NEWS" file to use pkg-config instead:
1061 *** Old libgnutls.m4 and libgnutls-config scripts removed.
1062 Please use pkg-config instead.
1063
I am using gnutls-2.12.1. According to the change log, we have this
comment:
9842 2008-10-30 Simon Josefsson <simon AT josefsson.org>
9843
9844 * NEWS, configure.in, doc/gnutls.texi, lib/Makefile.am,
9845 lib/libgnutls-config.in, lib/libgnutls.m4,
libextra/.gitignore,
9846 libextra/Makefile.am, libextra/libgnutls-extra-config.in,
9847 libextra/libgnutls-extra.m4: Remove *-config scripts and old
M4
9848 checks.
9849

So unless I am missing something, it is no longer valid to use
"libgnutls-config". Or maybe freetds does not support gnutls-2.12.1, but
only an earlier version?
 
Tony


-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Tony Baldarelli
Sent: Friday, April 08, 2011 12:51 PM
To: 'FreeTDS Development Group'
Subject: [freetds] Using gnuTLS

Hello,
I am trying to run tsql with SSL. As per another conversation,
“tsql with SSL on SQL Server”
(https://lists.ibiblio.org/sympa/arc/freetds/2011q2/026893.html ), we are
trying to get it to work with openssl. This is my preference. But I am
trying to setup freeTDS with gnuTLS at the same time, on the off chance that
we cannot get the openssl method to work. Well, I am running into problems
with the gnuTLS version of freeTDS. Here are the exact steps I took, in the
order I took them in:
1. Ran “make clean”
2. Ran “make distclean”
3. Ran “./configure --with-gnutls”
• No reported problems
• See
https://docs.google.com/leaf?id=0ByXBOuIPIVA0MTg4OTdkMzQtZTMwNy00NjVmLTg1M2M
tZjg2NjU0NzlmYzBh&hl=en&authkey=CPiI2rwL for config.log
• See
https://docs.google.com/leaf?id=0ByXBOuIPIVA0YmM4MDc3NTMtZTM5Yy00MmRkLWJhYzQ
tYzk0MGMxZDBmMjg2&hl=en&authkey=CJ_P-5sL for config.status
4. Ran “make”
• Got below errors:
gcc -pthread -g -O2 -o .libs/fisql fisql.o terminal.o edit.o
handlers.o interrupt.o ../../dblib/.libs/libsybdb.so
../../replacements/.libs/libreplacements.a -lncurses -lreadline -lrt
-Wl,--rpath -Wl,/usr/local/lib
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_record_send'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_handshake'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_transport_set_pull_function'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_global_deinit'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_global_init'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_transport_set_push_function'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_global_set_log_level'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_strerror'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_cipher_set_priority'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_certificate_allocate_credentials'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_mac_set_priority'
../../dblib/.libs/libsybdb.so: undefined reference to `gnutls_init'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_compression_set_priority'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_global_set_log_function'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_certificate_free_credentials'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_kx_set_priority'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_record_recv'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_transport_set_ptr'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_deinit'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_set_default_priority'
../../dblib/.libs/libsybdb.so: undefined reference to
`gnutls_credentials_set'
collect2: ld returned 1 exit status
make[3]: *** [fisql] Error 1
make[3]: Leaving directory
`/home/wms/v9/std/lcn/src/lib/3rdParty/freetds-0.82/src/apps/fisql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/wms/v9/std/lcn/src/lib/3rdParty/freetds-0.82/src/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/wms/v9/std/lcn/src/lib/3rdParty/freetds-0.82/src'
make: *** [all-recursive] Error 1
5. Ran “make > make.log 2>&1” again, to get a log of the make output. See
https://docs.google.com/leaf?id=0ByXBOuIPIVA0N2FhMjBlMDEtOTMzMy00MGZlLWJhZGQ
tOGUyODg3ZGI1NTU2&hl=en&authkey=CMSXk6kI.
6. Did not run “make install” because of above errors

Thanks for your help. Like I said, I would prefer to keep using openssl as
per the other conversation, but I would be remiss if I did not at least look
at the gnuTLS option.
 
Tony



_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds





Archive powered by MHonArc 2.6.24.

Top of Page