missing prototype for __gmpz_inp_str_nowhite (VMS)
Jay K
jay.krell at cornell.edu
Sun May 23 14:37:33 CEST 2010
/src/gmp-4.3.2/mpz/inp_str.c: In function '__gmpz_inp_str':
/src/gmp-4.3.2/mpz/inp_str.c:53:3: warning: implicit declaration of function '__gmpz_inp_str_nowhite'
/src/gmp-4.3.2/mpz/inp_str.c: At top level:
/src/gmp-4.3.2/mpz/inp_str.c:58:1: error: conflicting types for '__gmpz_inp_str_nowhite'
/src/gmp-4.3.2/mpz/inp_str.c:53:10: note: previous implicit declaration of '__gmpz_inp_str_nowhite' was here
fix: reverse the order of mpz_inp_str and mpz_inp_str_nowhite in inp_str.c,
or add a declaration of mpz_inp_str_nowhite before its use
or in gmp-impl.h put in unconditional #include <stdio.h> and nowhite's prototype
Just because _GMP_H_HAVE_FILE is false, doesn't really mean FILE* is missing.
I don't understand why you care -- is FILE* really sometimes missing from stdio.h?
Another part of the fix:
check for defined(__STDIO_LOADED)
That is the symbol on VMS.
This highlights well the problem with autoconf -- untested combinatorials..
But this case is simple to deal with.
- Jay
More information about the gmp-bugs
mailing list