[Help-gnutls] Build Error with gnutls-0.8.10

Thomas F. O'Connell tfo at netcentral.com
Fri Oct 10 22:05:41 CEST 2003


I'm trying to build gnutls-0.8.10 on a Slackware 9.0 box using GCC
3.3.1. I got libgcrypt-1.1.43 and libgpg-error-0.4 installed just fine,
but when I try to make gnutls, I get:

gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../libextra -Iminitasn1/
-I../includes -g -O2 -O2 -finline-functions -pipe -I/usr/local/include
-MT gnutls_record.lo -MD -MP -MF .deps/gnutls_record.Tpo -c
gnutls_record.c  -fPIC -DPIC -o .libs/gnutls_record.lo
In file included from gnutls_int.h:108,
                 from gnutls_record.c:25:
gnutls_mpi.h:27: error: parse error before '*' token
gnutls_mpi.h:29: warning: `GCRY_MPI' is deprecated (declared at
/usr/local/include/gcrypt.h:153)
gnutls_mpi.h:30: warning: `GCRY_MPI' is deprecated (declared at
/usr/local/include/gcrypt.h:153)
gnutls_mpi.h:32: warning: `GCRY_MPI' is deprecated (declared at
/usr/local/include/gcrypt.h:153)
gnutls_mpi.h:33: warning: `GCRY_MPI' is deprecated (declared at
/usr/local/include/gcrypt.h:153)
gnutls_mpi.h:35: error: parse error before "MPI"
In file included from gnutls_record.c:25:
gnutls_int.h:225: error: parse error before "MPI"
gnutls_int.h:225: warning: no semicolon at end of struct or union
gnutls_int.h:226: warning: data definition has no type or storage class
gnutls_int.h:227: error: parse error before "client_g"
gnutls_int.h:227: warning: data definition has no type or storage class
gnutls_int.h:228: error: parse error before "client_p"
gnutls_int.h:228: warning: data definition has no type or storage class
gnutls_int.h:229: error: parse error before "dh_secret"
gnutls_int.h:229: warning: data definition has no type or storage class
gnutls_int.h:231: error: parse error before "A"
gnutls_int.h:231: warning: data definition has no type or storage class
gnutls_int.h:232: error: parse error before "B"
gnutls_int.h:232: warning: data definition has no type or storage class
gnutls_int.h:233: error: parse error before "u"
gnutls_int.h:233: warning: data definition has no type or storage class
gnutls_int.h:234: error: parse error before "b"
gnutls_int.h:234: warning: data definition has no type or storage class
gnutls_int.h:235: error: parse error before "a"
gnutls_int.h:235: warning: data definition has no type or storage class
gnutls_int.h:236: error: parse error before "x"
gnutls_int.h:236: warning: data definition has no type or storage class
gnutls_int.h:239: error: parse error before "rsa"
gnutls_int.h:239: warning: data definition has no type or storage class
gnutls_int.h:264: error: parse error before '}' token
In file included from gnutls_int.h:270,
                 from gnutls_record.c:25:
gnutls_hash_int.h:29: warning: `GCRY_MD_HD' is deprecated (declared at
/usr/local/include/gcrypt.h:1032)
In file included from gnutls_int.h:271,
                 from gnutls_record.c:25:
gnutls_cipher_int.h:27: warning: `GCRY_CIPHER_HD' is deprecated
(declared at /usr/local/include/gcrypt.h:580)
gnutls_cipher_int.h:28: warning: `GCRY_CIPHER_HD' is deprecated
(declared at /usr/local/include/gcrypt.h:580)
gnutls_cipher_int.h:29: warning: `GCRY_CIPHER_HD' is deprecated
(declared at /usr/local/include/gcrypt.h:580)
gnutls_cipher_int.h:30: warning: `GCRY_CIPHER_HD' is deprecated
(declared at /usr/local/include/gcrypt.h:580)
In file included from gnutls_cert.h:4,
                 from gnutls_int.h:273,
                 from gnutls_record.c:25:
gnutls_pk.h:5: error: parse error before "MPI"
gnutls_pk.h:7: error: parse error before "MPI"
gnutls_pk.h:9: error: parse error before "MPI"
gnutls_pk.h:11: error: parse error before "MPI"
gnutls_pk.h:13: error: parse error before "MPI"
In file included from gnutls_int.h:273,
                 from gnutls_record.c:25:
gnutls_cert.h:39: error: parse error before "MPI"
gnutls_cert.h:39: warning: no semicolon at end of struct or union
gnutls_cert.h:72: error: parse error before '}' token
gnutls_cert.h:72: warning: data definition has no type or storage class
gnutls_cert.h:75: error: parse error before "MPI"
gnutls_cert.h:75: warning: no semicolon at end of struct or union
gnutls_cert.h:96: error: parse error before '}' token
gnutls_cert.h:96: warning: data definition has no type or storage class
gnutls_cert.h:100: error: parse error before '*' token
gnutls_cert.h:102: error: parse error before "cert"
In file included from gnutls_record.c:25:
gnutls_int.h:381: warning: `GCRY_CIPHER_HD' is deprecated (declared at
/usr/local/include/gcrypt.h:580)
gnutls_int.h:382: warning: `GCRY_CIPHER_HD' is deprecated (declared at
/usr/local/include/gcrypt.h:580)
gnutls_int.h:609: error: parse error before "MPI"
gnutls_int.h:609: warning: no semicolon at end of struct or union
gnutls_int.h:610: warning: data definition has no type or storage class
gnutls_int.h:616: error: parse error before '}' token
gnutls_int.h:616: warning: data definition has no type or storage class
gnutls_int.h:623: error: parse error before "MPI"
gnutls_int.h:623: warning: no semicolon at end of struct or union
gnutls_int.h:624: warning: data definition has no type or storage class
In file included from gnutls_record.c:44:
gnutls_dh.h:21: error: parse error before "gnutls_get_dh_params"
gnutls_dh.h:21: error: parse error before '*' token
gnutls_dh.h:21: warning: data definition has no type or storage class
gnutls_dh.h:22: error: parse error before "gnutls_calc_dh_secret"
gnutls_dh.h:22: error: parse error before '*' token
gnutls_dh.h:22: warning: data definition has no type or storage class
gnutls_dh.h:23: error: parse error before "gnutls_calc_dh_key"
gnutls_dh.h:23: error: parse error before "f"
gnutls_dh.h:23: warning: data definition has no type or storage class
gnutls_dh.h:24: error: parse error before '*' token
gnutls_dh.h:28: error: parse error before "_gnutls_dh_default_params"
gnutls_dh.h:28: warning: data definition has no type or storage class
gmake[3]: *** [gnutls_record.lo] Error 1
gmake[3]: Leaving directory `/usr/local/src/gnutls-0.8.10/lib'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/local/src/gnutls-0.8.10/lib'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/local/src/gnutls-0.8.10'
gmake: *** [all] Error 2


There seems to be a problem with MPI vs. GCRY_MPI. I tried modifying the
header to define MPI to be the same as GCRY_MPI, and the errors changed.
I'm wondering if maybe there're unstated dependencies among the versions
of gnutls and libgcrypt that are available?

-tfo






More information about the Gnutls-help mailing list