Building on Mac OS 10.3.9

Alex Schröder kensanata at gmail.com
Tue Mar 17 21:05:31 CET 2009


You were right! I had a copy of libgcrypt 1.2.2 installed via
MacPorts. There was no libgcrypt-config with that installation, which
is why gnutls configure tells me that I need to install libgcrypt.
Once I have that installed, I have a libgcrypt-config, the tests
works, but /opt/local/include still ends up being used, and thus 1.2.2
is being used instead of 1.4.4. Uninstalling libgcrypt 1.2.2 solved
the problem.

Thanks!

On Tue, Mar 17, 2009 at 12:57, Simon Josefsson <simon at josefsson.org> wrote:
> Alex Schröder <kensanata at gmail.com> writes:
>
>> Hi
>>
>> I am trying to build gnutls-2.6.4 on an old iBook laptop. I just
>> finished building and installing libgcrypt-1.4.4 and libgpg-error-1.7.
>>
>> Compilation fails here:
>>
>> cipher-libgcrypt.c: In function `wrap_gcry_cipher_init':
>> cipher-libgcrypt.c:84: error: `GCRY_CIPHER_CAMELLIA128' undeclared
>> (first use in this function)
>> cipher-libgcrypt.c:84: error: (Each undeclared identifier is reported only once
>> cipher-libgcrypt.c:84: error: for each function it appears in.)
>> cipher-libgcrypt.c:90: error: `GCRY_CIPHER_CAMELLIA256' undeclared
>> (first use in this function)
>>
>> When I try configure --disable-camellia, I'm getting a different error:
>>
>> mac-libgcrypt.c: In function `wrap_gcry_hash_init':
>> mac-libgcrypt.c:123: error: `GCRY_MD_SHA224' undeclared (first use in
>> this function)
>> mac-libgcrypt.c:123: error: (Each undeclared identifier is reported only once
>> mac-libgcrypt.c:123: error: for each function it appears in.)
>>
>> Any ideas?
>
> Are you sure it is using the header file from your libgcrypt 1.4.4
> installation rather than some older installation?  Use
> --with-libgcrypt-prefix=/usr/local or similar to make gnutls use the
> proper libgcrypt.
>
> Modern GnuTLS requires libgcrypt 1.4 or later for SHA-2/Camellia
> support.
>
> /Simon
>





More information about the Gnutls-devel mailing list