[Help-gnutls] Re: gnutls 2.3.4 doesn't copile using MinGW

Simon Josefsson simon at josefsson.org
Mon Apr 21 13:19:51 CEST 2008


Massimo Gaspari <massimo.gaspari at alice.it> writes:

> I got the gnuttls-20080417.tar.gz archive and I have some good news
> and some bad news.
>
> The good news are that now gnutls can be compiled "out-of-the-box" and
> that "make check" terminates successfully (no errors!!!)
> You did a very good patching.

That's good.  Thanks.

> There is still the "documentation-building-issue" when you compile
> twice or more times. Ok, I'll compile only once! :-)

Hm.  I'll see if I can reproduce this.

> The bad news are

Some of these should be fixed in updated:

http://daily.josefsson.org/gnutls/gnutls-20080421.tar.gz

Please let me know what still fails.  It seems we are now almost
finished, so I should make another release and you can do final testing
of it.

>>> So the alloca isssue disappeared.
>>>     
>>
>> Yes, I removed all uses of alloca in the code, see the NEWS file.
>
> Unfortunatley it's not true. In a previous post I said that the issue
> was fixed. Because I checked the warnings I previously recorded. They
> disappeared (for example x509.c has no warnings) for some files but
> not for all sources.
>
> There are three  warnings (in both 2.3.6 and gnttls-20080417.tar.gz) I
> missed to report. I apologize for that! They are
...
> make[3]: Entering directory `/home/emasgas/gnutls-2.3.7/lib/minitasn1'
...

Those were in libtasn1, so I made a new release of it with a similar
fix, and then updated the internal copy of libtasn1 inside gnutls.

> I 'm listing all the warnings I get (hopefully is a full list). I
> think the "alloca" ones deserve to be fixed. The other warnings are
> related to examples or tests. May be they don't deserve fixing.

>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes
> -I../lgl -I../lgl -I../gl -I../gl -I./cfg  -pipe -I/usr/local/include
> -O2 -Wno-pointer-sign -MT serv.o -MD -MP -MF .deps/serv.Tpo -c -o
> serv.o serv.c
> serv.c: In function 'main':
> serv.c:1044: warning: implicit declaration of function '_win_select'
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes
> -I../lgl -I../lgl -I../gl -I../gl -I./cfg  -pipe -I/usr/local/include
> -O2 -Wno-pointer-sign -MT cli.o -MD -MP -MF .deps/cli.Tpo -c -o cli.o
> cli.c
> cli.c: In function 'main':
> cli.c:709: warning: implicit declaration of function '_win_select'
> mv -f .deps/cli.Tpo .deps/cli.Po

Missing prototype, fixed.

> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes
> -I../lgl -I../lgl -I../gl -I../gl -I./cfg  -pipe -I/usr/local/include
> -O2 -Wno-pointer-sign -MT psk-gaa.o -MD -MP -MF .deps/psk-gaa.Tpo -c
> -o 
> psk-gaa.o psk-gaa.c
> psk.gaa: In function 'gaa':
> psk.gaa:28: warning: assignment makes integer from pointer without a cast
> mv -f .deps/psk-gaa.Tpo .deps/psk-gaa.Po
>
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes
> -I../lgl -I../lgl -I../gl -I../gl -I./cfg  -pipe -I/usr/local/include
> -O2 -Wno-pointer-sign -MT psk-gaa.o -MD -MP -MF .deps/psk-gaa.Tpo -c
> -o 
> psk-gaa.o psk-gaa.c
> psk.gaa: In function 'gaa':
> psk.gaa:28: warning: assignment makes integer from pointer without a cast
> mv -f .deps/psk-gaa.Tpo .deps/psk-gaa.Po

Silly error, fixed too.

>
> mv -f .deps/tls_test.Tpo .deps/tls_test.Po
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..  -I../includes -I../includes
> -I../lgl -I../lgl -I../gl -I../gl -I./cfg  -pipe -I/usr/local/include
> -O2 -Wno-pointer-sign -MT tests.o -MD -MP -MF .deps/tests.Tpo -c -o 
> tests.o tests.c
> tests.c: In function 'test_bye':
> tests.c:518: warning: passing argument 1 of 'setsockopt' makes integer
> from pointer without a cast
> mv -f .deps/tests.Tpo .deps/tests.Po

Should be fixed, please confirm.

> tcp.c:41: warning: implicit declaration of function 'inet_pton'
> ex-serv1.c:150: warning: implicit declaration of function 'inet_ntop'

Problem in gnulib, I'll see if I can get these fixed.  I don't think
this is important though.

> ex-serv1.c:133: warning: passing argument 4 of 'setsockopt' from
> incompatible pointer type

Probably a buggy system header file, the argument should be 'void*'
which should be castable from any type.

> /bin/sh ../libtool --tag=CC   --mode=compile gcc -std=gnu99
> -DHAVE_CONFIG_H -I. -I..  -I../lgl -I../lgl -I../gl -I../gl
> -I../includes -I../includes -I../doc/examples  -pipe
> -I/usr/local/include -O2 -Wno-pointer-sign -MT utils.lo -MD -MP -MF
> .deps/utils.Tpo -c -o utils.lo utils.c
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../lgl -I../lgl -I../gl
> -I../gl -I../includes -I../includes -I../doc/examples -pipe
> -I/usr/local/include -O2 -Wno-pointer-sign -MT utils.lo -MD -MP -MF
> .deps/utils.Tpo -c utils.c -o utils.o
> mv -f .deps/utils.Tpo .deps/utils.Plo
> /bin/sh ../libtool --tag=CC   --mode=link gcc -std=gnu99 -pipe
> -I/usr/local/include -O2 -Wno-pointer-sign -no-install  -o libutils.la
> utils.lo libtool: link: warning: `-no-install' is ignored for
> i686-pc-mingw32
> libtool: link: warning: assuming `-no-fast-install' instead

I have no idea what this warning is about, it can probably be ignored.

/Simon





More information about the Gnutls-help mailing list