[gnutls-devel] Errors building GnuTLS

Jaak Ristioja jaak.ristioja at cyber.ee
Mon Jan 28 11:17:03 CET 2013


On 26.01.2013 15:00, Nikos Mavrogiannopoulos wrote:
> On 01/26/2013 11:45 AM, Jaak Ristioja wrote:
>> I'm trying to build GnuTLS (currently from git master), but I'm getting
>> some errors. Maybe I'm doing it wrong, but I did
>>
>>   make autoreconf
>>   ./configure --disable-libdane --without-p11-kit
>> --disable-openpgp-authentication --disable-openssl-compatibility
>> --disable-dtls-srtp-support --disable-srp-authentication
>> --disable-psk-authentication --prefix=/home/jotik/develop/gnutls/prefix/
>> --disable-cxx --disable-crywrap --disable-guile --disable-nls
>>   make
>>
>> The next error I'm getting is:
>>
>> make[3]: Entering directory `/home/jotik/develop/gnutls/gnutls.git/lib'
>>   CC     gnutls_ui.lo
>> gnutls_ui.c: In function 'gnutls_certificate_get_peers_subkey_id':
>> gnutls_ui.c:579:18: error: 'struct cert_auth_info_st' has no member
>> named 'subkey_id'
> 
> 
> Hello,
>  These disable options are not actively maintained and their status
> depends on patches received by the ones who actually use it. Usually on
> the errors you see, it is sufficient to disable the corresponding
> function or code by using and ifdef of the feature it is related to.
> 
> 
> I've now fixed the issue you quote. For other issues, or when in doubt
> feel free to ask.

Thanks! The fix worked for that error. :) Here's what I get next on one
of my systems:

make[4]: Entering directory `/home/jotik/develop/gnutls/gnutls.git/src'
  CCLD   danetool
  CCLD   certtool
danetool.o: In function `dane_info':
/home/jotik/develop/gnutls/gnutls.git/src/danetool.c:397: undefined
reference to `gnutls_hex_encode'
certtool-common.o: In function `load_secret_key':
/home/jotik/develop/gnutls/gnutls.git/src/certtool-common.c:97:
undefined reference to `gnutls_hex_decode'
collect2: ld returned 1 exit status
make[4]: *** [danetool] Error 1
make[4]: *** Waiting for unfinished jobs....
certtool.o: In function `detailed_verification':
/home/jotik/develop/gnutls/gnutls.git/src/certtool.c:1989: undefined
reference to `gnutls_hex_encode'
certtool-common.o: In function `load_secret_key':
/home/jotik/develop/gnutls/gnutls.git/src/certtool-common.c:97:
undefined reference to `gnutls_hex_decode'
collect2: ld returned 1 exit status
make[4]: *** [certtool] Error 1

Looks like another bug.

In addition is there a way to ./configure GnuTLS not to build these
tools? My goal is just to build a simple library.

Best regards,
Jaak



More information about the Gnutls-devel mailing list