1.3.1 cross compile error

venona at gmx.ch venona at gmx.ch
Wed Mar 19 19:14:03 CET 2003


Hello,

I tried to cross-compile GnuPG 1.3.1 on Debian Potato with mingw32/cpd
0.3.1, but the error shown below appeared and compilation failed.
I set no option in configure, so all the options were default.
But when I set the option --with-included-regex the same error appeared.

Below is the error message:

In file included from regex.c:51:
regcomp.c: In function `parse':
regcomp.c:1796: warning: return makes pointer from integer without a cast
regcomp.c: In function `parse_reg_exp':
regcomp.c:1844: warning: return makes pointer from integer without a cast
regcomp.c: In function `parse_branch':
regcomp.c:1886: warning: return makes pointer from integer without a cast
regcomp.c: In function `parse_expression':
regcomp.c:1919: warning: return makes pointer from integer without a cast
regcomp.c:1957: warning: return makes pointer from integer without a cast
regcomp.c:1966: warning: return makes pointer from integer without a cast
regcomp.c:1976: warning: return makes pointer from integer without a cast
regcomp.c:1986: warning: return makes pointer from integer without a cast
regcomp.c:2011: warning: return makes pointer from integer without a cast
regcomp.c:2018: warning: return makes pointer from integer without a cast
regcomp.c:2030: warning: return makes pointer from integer without a cast
regcomp.c:2031: `MB_CUR_MAX' undeclared (first use in this function)
regcomp.c:2031: (Each undeclared identifier is reported only once
regcomp.c:2031: for each function it appears in.)
regcomp.c: In function `parse_sub_exp':
regcomp.c:2111: warning: return makes pointer from integer without a cast
regcomp.c:2137: warning: return makes pointer from integer without a cast
regcomp.c: In function `parse_dup_op':
regcomp.c:2255: warning: return makes pointer from integer without a cast
regcomp.c:2264: warning: return makes pointer from integer without a cast
In file included from regex.c:52:
regexec.c: In function `re_search_internal':
regexec.c:632: `MB_CUR_MAX' undeclared (first use in this function)
In file included from regex.c:53:
regex_internal.c: In function `re_string_allocate':
regex_internal.c:111: `MB_CUR_MAX' undeclared (first use in this function)
make[2]: *** [regex.o] Error 1
make[2]: Leaving directory `/usr/src/gnupg-1.3.1/util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnupg-1.3.1'
make: *** [all] Error 2

On the other hand, when I set the option --disable-regex, another
error appeared:

trustdb.c: In function `check_regexp':
trustdb.c:1373: `regex_t' undeclared (first use in this function)
trustdb.c:1373: (Each undeclared identifier is reported only once
trustdb.c:1373: for each function it appears in.)
trustdb.c:1373: parse error before `pat'
trustdb.c:1375: warning: implicit declaration of function `regcomp'
trustdb.c:1375: `pat' undeclared (first use in this function)
trustdb.c:1375: `REG_ICASE' undeclared (first use in this function)
trustdb.c:1375: `REG_NOSUB' undeclared (first use in this function)
trustdb.c:1375: `REG_EXTENDED' undeclared (first use in this function)
trustdb.c:1378: warning: implicit declaration of function `regexec'
trustdb.c:1380: warning: implicit declaration of function `regfree'
make[2]: *** [trustdb.o] Error 1
make[2]: Leaving directory `/usr/src/gnupg-1.3.1/g10'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/gnupg-1.3.1'
make: *** [all] Error 2

May anyone tell me how to avoid the error?
Any suggestion will be appreciated.





More information about the Gnupg-devel mailing list