From: Peter Korsgaard <peter@korsgaard.com> To: buildroot@buildroot.org Subject: [Buildroot] [git commit branch/2022.02.x] package/libmodsecurity: needs dynamic library with libcurl and mbedtls Date: Tue, 19 Jul 2022 18:35:54 +0200 [thread overview] Message-ID: <20220719162323.01D1283DF5@busybox.osuosl.org> (raw) commit: https://git.buildroot.net/buildroot/commit/?id=2d021a7e7163d13b604d508602288e7190ab63dc branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x libmodsecurity embeds several mbedtls source files since version 3.0.0 and https://github.com/SpiderLabs/ModSecurity/commit/a3ae686f2555bdacbfc9e1889ad05065711a165d resulting in the following static build failure if curl is built with mbedtls support: /home/buildroot/autobuild/instance-0/output-1/host/opt/ext-toolchain/m68k-buildroot-uclinux-uclibc/bin/ld.real: /home/buildroot/autobuild/instance-0/output-1/host/bin/../m68k-buildroot-uclinux-uclibc/sysroot/usr/lib/libmbedcrypto.a(md5.c.o): in function `mbedtls_md5_free': md5.c:(.text+0x16): multiple definition of `mbedtls_md5_free'; ../../src/.libs/libmodsecurity.a(libmbedtls_la-md5.o):md5.c:(.text+0x16): first defined here Fixes: - http://autobuild.buildroot.org/results/98472a3a41cdbcb3d02289a437074a267f4b2e8e Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> (cherry picked from commit 9fc652a373034118535397fdd4042ab9f8fd7adf) Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- package/libmodsecurity/Config.in | 5 +++++ package/nginx-modsecurity/Config.in | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/package/libmodsecurity/Config.in b/package/libmodsecurity/Config.in index 87f7a9c103..f65ab3de93 100644 --- a/package/libmodsecurity/Config.in +++ b/package/libmodsecurity/Config.in @@ -2,6 +2,8 @@ config BR2_PACKAGE_LIBMODSECURITY bool "libmodsecurity" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS + # libmodsecurity embeds several mbedtls source files + depends on !(BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS) select BR2_PACKAGE_PCRE help Libmodsecurity is one component of the ModSecurity @@ -17,3 +19,6 @@ config BR2_PACKAGE_LIBMODSECURITY comment "libmodsecurity needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS + +comment "libmodsecurity needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS diff --git a/package/nginx-modsecurity/Config.in b/package/nginx-modsecurity/Config.in index b1fcbadd7a..5cbe57a866 100644 --- a/package/nginx-modsecurity/Config.in +++ b/package/nginx-modsecurity/Config.in @@ -3,6 +3,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY depends on BR2_PACKAGE_NGINX_HTTP depends on BR2_INSTALL_LIBSTDCPP # libmodsecurity depends on BR2_TOOLCHAIN_HAS_THREADS # libmodsecurity + depends on !(BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS) # libmodsecurity select BR2_PACKAGE_LIBMODSECURITY help The ModSecurity-nginx connector is the connection @@ -14,3 +15,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY comment "nginx-modsecurity needs a toolchain w/ C++, threads" depends on BR2_PACKAGE_NGINX_HTTP depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS + +comment "nginx-modsecurity needs a toolchain w/ dynamic library" + depends on BR2_PACKAGE_NGINX_HTTP + depends on BR2_STATIC_LIBS && BR2_PACKAGE_LIBCURL_MBEDTLS _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot
reply other threads:[~2022-07-19 16:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220719162323.01D1283DF5@busybox.osuosl.org \ --to=peter@korsgaard.com \ --cc=buildroot@buildroot.org \ --subject='Re: [Buildroot] [git commit branch/2022.02.x] package/libmodsecurity: needs dynamic library with libcurl and mbedtls' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).
Read more here: Source link