[gnutls-devel] GnuTLS | Building the bundled gnulib test suite fails (#1633)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Sat Dec 21 06:15:39 CET 2024
Maxim Cournoyer created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1633
## Description of problem:
Building from the master branch, using the following dependencies:
gcc 11.4.0
libtool 2.4.7
autoconf 2.71
automake 1.16.5
After running ./bootstrap && ./configure, `make` fails (see below for log output).
## Version of gnutls used:
Lastest master branch (commit 436a69e01).
## Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
GNU Guix but N/A here.
## How reproducible:
Steps to Reproduce:
1. Clone project
2. Setup build environment: I used GNU Guix for that: `guix shell --pure -D gnutls libev gperf gettext gtk-doc bison autoconf automake libtool git-minimal perl wget`
## Actual results:
```
Making all in tests
make[4]: Entering directory '/home/maxim/src/gnutls/src/gl/tests'
## ---------------------------------------------------- ##
## ------------------- Gnulib tests ------------------- ##
## You can ignore compiler warnings in this directory. ##
## ---------------------------------------------------- ##
make all-recursive
make[5]: Entering directory '/home/maxim/src/gnutls/src/gl/tests'
Making all in .
make[6]: Entering directory '/home/maxim/src/gnutls/src/gl/tests'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/maxim/src/gnutls/src/gl/tests'
make[5]: Leaving directory '/home/maxim/src/gnutls/src/gl/tests'
make[4]: Leaving directory '/home/maxim/src/gnutls/src/gl/tests'
make[3]: Leaving directory '/home/maxim/src/gnutls/src/gl'
make[2]: Leaving directory '/home/maxim/src/gnutls/src/gl'
Making all in src
make[2]: Entering directory '/home/maxim/src/gnutls/src'
make all-am
make[3]: Entering directory '/home/maxim/src/gnutls/src'
CC psk.o
In file included from psk.c:42:
psk.c: In function 'main':
psktool-options.h:1:30: warning: implicit declaration of function 'process_options' [-Wimplicit-function-declaration]
1 | #define optionProcess(a,b,c) process_options(b,c)
| ^~~~~~~~~~~~~~~
psk.c:84:9: note: in expansion of macro 'optionProcess'
84 | optionProcess(&psktoolOptions, argc, argv);
| ^~~~~~~~~~~~~
psktool-options.h:1:30: warning: nested extern declaration of 'process_options' [-Wnested-externs]
1 | #define optionProcess(a,b,c) process_options(b,c)
| ^~~~~~~~~~~~~~~
psk.c:84:9: note: in expansion of macro 'optionProcess'
84 | optionProcess(&psktoolOptions, argc, argv);
| ^~~~~~~~~~~~~
psk.c:86:14: warning: implicit declaration of function 'HAVE_OPT'; did you mean 'HAVE_PIPE'? [-Wimplicit-function-declaration]
86 | if (!HAVE_OPT(PSKFILE)) {
| ^~~~~~~~
| HAVE_PIPE
psk.c:86:14: warning: nested extern declaration of 'HAVE_OPT' [-Wnested-externs]
psk.c:86:23: error: 'PSKFILE' undeclared (first use in this function); did you mean 'FILE'?
86 | if (!HAVE_OPT(PSKFILE)) {
| ^~~~~~~
| FILE
psk.c:86:23: note: each undeclared identifier is reported only once for each function it appears in
psk.c:90:26: warning: implicit declaration of function 'OPT_ARG' [-Wimplicit-function-declaration]
90 | passwd = OPT_ARG(PSKFILE);
| ^~~~~~~
psk.c:90:26: warning: nested extern declaration of 'OPT_ARG' [-Wnested-externs]
psk.c:92:23: error: 'USERNAME' undeclared (first use in this function)
92 | if (!HAVE_OPT(USERNAME)) {
| ^~~~~~~~
psk.c:109:22: error: 'KEYSIZE' undeclared (first use in this function)
109 | if (HAVE_OPT(KEYSIZE) && OPT_VALUE_KEYSIZE > MAX_KEY_SIZE) {
| ^~~~~~~
psk.c:109:34: error: 'OPT_VALUE_KEYSIZE' undeclared (first use in this function)
109 | if (HAVE_OPT(KEYSIZE) && OPT_VALUE_KEYSIZE > MAX_KEY_SIZE) {
| ^~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:3305: psk.o] Error 1
make[3]: Leaving directory '/home/maxim/src/gnutls/src'
make[2]: *** [Makefile:3065: all] Error 2
make[2]: Leaving directory '/home/maxim/src/gnutls/src'
make[1]: *** [Makefile:2878: all-recursive] Error 1
make[1]: Leaving directory '/home/maxim/src/gnutls'
make: *** [Makefile:2803: all] Error 2
```
## Expected results:
`make` should succeed and exit with status 0.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1633
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/20241221/6296b8dd/attachment-0001.html>
More information about the Gnutls-devel
mailing list