freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddy77 AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Using gnuTLS
- Date: Mon, 11 Apr 2011 16:01:36 +0200
2011/4/10 Tony Baldarelli <tbaldarelli AT wmsvision.com>:
>
> It still does not compile. Part of the reason it does not compile is
> because "challenge.c" does not "#include <openssl/rand.h>", although this is
> actually a minor reason. I think the true reason is that we have MD4_CTX
> and MD5_CTX defined in two places, and they conflict. For some reason 0.82
> uses the md4.h and md5.h provided with freetds, but 0.91 uses the openssl
> version of md4.h and md5.h. At least that is what seems to be happening,
> based on the fact that 0.82 compiles without any problems, but no matter
> what I do 0.91 does not compile. Any suggestions?
>
Should work now (you can grab challenge.c file from
http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/src/tds/challenge.c?revision=1.47.2.1).
Frediano
> /usr/local/ssl/include/openssl/md4.h:105: conflicting types for `MD4_CTX'
> ../../include/md4.h:22: previous declaration of `MD4_CTX'
> In file included from /usr/local/ssl/include/openssl/evp.h:84,
> from /usr/local/ssl/include/openssl/x509.h:67,
> from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> /usr/local/ssl/include/openssl/md5.h:105: conflicting types for `MD5_CTX'
> ../../include/md5.h:24: previous declaration of `MD5_CTX'
> In file included from /usr/local/ssl/include/openssl/ui_compat.h:63,
> from /usr/local/ssl/include/openssl/des_old.h:439,
> from /usr/local/ssl/include/openssl/des.h:101,
> from /usr/local/ssl/include/openssl/evp.h:93,
> from /usr/local/ssl/include/openssl/x509.h:67,
> from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/rsa.h:62,
> from /usr/local/ssl/include/openssl/evp.h:137,
> from /usr/local/ssl/include/openssl/x509.h:67,
> from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/evp.h:137,
> from /usr/local/ssl/include/openssl/x509.h:67,
> from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/x509.h:67,
> from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/ssl.h:177,
> from challenge.c:49:
> In file included from /usr/local/ssl/include/openssl/ssl.h:318,
> from challenge.c:49:
> In file included from challenge.c:49:
> In file included from challenge.c:49:
> challenge.c: In function `make_ntlm_hash':
> challenge.c:184: warning: passing arg 1 of `MD4Init' from incompatible
> pointer type
> challenge.c:185: warning: passing arg 1 of `MD4Update' from incompatible
> pointer type
> challenge.c:186: warning: passing arg 1 of `MD4Final' from incompatible
> pointer type
> challenge.c: In function `tds_answer_challenge':
> challenge.c:347: warning: passing arg 1 of `MD5Init' from incompatible
> pointer type
> challenge.c:348: warning: passing arg 1 of `MD5Update' from incompatible
> pointer type
> challenge.c:349: warning: passing arg 1 of `MD5Update' from incompatible
> pointer type
> challenge.c:350: warning: passing arg 1 of `MD5Final' from incompatible
> pointer type
> make[4]: *** [challenge.lo] Error 1
>
>
> Tony Baldarelli
> Email: tbaldarelli AT wmsvision.com
> Yahoo IM: tonybaldarelli ( my preferred IM )
> Google IM: tony.baldarelli
> MSN IM: tonybaldarelli
> 1016 Copeland Oak Dr
> Morrisville, NC 27560 USA
> Phone: 919-863-3388 x224
> Fax: 919-863-3389
>
>
> -----Original Message-----
> From: Tony Baldarelli [mailto:tbaldarelli AT wmsvision.com]
> Sent: Sunday, April 10, 2011 3:59 PM
> To: 'FreeTDS Development Group'
> Subject: RE: [freetds] Using gnuTLS
>
> Well, I have tried "./configure --with-openssl", "./configure
> --with-openssl=/usr/local/ssl", and "./configure --with-openssl=/usr/local"
> with freetds-0.92.dev.20110409, and none of them have even compiled on my
> system. Please note that prior versions do compile with openssl ( they just
> don't work with SQL Server using SSL ). As such, my system is setup so that
> it should compile. This leaves 2 options:
> 1. A new required was added to 0.92 ( the one I downloaded the other night
> ) that prevents me from compiling it. If this is the case, then it is not
> obvious what I need to install to fix it.
> 2. This version has not been tested or compiled on enough systems.
>
> Since this is not the stable release, I am not really surprised I am having
> problems. Note that the one I downloaded is almost certainly not the one
> you refer to below as it is version 0.92, and you refer to version 0.91RC1.
> As such, I bet I need to poke around and find the same version you refer to
> below. And I think I found it at
> http://www.ibiblio.org/pub/Linux/ALPHA/freetds/stable/release_candidates/.
> So I am going to try it and see if I get better results. Thanks so much for
> telling me the version, Ken. That really helped a lot.
>
> Side issue, but I don't even have /opt/local. So if it seems like I am
> ignoring that small point, I am not.
>
> Thanks again. Hopefully this will work.
>
>
> Tony
>
>
> -----Original Message-----
> From: freetds-bounces AT lists.ibiblio.org
> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Ken Collins
> Sent: Saturday, April 09, 2011 10:52 PM
> To: FreeTDS Development Group
> Subject: Re: [freetds] Using gnuTLS
>
>
> Tony,
>
> I just tested the 0.91RC1 and it compiles fine for me
> --with-openssl=/opt/local just fine for me.
>
>
> - Ken
>
> On Apr 9, 2011, at 9:35 PM, Tony Baldarelli wrote:
>
>> Ken,
>> It occurred to me that you are probably using a different snapshot
>> then I am, which is why you had no problems. I am currently using one I
>> just downloaded, called "freetds-0.92.dev.20110409", and whether I
> configure
>> it with "./configure --with-openssl" or "./configure
>> --with-openssl=/usr/local/ssl", it will not compile. As such, since we
> know
>> the snapshot you used compiled and works for you, per chance can you put
> it
>> someplace where I can download it? That is assuming you still have it, of
>> course. Because the last 2 "current" snapshots I have tried have not even
>> compiled on my system when I use "openssl". Thanks for your time. I
>> appreciate it.
>>
>>
>> Tony
>>
>>
>> -----Original Message-----
>> From: freetds-bounces AT lists.ibiblio.org
>> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Ken Collins
>> Sent: Friday, April 08, 2011 1:54 PM
>> To: FreeTDS Development Group
>> Subject: Re: [freetds] Using gnuTLS
>>
>>
>> I think you have the config option format wrong. It should include a dir.
> My
>> port file includes my port prefix, in this case /op/local. Change that to
>> your needs.
>>
>> --with-openssl=/opt/local
>>
>>
>> On Apr 8, 2011, at 1:46 PM, Tony Baldarelli wrote:
>>
>>> Doesn't compile, but I will keep playing with it to see if I can get it
> to
>>> work. I did the following steps:
>>> 1. Ran "./configure --with-openssl"
>>> 2. Ran "make"
>>> 3. Ran "make install"
>>>
>>> I then ran "make clean" and "make distclean" to start from scratch. Then
>> I
>>> reran steps 1 and 2. I think these two errors are the root cause of the
>>> compile failure. I guess the older version does not have this problem
>>> because it compiled fine.
>>> challenge.c: In function `generate_random_buffer':
>>> challenge.c:152: warning: implicit declaration of function `RAND_bytes'
>>> challenge.c:154: warning: implicit declaration of function
>>> `RAND_pseudo_bytes'
>>>
>>> Anyway, I guess I will wait to see if the new patch for 0.82 fixes my SSL
>>> issue.
>>>
>>>
>>> Tony
>>>
>>>
>>> -----Original Message-----
>>> From: freetds-bounces AT lists.ibiblio.org
>>> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Ken Collins
>>> Sent: Friday, April 08, 2011 1:07 PM
>>> To: FreeTDS Development Group
>>> Subject: Re: [freetds] Using gnuTLS
>>>
>>>
>>> I used this.
>>>
> http://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/current/freetds-current.tgz
>>>
>>> On Apr 8, 2011, at 1:03 PM, Tony Baldarelli wrote:
>>>
>>>> Thanks for the information. The latest version I see is 0.82 ( at
>>>> http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/ ). So where did you
>>> get
>>>> a later version? There is a patch in that directory, but it is for
>>> version
>>>> 0.82 ( I know this because I downloaded it today and last night and
> tried
>>> it
>>>> with openssl ). Currently Freddy is helping me with that patch and
>>>> hopefully it will be fixed soon, but I was just a little surprised I
>> could
>>>> not see any version later than 0.82 when you refer to version 0.83.
>>> Thanks
>>>> for your time.
>>>>
>>>>
>>>> Tony
>>>>
>>>>
>>>> -----Original Message-----
>>>> From: freetds-bounces AT lists.ibiblio.org
>>>> [mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Ken Collins
>>>> Sent: Friday, April 08, 2011 12:56 PM
>>>> To: FreeTDS Development Group
>>>> Subject: Re: [freetds] Using gnuTLS
>>>>
>>>>
>>>> I can share that the latest 0.83.dev (0.91) works with OpenSSL 1.0.0c
> for
>>> me
>>>> just find. It was necessary to connect to Azure and it just worked.
>>>>
>>>> - Ken
>>>> _______________________________________________
>>>> FreeTDS mailing list
>>>> FreeTDS AT lists.ibiblio.org
>>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>>>
>>>> _______________________________________________
>>>> FreeTDS mailing list
>>>> FreeTDS AT lists.ibiblio.org
>>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>>
>>> _______________________________________________
>>> FreeTDS mailing list
>>> FreeTDS AT lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>>
>>> _______________________________________________
>>> FreeTDS mailing list
>>> FreeTDS AT lists.ibiblio.org
>>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>>
>> _______________________________________________
>> FreeTDS mailing list
>> FreeTDS AT lists.ibiblio.org
>> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>
-
Re: [freetds] Using gnuTLS
, (continued)
-
Re: [freetds] Using gnuTLS,
Tony Baldarelli, 04/08/2011
-
Re: [freetds] Using gnuTLS,
Ken Collins, 04/08/2011
-
Re: [freetds] Using gnuTLS,
Tony Baldarelli, 04/08/2011
-
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
-
Re: [freetds] Using gnuTLS,
Tony Baldarelli, 04/08/2011
-
Re: [freetds] Using gnuTLS,
Ken Collins, 04/08/2011
-
Re: [freetds] Using gnuTLS,
Tony Baldarelli, 04/08/2011
Archive powered by MHonArc 2.6.24.