[gnutls-devel] GnuTLS | 3.6.4 - build from source fails - errors "redefinition of typedef" (#576)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Sep 26 10:47:51 CEST 2018


New Issue was created.

Issue 576: https://gitlab.com/gnutls/gnutls/issues/576
Author:    Nicolas Chaigneau
Assignee:  

## Description of problem:

Trying to build 3.6.4 from source (ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/gnutls-3.6.4.tar.xz).
Build of gnutls 3.6.4 fails (gcc 4.4.7 on RHEL 6.4), there are two errors:

tlsproxy/buffer.c:40: error: redefinition of typedef 'buffer_t'
tlsproxy/buffer.h:31: note: previous declaration of 'buffer_t' was here
make[4]: *** [tlsproxy/buffer.o] Error 1

tlsproxy/crypto-gnutls.c:61: error: redefinition of typedef 'tlssession_t'
tlsproxy/crypto-gnutls.h:32: note: previous declaration of 'tlssession_t' was here
make[4]: *** [tlsproxy/crypto-gnutls.o] Error 1

To solve the issue I had to edit the two .c files, e.g.:

Original code:

typedef struct tlssession
{
  (...)
} tlssession_t;

Fix:

struct tlssession
{
  (...)
};

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/576
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20180926/772e4d95/attachment.html>


More information about the Gnutls-devel mailing list