[Help-gnutls] Re: gnutls 2.3.4 doesn't copile using MinGW
Massimo Gaspari
massimo.gaspari at alice.it
Fri Apr 18 23:01:59 CEST 2008
Simon Josefsson wrote:
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.
There is still the "documentation-building-issue" when you compile twice
or more times. Ok, I'll compile only once! :-)
The bad news are
>> 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'
/bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl -I../../lgl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT decoding.lo -MD -MP -MF
.deps/decoding.Tpo -c -o decoding.lo decoding.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl
-I../../lgl -pipe -I/usr/local/include -O2 -Wno-pointer-sign -MT
decoding.lo -MD -MP -MF .deps/decoding.Tpo -c decoding.c -o decoding.o
decoding.c: In function '_asn1_get_octet_string':
decoding.c:621: warning: implicit declaration of function 'alloca'
decoding.c:621: warning: incompatible implicit declaration of built-in
function 'alloca'
decoding.c: In function 'asn1_der_decoding':
decoding.c:1196: warning: incompatible implicit declaration of built-in
function 'alloca'
decoding.c:1225: warning: incompatible implicit declaration of built-in
function 'alloca'
decoding.c: In function 'asn1_der_decoding_element':
decoding.c:1882: warning: incompatible implicit declaration of built-in
function 'alloca'
decoding.c:1919: warning: incompatible implicit declaration of built-in
function 'alloca'
mv -f .deps/decoding.Tpo .deps/decoding.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl -I../../lgl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT element.lo -MD -MP -MF
.deps/element.Tpo -c -o element.lo element.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl
-I../../lgl -pipe -I/usr/local/include -O2 -Wno-pointer-sign -MT
element.lo -MD -MP -MF .deps/element.Tpo -c element.c -o element.o
element.c: In function 'asn1_write_value':
element.c:353: warning: implicit declaration of function 'alloca'
element.c:353: warning: incompatible implicit declaration of built-in
function 'alloca'
element.c:373: warning: incompatible implicit declaration of built-in
function 'alloca'
element.c:392: warning: incompatible implicit declaration of built-in
function 'alloca'
element.c:421: warning: incompatible implicit declaration of built-in
function 'alloca'
mv -f .deps/element.Tpo .deps/element.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl -I../../lgl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT coding.lo -MD -MP -MF
.deps/coding.Tpo -c -o coding.lo coding.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../lib -I../../lgl
-I../../lgl -pipe -I/usr/local/include -O2 -Wno-pointer-sign -MT
coding.lo -MD -MP -MF .deps/coding.Tpo -c coding.c -o coding.o
coding.c: In function '_asn1_objectid_der':
coding.c:263: warning: implicit declaration of function 'alloca'
coding.c:263: warning: incompatible implicit declaration of built-in
function 'alloca'
coding.c: In function '_asn1_ordering_set':
coding.c:639: warning: incompatible implicit declaration of built-in
function 'alloca'
coding.c:680: warning: incompatible implicit declaration of built-in
function 'alloca'
coding.c: In function '_asn1_ordering_set_of':
coding.c:753: warning: incompatible implicit declaration of built-in
function 'alloca'
coding.c:818: warning: incompatible implicit declaration of built-in
function 'alloca'
mv -f .deps/coding.Tpo .deps/coding.Plo
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
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
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
mv -f .deps/ex-verify.Tpo .deps/ex-verify.Plo
/bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99
-DHAVE_CONFIG_H -I. -I../.. -I../../includes -I../../includes
-I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT tcp.lo -MD -MP -MF
.deps/tcp.Tpo -c -o tcp.lo tcp.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT tcp.lo -MD -MP -MF
.deps/tcp.Tpo -c tcp.c -o tcp.o
tcp.c: In function 'tcp_connect':
tcp.c:41: warning: implicit declaration of function 'inet_pton'
mv -f .deps/tcp.Tpo .deps/tcp.Plo
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -no-install -o
libexamples.la ex-alert.lo ex-pkcs12.lo ex-rfc2818.lo
ex-session-info.lo ex-x509-info.lo ex-verify.lo tcp.lo
libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32
libtool: link: warning: assuming `-no-fast-install' instead
mkdir .libs
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT ex-serv1.o -MD -MP -MF
.deps/ex-serv1.Tpo -c -o ex-serv1.o ex-serv1.c
ex-serv1.c: In function 'main':
ex-serv1.c:133: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type
ex-serv1.c:150: warning: implicit declaration of function 'inet_ntop'
mv -f .deps/ex-serv1.Tpo .deps/ex-serv1.Po
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -no-install -o ex-serv1.exe
ex-serv1.o libexamples.la ../../lib/libgnutls.la
../../libextra/libgnutls-extra.la ../../gl/libgnu.la
libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32
libtool: link: warning: assuming `-no-fast-install' instead
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT ex-serv-export.o -MD -MP
-MF .deps/ex-serv-export.Tpo -c -o ex-serv-export.o ex-serv-export.c
ex-serv-export.c: In function 'main':
ex-serv-export.c:182: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type
ex-serv-export.c:199: warning: implicit declaration of function 'inet_ntop'
mv -f .deps/ex-serv-export.Tpo .deps/ex-serv-export.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT ex-serv-anon.o -MD -MP
-MF .deps/ex-serv-anon.Tpo -c -o ex-serv-anon.o ex-serv-anon.c
ex-serv-anon.c: In function 'main':
ex-serv-anon.c:102: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type
ex-serv-anon.c:119: warning: implicit declaration of function 'inet_ntop'
mv -f .deps/ex-serv-anon.Tpo .deps/ex-serv-anon.Po
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -no-install -o
ex-serv-anon.exe ex-serv-anon.o libexamples.la ../../lib/libgnutls.la
../../libextra/libgnutls-extra.la ../../gl/libgnu.la
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT ex-serv-pgp.o -MD -MP -MF
.deps/ex-serv-pgp.Tpo -c -o ex-serv-pgp.o ex-serv-pgp.c
ex-serv-pgp.c: In function 'main':
ex-serv-pgp.c:114: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type
ex-serv-pgp.c:131: warning: implicit declaration of function 'inet_ntop'
mv -f .deps/ex-serv-pgp.Tpo .deps/ex-serv-pgp.Po
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I../../includes
-I../../includes -I../../lgl -I../../lgl -I../../gl -I../../gl -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -MT ex-serv-srp.o -MD -MP -MF
.deps/ex-serv-srp.Tpo -c -o ex-serv-srp.o ex-serv-srp.c
ex-serv-srp.c: In function 'main':
ex-serv-srp.c:107: warning: passing argument 4 of 'setsockopt' from
incompatible pointer type
ex-serv-srp.c:124: warning: implicit declaration of function 'inet_ntop'
mv -f .deps/ex-serv-srp.Tpo .deps/ex-serv-srp.Po
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pipe
-I/usr/local/include -O2 -Wno-pointer-sign -no-install -o
ex-serv-srp.exe ex-serv-srp.o libexamples.la ../../lib/libgnutls.la
../../libextra/libgnutls-extra.la ../../gl/libgnu.la
libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32
libtool: link: warning: assuming `-no-fast-install' instead
/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
Hope this helps
Massimo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080418/642b9437/attachment.htm>
More information about the Gnutls-help
mailing list