<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">Trying to build 3.6.4 from source (<a href="ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/gnutls-3.6.4.tar.xz">ftp://ftp.gnutls.org/gcrypt/gnutls/v3.6/gnutls-3.6.4.tar.xz</a>).
Build of gnutls 3.6.4 fails (gcc 4.4.7 on RHEL 6.4), there are two errors:</p>
<p dir="auto">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</p>
<p dir="auto">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</p>
<p dir="auto">To solve the issue I had to edit the two .c files, e.g.:</p>
<p dir="auto">Original code:</p>
<p dir="auto">typedef struct tlssession
{
(...)
} tlssession_t;</p>
<p dir="auto">Fix:</p>
<p dir="auto">struct tlssession
{
(...)
};</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/576">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/b4e0cc173ffa6cae3c948943dd2d105f/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/576"}}</script>
</p>
</div>
</body>
</html>