Summary: | net-dns/dnsdist-1.8.0 - dnsdist-lua.cc: error: libssl_init_server_context was not declared in this scope | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Holger Hoffstätte <holger> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | jy6x2b32pie9, nativemad, proxy-maint, stevan |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 865117 | ||
Attachments: |
emerge-info.txt
emerge-history.txt.bz2 environment etc.clang.tar.bz2 etc.portage.tar.bz2 logs.tar.bz2 net-dns:dnsdist-1.8.0:20230419-023657.log temp.tar.bz2 |
Description
Toralf Förster
2023-04-19 16:37:39 UTC
Created attachment 860353 [details]
emerge-info.txt
Created attachment 860354 [details]
emerge-history.txt.bz2
Created attachment 860355 [details]
environment
Created attachment 860356 [details]
etc.clang.tar.bz2
Created attachment 860357 [details]
etc.portage.tar.bz2
Created attachment 860358 [details]
logs.tar.bz2
Created attachment 860359 [details]
net-dns:dnsdist-1.8.0:20230419-023657.log
Created attachment 860360 [details]
temp.tar.bz2
Works for me with gcc-13.1.0-r1, maybe it was caused by the prerelease? (In reply to Holger Hoffstätte from comment #9) > Works for me with gcc-13.1.0-r1, maybe it was caused by the prerelease? I don't think the header deps have changed since then, it's quite sensitive to USE flags and such though as it's all about transitive header usage. Got the same error with gcc (Gentoo 12.2.1_p20230304 p13) 12.2.1 20230304 Is there anything (logs, etc) that I can post here to help track down the issue? Upgraded to newer version of GCC (Gentoo 12.2.1_p20230428-r1 p2) 12.2.1 20230428) and still facing same issue. x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua-inspection.o dnsdist-lua-inspection.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua-network.o dnsdist-lua-network.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua-rules.o dnsdist-lua-rules.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua-vars.o dnsdist-lua-vars.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua-web.o dnsdist-lua-web.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua.o dnsdist-lua.cc dnsdist-lua.cc: In lambda function: dnsdist-lua.cc:2618:22: error: ‘libssl_init_server_context’ was not declared in this scope 2618 | auto ctx = libssl_init_server_context(frontend->d_tlsConfig, ocspResponses); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:1542: dnsdist-lua.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' make[1]: *** [Makefile:1685: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' make: *** [Makefile:1267: all] Error 2 * ERROR: net-dns/dnsdist-1.8.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-dns/dnsdist-1.8.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-dns/dnsdist-1.8.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-dns/dnsdist-1.8.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/dnsdist-1.8.0/temp/environment'. * Working directory: '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' * S: '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' Switched to GCC (Gentoo 13.1.0-r1 p1) 13.1.0 and still having the problem. Looks like to not be GCC version related. x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-lua.o dnsdist-lua.cc x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-mac-address.o dnsdist-mac-address.cc dnsdist-lua.cc: In lambda function: dnsdist-lua.cc:2618:22: error: ‘libssl_init_server_context’ was not declared in this scope 2618 | auto ctx = libssl_init_server_context(frontend->d_tlsConfig, ocspResponses); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ x86_64-pc-linux-gnu-g++ -std=c++17 -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/lua5.1 -I/usr/include/editline -I./ext/yahttp -I./ext/protozero/include -DSYSCONFDIR=\"/etc/dnsdist\" -DBOOST_CONTAINER_USE_STD_EXCEPTIONS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O3 -Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -fvisibility=hidden -march=native -O2 -pipe -c -o dnsdist-nghttp2.o dnsdist-nghttp2.cc make[2]: *** [Makefile:1542: dnsdist-lua.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' make[1]: *** [Makefile:1685: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' make: *** [Makefile:1267: all] Error 2 * ERROR: net-dns/dnsdist-1.8.0::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-dns/dnsdist-1.8.0::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-dns/dnsdist-1.8.0::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-dns/dnsdist-1.8.0/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/dnsdist-1.8.0/temp/environment'. * Working directory: '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' * S: '/var/tmp/portage/net-dns/dnsdist-1.8.0/work/dnsdist-1.8.0' emerging with USE="-gnutls" finishes without issues. I have gnutls and ssl use flags and without gnutls, the ebuild finishes without issues. I made a check in the 1.9.0 ebuild to prevent that gnutls and ssl get enabled at the same time. Can reproduce problem with 1.8.0, 1.8.1 and also in 1.8.3, but not 1.9.0 nor 1.9.1 Suggest updating 1.8 line to 1.8.3 without IUSE=gnutls and to re-enable gnutls in 1.9.1 (In reply to jy6x2b32pie9 from comment #16) > Suggest updating 1.8 line to 1.8.3 without IUSE=gnutls and to re-enable > gnutls in 1.9.1 Sorry, but without a good reason I'm not going to readd gnutls in the newer ebuilds. It adds quite much complexity for very little gain, as most optional dns protocols need openssl anyway. |