<!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=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
body {
font-size: 0.875rem;
}
body {
-webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: inherit;
}
</style>
</head>
<body style='font-size: inherit; -webkit-text-shadow: rgba(255,255,255,0.01) 0 0 1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";'>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/bagder" style="color: #1068bf; text-decoration: none;">Daniel Stenberg</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1363" style="color: #1068bf; text-decoration: none;">#1363</a>
</p>
<div class="md" style="color: #303030; word-wrap: break-word;">
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">I'm trying to get a GnuTLS 3.7.4 build working in a CI job for curl and I'm stuck with a build error I cannot understand and I'm looking for some clues on why this might happen. It builds fine locally on my debian system.</p>
<p dir="auto" style="color: #303030; margin: 0 0 16px;" align="initial">This is how it ends on a ubuntu bionic system:</p>
<div class="gl-relative markdown-code-block js-markdown-code" style="margin-bottom: 0;">
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true" style='display: block; font-size: 13px; color: #303030; line-height: 1.6em; overflow-x: auto; border-radius: 2px; position: relative; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; word-break: break-all; word-wrap: break-word; background-color: #fafafa; margin: 0 0 16px; padding: 12px; border: 1px solid #dbdbdb;'><code style='font-size: inherit; color: inherit; word-wrap: normal; word-break: keep-all; background-color: inherit; border-radius: 4px; white-space: pre; margin-top: 0; font-family: "Menlo", "DejaVu Sans Mono", "Liberation Mono", "Consolas", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace; overflow-wrap: normal; padding: unset;'><span id="LC1" class="line" lang="plaintext" style="margin-top: 0;">  CC       cli-debug.o</span>
<span id="LC2" class="line" lang="plaintext">cli-debug.c: In function 'main':</span>
<span id="LC3" class="line" lang="plaintext">cli-debug.c:283:6: warning: implicit declaration of function 'HAVE_OPT'; did you mean 'HAVE_PIPE'? [-Wimplicit-function-declaration]</span>
<span id="LC4" class="line" lang="plaintext">  if (HAVE_OPT(STARTTLS_PROTO)) {</span>
<span id="LC5" class="line" lang="plaintext">      ^~~~~~~~</span>
<span id="LC6" class="line" lang="plaintext">      HAVE_PIPE</span>
<span id="LC7" class="line" lang="plaintext">cli-debug.c:283:6: warning: nested extern declaration of 'HAVE_OPT' [-Wnested-externs]</span>
<span id="LC8" class="line" lang="plaintext">cli-debug.c:283:15: error: 'STARTTLS_PROTO' undeclared (first use in this function)</span>
<span id="LC9" class="line" lang="plaintext">  if (HAVE_OPT(STARTTLS_PROTO)) {</span>
<span id="LC10" class="line" lang="plaintext">               ^~~~~~~~~~~~~~</span>
<span id="LC11" class="line" lang="plaintext">cli-debug.c:283:15: note: each undeclared identifier is reported only once for each function it appears in</span>
<span id="LC12" class="line" lang="plaintext">cli-debug.c:284:48: warning: implicit declaration of function 'OPT_ARG'; did you mean 'PF_ALG'? [-Wimplicit-function-declaration]</span>
<span id="LC13" class="line" lang="plaintext">   snprintf(app_proto, sizeof(app_proto), "%s", OPT_ARG(STARTTLS_PROTO));</span>
<span id="LC14" class="line" lang="plaintext">                                                ^~~~~~~</span>
<span id="LC15" class="line" lang="plaintext">                                                PF_ALG</span>
<span id="LC16" class="line" lang="plaintext">cli-debug.c:284:48: warning: nested extern declaration of 'OPT_ARG' [-Wnested-externs]</span>
<span id="LC17" class="line" lang="plaintext">In file included from cli-debug.c:38:</span>
<span id="LC18" class="line" lang="plaintext">cli-debug.c: In function 'cmd_parser':</span>
<span id="LC19" class="line" lang="plaintext">gnutls-cli-debug-options.h:1:30: warning: implicit declaration of function 'process_options'; did you mean 'process_vm_writev'? [-Wimplicit-function-declaration]</span>
<span id="LC20" class="line" lang="plaintext"> #define optionProcess(a,b,c) process_options(b,c)</span>
<span id="LC21" class="line" lang="plaintext">                              ^~~~~~~~~~~~~~~</span>
<span id="LC22" class="line" lang="plaintext">cli-debug.c:357:14: note: in expansion of macro 'optionProcess'</span>
<span id="LC23" class="line" lang="plaintext">  int optct = optionProcess(&gnutls_cli_debugOptions, argc, argv);</span>
<span id="LC24" class="line" lang="plaintext">              ^~~~~~~~~~~~~</span>
<span id="LC25" class="line" lang="plaintext">gnutls-cli-debug-options.h:1:30: warning: nested extern declaration of 'process_options' [-Wnested-externs]</span>
<span id="LC26" class="line" lang="plaintext"> #define optionProcess(a,b,c) process_options(b,c)</span>
<span id="LC27" class="line" lang="plaintext">                              ^~~~~~~~~~~~~~~</span>
<span id="LC28" class="line" lang="plaintext">cli-debug.c:357:14: note: in expansion of macro 'optionProcess'</span>
<span id="LC29" class="line" lang="plaintext">  int optct = optionProcess(&gnutls_cli_debugOptions, argc, argv);</span>
<span id="LC30" class="line" lang="plaintext">              ^~~~~~~~~~~~~</span>
<span id="LC31" class="line" lang="plaintext">cli-debug.c:364:15: error: 'PORT' undeclared (first use in this function)</span>
<span id="LC32" class="line" lang="plaintext">  if (HAVE_OPT(PORT))</span>
<span id="LC33" class="line" lang="plaintext">               ^~~~</span>
<span id="LC34" class="line" lang="plaintext">cli-debug.c:365:10: error: 'OPT_VALUE_PORT' undeclared (first use in this function); did you mean 'SEM_VALUE_MAX'?</span>
<span id="LC35" class="line" lang="plaintext">   port = OPT_VALUE_PORT;</span>
<span id="LC36" class="line" lang="plaintext">          ^~~~~~~~~~~~~~</span>
<span id="LC37" class="line" lang="plaintext">          SEM_VALUE_MAX</span>
<span id="LC38" class="line" lang="plaintext">cli-debug.c:367:16: error: 'STARTTLS_PROTO' undeclared (first use in this function)</span>
<span id="LC39" class="line" lang="plaintext">   if (HAVE_OPT(STARTTLS_PROTO))</span>
<span id="LC40" class="line" lang="plaintext">                ^~~~~~~~~~~~~~</span>
<span id="LC41" class="line" lang="plaintext">cli-debug.c:378:15: error: 'DEBUG' undeclared (first use in this function)</span>
<span id="LC42" class="line" lang="plaintext">  if (HAVE_OPT(DEBUG))</span>
<span id="LC43" class="line" lang="plaintext">               ^~~~~</span>
<span id="LC44" class="line" lang="plaintext">cli-debug.c:379:11: error: 'OPT_VALUE_DEBUG' undeclared (first use in this function)</span>
<span id="LC45" class="line" lang="plaintext">   debug = OPT_VALUE_DEBUG;</span>
<span id="LC46" class="line" lang="plaintext">           ^~~~~~~~~~~~~~~</span>
<span id="LC47" class="line" lang="plaintext">cli-debug.c:381:15: error: 'VERBOSE' undeclared (first use in this function)</span>
<span id="LC48" class="line" lang="plaintext">  if (HAVE_OPT(VERBOSE))</span>
<span id="LC49" class="line" lang="plaintext">               ^~~~~~~</span>
<span id="LC50" class="line" lang="plaintext">Makefile:2648: recipe for target 'cli-debug.o' failed</span>
<span id="LC51" class="line" lang="plaintext">make[3]: *** [cli-debug.o] Error 1</span>
<span id="LC52" class="line" lang="plaintext">make[3]: Leaving directory '/home/zuul/pgtls/src'</span>
<span id="LC53" class="line" lang="plaintext">Makefile:2414: recipe for target 'all' failed</span>
<span id="LC54" class="line" lang="plaintext">make[2]: *** [all] Error 2</span>
<span id="LC55" class="line" lang="plaintext">make[2]: Leaving directory '/home/zuul/pgtls/src'</span>
<span id="LC56" class="line" lang="plaintext">Makefile:2240: recipe for target 'all-recursive' failed</span>
<span id="LC57" class="line" lang="plaintext">make[1]: *** [all-recursive] Error 1</span>
<span id="LC58" class="line" lang="plaintext">make[1]: Leaving directory '/home/zuul/pgtls'</span>
<span id="LC59" class="line" lang="plaintext">Makefile:2165: recipe for target 'all' failed</span>
<span id="LC60" class="line" lang="plaintext">make: *** [all] Error 2</span></code></pre>
<copy-code></copy-code>
</div>
</div>

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

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1363" style="color: #1068bf; text-decoration: none;">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/4b0120b2d344e71b98f5d68dcc252453/unsubscribe" style="color: #1068bf; text-decoration: none;">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/1363"}}</script>


</p>
</div>
</body>
</html>