1.3.1 cross compile error

David Shaw dshaw@jabberwocky.com
Fri Mar 21 23:22:02 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Mar 20, 2003 at 03:14:48AM +0900, venona@gmx.ch wrote:

> 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?

This is a typo in the trustdb.c file.  Change the line that reads

#ifdef DISABLE_REGEXP

  to

#ifdef DISABLE_REGEX

This will be fixed in 1.3.2.

David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2rc1 (GNU/Linux)
Comment: http://www.jabberwocky.com/david/keys.asc

iD8DBQE+e5Cc4mZch0nhy8kRAltqAJoDBzkmOfPtjy1ae1iz+f2fDBvTpQCeKjwC
hB9dV/z/YhJihCQgc1pvdbU=
=85pk
-----END PGP SIGNATURE-----