freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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 17:37:02 -0400
If it helps anyone, I finally got 0.82 to compile with gnuTLS with the help
of this post: http://comments.gmane.org/gmane.comp.db.tds.freetds/12919
I did the following things:
1. Installed a later version of pkg-config ( one machine had 0.5, the other
had 0.14, so I installed pkg-config-0.20 on both machines )
2. Installed zlib ( for some reason pkg-config needed it ). One machine did
not have it, the other had an older version, so just installed zlib-1.2.5 on
both machines
3. Change configure script for freetds-0.82 as defined in the above post (
see diff below )
[root@wms161 freetds-0.82]# diff configure.bak configure
22581,22582c22581,22584
< CPPFLAGS="$CPPFLAGS `libgnutls-config --cflags`"
< NETWORK_LIBS="$NETWORK_LIBS `libgnutls-config --libs`"
---
> ## Obsolete call to libgnutls-config##CPPFLAGS="$CPPFLAGS
`libgnutls-config --cflags`"
> ## Obsolete call to
libgnutls-config##NETWORK_LIBS="$NETWORK_LIBS `libgnutls-config --libs`"
> CPPFLAGS="$CPPFLAGS `pkg-config --cflags gnutls`"
> NETWORK_LIBS="$NETWORK_LIBS `pkg-config --libs gnutls`"
[root@wms161 freetds-0.82]#
4. Ran ./configure with-gnutls;make;make install and did not have any
problems.
I hope that helps someone besides just me.
Tony
-----Original Message-----
From: Tony Baldarelli [mailto:tbaldarelli AT wmsvision.com]
Sent: Friday, April 08, 2011 4:06 PM
To: 'FreeTDS Development Group'
Subject: RE: [freetds] Using gnuTLS
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
-
Re: [freetds] Using gnuTLS
, (continued)
-
Re: [freetds] Using gnuTLS,
Ken Collins, 04/08/2011
- Re: [freetds] Using gnuTLS, Tony Baldarelli, 04/08/2011
- Re: [freetds] Using gnuTLS, Tony Baldarelli, 04/08/2011
-
Re: [freetds] Using gnuTLS,
Tony Baldarelli, 04/09/2011
- Re: [freetds] Using gnuTLS, Ken Collins, 04/09/2011
- Re: [freetds] Using gnuTLS, Tony Baldarelli, 04/10/2011
- Re: [freetds] Using gnuTLS, Tony Baldarelli, 04/10/2011
- Re: [freetds] Using gnuTLS, Frediano Ziglio, 04/11/2011
- Re: [freetds] Using gnuTLS, Tony Baldarelli, 04/11/2011
-
Re: [freetds] Using gnuTLS,
Ken Collins, 04/08/2011
Archive powered by MHonArc 2.6.24.