pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strnlen on Mingw [Was Re: Stable 20090129 compiled to windows]


From: Michel Boaventura
Subject: Re: strnlen on Mingw [Was Re: Stable 20090129 compiled to windows]
Date: Thu, 5 Feb 2009 02:45:44 -0200

Strange, even in first line of configure, if I print
ac_cv_func_strnlen_working it says "yes"
so I run "set" on console and it was setted like one session var,
among with a lot of others from configure.
I think that somehow it became session var, maybe with my tests and
now it works :$

Sorry about the trouble.

Good night (it's 02:43 here on Brazil :D)

Michel

2009/2/5 John Darrington <address@hidden>:
> Try editing configure to put some diagnostics in.  Find out which
> branch it's taking and what the valud of $cross_compiling is.
>
> J'
>
>
> On Thu, Feb 05, 2009 at 02:05:04AM -0200, Michel Boaventura wrote:
>     nothing either. I'm starting to think that its maybe a bug on
>     configure because of this:
>     on configure.log I get:
>
>     configure:34377: result: no
>     configure:34395: checking whether strnlen is declared
>     configure:34424: i686-mingw32-gcc -std=gnu99 -c -g -O2
>     -Wdeclaration-after-statement -fgnu89-inline  conftest.c >&5
>     conftest.c: In function 'main':
>     conftest.c:163: error: 'strnlen' undeclared (first use in this function)
>     conftest.c:163: error: (Each undeclared identifier is reported only once
>     conftest.c:163: error: for each function it appears in.)
>     configure:34431: $? = 1
>
>     and then this:
>
>     configure:58374: checking for working strnlen
>     configure:58449: result: yes
>
>     and on the very bottom, this:
>
>     ac_cv_func_strnlen_working=yes
>
>
>     So configure can't find strnlen, and then tells that it works. If you
>     look at configure script there is:
>
>       { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
>     $as_echo_n "checking for working strnlen... " >&6; }
>     if test "${ac_cv_func_strnlen_working+set}" = set; then
>       $as_echo_n "(cached) " >&6
>     else
>       if test "$cross_compiling" = yes; then
>       ac_cv_func_strnlen_working=no
>     else
>
>     as far as I understand this, ac_cv_func_strnlen_working from the first
>     if should be the return of the compile of the strnlen test, and
>     because its 1 (configure:34431: $? = 1) the first if should return
>     false, and how we are doing cross_compiling the
>     ac_func_strnlen_working should be set to 'no', but it is set to yes.
>
>     Am I interpreting it wrong?
>
>
>     _______________________________________________
>     pspp-dev mailing list
>     address@hidden
>     http://lists.gnu.org/mailman/listinfo/pspp-dev
>
> --
> PGP Public key ID: 1024D/2DE827B3
> fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
> See http://pgp.mit.edu or any PGP keyserver for public key.
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJimm4imdxnC3oJ7MRAkf6AJ9YfqIQA64qkCzOZNlhR1quSMn+5gCfaO8F
> lwQlnK3kNyFn9x7ZInYJkIo=
> =hc8E
> -----END PGP SIGNATURE-----
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]