[gnutls-devel] GnuTLS | Build from git without nettle and libtasn1 submodule (#1544)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Apr 11 18:08:31 CEST 2024



bbhtt created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1544



Hello, building from git without these two as submodules seems to be not possible. How is the release tarball avoiding this?

Bootstrap seems call these two scripts https://gitlab.com/gnutls/gnutls/-/blob/49f4ae2109b7cc969539b90be92a5844bbe7b322/bootstrap.conf#L95-96 that requires them as submodules but GnuTLS release tarballs doesn't have the devel directory..

If I patch those two lines and build against system provided libtasn1 and nettle it seems to fail at:

```
cc1: warning: ../../../lib/nettle/backport: No such file or directory [-Wmissing-include-dirs]
depbase=`echo gost/cmac-kuznyechik.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/sh ../../libtool  --tag=CC   --mode=compile x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../lib/nettle -I../..  -I../../../lib/nettle/int -I../../../lib/nettle/backport -I../../../lib/nettle/../../gl -I./../../gl -I../../../lib/nettle/../includes -I./../includes -I./../../gl -I../../../lib/nettle/..    -Wtype-limits -fanalyzer -fno-common -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 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -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    -I/usr/include/p11-kit-1     -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -MT gost/cmac-kuznyechik.lo -MD -MP -MF $depbase.Tpo -c -o gost/cmac-kuznyechik.lo ../../../lib/nettle/gost/cmac-kuznyechik.c &&\
mv -f $depbase.Tpo $depbase.Plo
make[4]: *** No rule to make target 'backport/gmp-glue.c', needed by 'backport/gmp-glue.lo'.  Stop.
make[4]: *** Waiting for unfinished jobs....
libtool: compile:  x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../lib/nettle -I../.. -I../../../lib/nettle/int -I../../../lib/nettle/backport -I../../../lib/nettle/../../gl -I./../../gl -I../../../lib/nettle/../includes -I./../includes -I./../../gl -I../../../lib/nettle/.. -Wtype-limits -fanalyzer -fno-common -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 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -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 -I/usr/include/p11-kit-1 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT gost/cmac-kuznyechik.lo -MD -MP -MF gost/.deps/cmac-kuznyechik.Tpo -c ../../../lib/nettle/gost/cmac-kuznyechik.c  -fPIC -DPIC -o gost/.libs/cmac-kuznyechik.o
libtool: compile:  x86_64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../../../lib/nettle -I../.. -I../../../lib/nettle/int -I../../../lib/nettle/backport -I../../../lib/nettle/../../gl -I./../../gl -I../../../lib/nettle/../includes -I./../includes -I./../../gl -I../../../lib/nettle/.. -Wtype-limits -fanalyzer -fno-common -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 -Wbidi-chars=any,ucn -Wformat-overflow=2 -Wformat=2 -Wformat-truncation=2 -Wimplicit-fallthrough=5 -Wshift-overflow=2 -Wuse-after-free=3 -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 -I/usr/include/p11-kit-1 -O2 -pipe -g -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -MT gost/cmac-magma.lo -MD -MP -MF gost/.deps/cmac-magma.Tpo -c ../../../lib/nettle/gost/cmac-magma.c  -fPIC -DPIC -o gost/.libs/cmac-magma.o
cc1: warning: ../../../lib/nettle/backport: No such file or directory [-Wmissing-include-dirs]
cc1: warning: ../../../lib/nettle/backport: No such file or directory [-Wmissing-include-dirs]
```

Thanks

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1544
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/20240411/25b8a7d1/attachment.html>


More information about the Gnutls-devel mailing list