Skip to Content.
Sympa Menu

freetds - Re: [freetds] can't build dll with gnutls on Windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Glenn Campbell <campbellg AT teds.com>
  • To: FreeTDS Development Group <freetds AT mailman1.ibiblio.org>
  • Subject: Re: [freetds] can't build dll with gnutls on Windows
  • Date: Tue, 11 Jul 2017 15:42:26 +0000

I've been pulled off of this project but when/if I get back to it and work
out the detailed steps for producing the windows dll via MinGW I'll be sure
to post those steps here. Assuming cmake hasn't been updated by then.
Thanks for the assistance.

On Fri, Jun 9, 2017 at 12:02 PM Glenn Campbell <campbellg AT teds.com> wrote:

> The decision to use GnuTLS rather than OpenSSL wasn't a technical one. I'm
> working to convince the decision makers in my organization to approve the
> use of FreeTDS+OpenSSL. We used GnuTLS several years ago with an old
> version of FreeTDS so I don't need approval to use it with the current
> version of FreeTDS. But until I get approval to use OpenSSL I'm continuing
> to try to get FreeTDS+GnuTLS working.
>
> I've continued my attempts at building with MinGW and I'm getting a little
> further. Here's my current state:
> 1) The GnuTLS docs say that it depends on nettle and gmplib so I
> downloaded the source for those and did the "./configure make make check
> make install" for both of them. No problems there.
> 2) I downloaded the source for GnuTLS and when I run "./configure" it told
> me that it couldn't find Nettle 3.1.
> 3) The first problem appeared to be that my MinGW installation didn't have
> pkg-config so I downloaded pkg-config-lite and copied the pkg-config.exe to
> the MinGW bin directory. But it still told me that I didn't have Nettle
> 3.1.
> 4) I set the env variable PKG_CONFIG_PATH to the location where nettle.pc
> was located and tried "./configure" again. Then it reported that gmp was
> not found.
> 5) I set the env variable LDFLAGS to the location where the libgmp.a and
> libgmp.la files were located and tried "./configure" again. Then it said
> that libtasn1 4.9 wasn't found but I could use --with-included-libtasn1.
> 6) I tried "./configure --with-included-libtasn1". Then it said that
> libunistring wasn't found but I could use --with-included-unistring.
> 7) I tried "./configure --with-included-libtasn1
> --with-included-unistring". Now I get an error that says p11-kit wasn't
> found.
>
> I can keep chasing these problems but it feels like all of this shouldn't
> be necessary. Am I missing something in my MinGW installation? Some other
> configuration problem?
>
> I realize that I haven't even gotten to the FreeTDS part of this but any
> thoughts or suggestions would be appreciated.
>
> Thanks in advance.
>
> On Thu, Jun 8, 2017 at 6:30 AM Frediano Ziglio <freddy77 AT gmail.com> wrote:
>
>> 2017-06-02 12:38 GMT+01:00 Sergio NNX <sfhacker AT hotmail.com>:
>> >> I need a freetds dll that uses gnutls instead of openssl for an old
>> Windows
>> >> application that uses db-library. All of the pre-built binaries I've
>> found
>> >> use openssl instead of gnutls. I attempted to build it myself but
>> >> unfortunately I haven't been able to do so.
>> >
>> > I've read on several mailing lists that the use of gnuTLS is strongly
>> discouraged!
>> >
>> >
>>
>> Personally I didn't find any recent post about it.
>> From API prospective I prefer GnuTLS, also the choice of algorithms seems
>> better
>> in GnuTLS (OpenSSL keeps old not that secure stuff enabled by default).
>> It seems nobody (me too) tested FreeTDS with GnuTLS under Windows.
>>
>> >> After getting stuck trying to use CMake I decided to try MingW. And
>> when I
>> >> got stuck with MingW I tried Cygwin. My results with both MingW and
>> Cygwin
>> >> were similar. I am unfamiliar with both of them and there appear to be
>> a
>> >> lot of steps I'm missing between "download and install MingW (or
>> Cygwin)"
>> >> and "build the freetds windows dll".
>> >
>> > It sounds really odd that neither VS nor CMake nor MinGW nor Cygwin
>> worked! 😲
>> >
>>
>> Maybe the problem is using GnuTLS on Windows... no idea how to do it.
>> Cygwin is not encouraged at all. I think MinGW means autoconf stuff
>> trying to
>> compile like under Unix.
>> FreeTDS CMake files does not support this kind of configuration so saying
>> that CMake should be used to generate VS project file I think this is the
>> issue
>> with CMake trying Windows+FreeTDS+GnuTLS.
>>
>> >> I could give a try, don't think is too hard but I never used GnuTLS on
>> Windows;
>> >> can you give some advice?
>> > That sounds that it has never been tested?
>> >
>>
>> Yes! But apparently it seems this was never an issue before some weeks
>> ago :-)
>> Not clear why OpenSSL is not a solution in this case.
>> AppVeyor generate binaries for Windows, are these binaries not enough?
>> Maybe the tools (tsql and so on) are missing?
>>
>> >
>> > We have never used gnuTLS but I've already built it from source
>> successfully and now I'm compiling freeTDS from master. So far I can see
>> some 'interesting' things going on. I'll report back soon.
>> >
>> >
>> > Ciao.
>>
>> Ciao,
>> Frediano
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT mailman1.ibiblio.org
>> http://mailman1.ibiblio.org/mailman/listinfo/freetds
>>
>



  • Re: [freetds] can't build dll with gnutls on Windows, Glenn Campbell, 07/11/2017

Archive powered by MHonArc 2.6.24.

Top of Page