[gnutls-devel] GnuTLS | Build failure when building from git (#1633)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Sat Dec 21 08:35:19 CET 2024




Maxim Cournoyer commented: https://gitlab.com/gnutls/gnutls/-/issues/1633#note_2270547019


Here's the full compiler command line leading to the failure:
```
make[3]: Entering directory '/home/maxim/src/gnutls/src'
depbase=`echo psk.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DHAVE_CONFIG_H -I. -I..  -I./gl -I./gl -I./../lib/includes -I./../lib/includes -I./../libdane/includes -I./../extra/includes  -I/gnu/store/2y46v8isd9n57zs4hc5j8rjbd38s4zqd-libtasn1-4.19.0/include  -fanalyzer -Wall -Wbad-function-cast -Wcast-align=strict -Wdate-time -Wdisabled-optimization -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wextra -Winit-self -Winvalid-pch -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-prototypes -Wnested-externs -Wnull-dereference -Wold-style-definition -Wopenmp-simd -Wpacked -Wpointer-arith -Wshadow -Wstrict-prototypes -Wsuggest-attribute=cold -Wsuggest-attribute=format -Wsuggest-attribute=malloc -Wsuggest-final-methods -Wsuggest-final-types -Wsync-nand -Wtrampolines -Wuninitialized -Wunknown-pragmas -Wunused-macros -Wvariadic-macros -Wvector-operation-performance -Wwrite-strings -Warray-bounds=2 -Wattribute-alias=2 -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wunused-const-variable=2 -Wvla-larger-than=4031 -Wno-analyzer-malloc-leak -Wno-missing-field-initializers -Wno-unused-parameter -Wno-format-truncation -Wimplicit-fallthrough=2 -Wabi=11 -fdiagnostics-show-option -fno-builtin-strcmp  -g -O2 -MT psk.o -MD -MP -MF $depbase.Tpo -c -o psk.o psk.c &&\
mv -f $depbase.Tpo $depbase.Po
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) {
      |                                  ^~~~~~~~~~~~~~~~~
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1633#note_2270547019
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/6c4a919f/attachment.html>


More information about the Gnutls-devel mailing list