All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/openipmi: fix musl build with libexecinfo
@ 2022-01-04 20:59 Fabrice Fontaine
  2022-01-07 18:14 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2022-01-04 20:59 UTC (permalink / raw)
  To: buildroot; +Cc: Fabrice Fontaine

Disable execinfo to avoid the following musl build failure raised since
the addition of libexecinfo package in commit
eea8ba446c10701a273432552108d80fb2224ef4:

/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/10.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: /home/buildroot/autobuild/instance-3/output-1/build/openipmi-2.0.28/utils/.libs/libOpenIPMIutils.so: undefined reference to `backtrace'

Fixes:
 - http://autobuild.buildroot.org/results/dcc33c5cca97d538231647a94212450f043974b3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...igure.ac-add-without-execinfo-option.patch | 55 +++++++++++++++++++
 package/openipmi/openipmi.mk                  |  1 +
 2 files changed, 56 insertions(+)
 create mode 100644 package/openipmi/0002-configure.ac-add-without-execinfo-option.patch

diff --git a/package/openipmi/0002-configure.ac-add-without-execinfo-option.patch b/package/openipmi/0002-configure.ac-add-without-execinfo-option.patch
new file mode 100644
index 0000000000..e1838a06f4
--- /dev/null
+++ b/package/openipmi/0002-configure.ac-add-without-execinfo-option.patch
@@ -0,0 +1,55 @@
+From 388033e3d0129510c3884333bc428cefeb75e0b8 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 3 Jan 2022 23:27:21 +0100
+Subject: [PATCH] configure.ac: add --without-execinfo option
+
+Add an option to allow the user to disable execinfo to avoid the
+following build failure on musl with
+https://github.com/mikroskeem/libexecinfo:
+
+/home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/10.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: /home/buildroot/autobuild/instance-3/output-1/build/openipmi-2.0.28/utils/.libs/libOpenIPMIutils.so: undefined reference to `backtrace'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/dcc33c5cca97d538231647a94212450f043974b3
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://sourceforge.net/p/openipmi/patches/36]
+---
+ configure.ac | 14 +++++++++++++-
+ 1 file changed, 13 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 607864b9..f369166f 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -77,6 +77,16 @@ AC_ARG_WITH(poptlibs,
+     POPTLIBS="$withval"
+ )
+ 
++tryexecinfo=yes
++AC_ARG_WITH(execinfo,
++[  --with-execinfo[[=yes|no]]      Look for execinfo.],
++    if test "x$withval" = "xyes"; then
++      tryexecinfo=yes
++    elif test "x$withval" = "xno"; then
++      tryexecinfo=no
++    fi,
++)
++
+ # If UCD SNMP requires OpenSSL, this tells where to find the crypto lib
+ tryopenssl=yes
+ AC_ARG_WITH(openssl,
+@@ -275,7 +285,9 @@ AM_PROG_CC_C_O
+ AC_PROG_LIBTOOL
+ AC_STDC_HEADERS
+ 
+-AC_CHECK_HEADERS(execinfo.h)
++if test "x$tryexecinfo" != "xno"; then
++   AC_CHECK_HEADERS(execinfo.h)
++fi
+ AC_CHECK_HEADERS([netinet/ether.h])
+ AC_CHECK_HEADERS([sys/ethernet.h])
+ 
+-- 
+2.34.1
+
diff --git a/package/openipmi/openipmi.mk b/package/openipmi/openipmi.mk
index ad2f2d2f4f..b3a4d90d4b 100644
--- a/package/openipmi/openipmi.mk
+++ b/package/openipmi/openipmi.mk
@@ -15,6 +15,7 @@ OPENIPMI_INSTALL_STAGING = YES
 OPENIPMI_AUTORECONF = YES
 OPENIPMI_CONF_ENV = ac_cv_path_pkgprog="$(PKG_CONFIG_HOST_BINARY)"
 OPENIPMI_CONF_OPTS = \
+	--with-execinfo=no \
 	--with-glib=no \
 	--with-tcl=no \
 	--with-perl=no \
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/openipmi: fix musl build with libexecinfo
  2022-01-04 20:59 [Buildroot] [PATCH 1/1] package/openipmi: fix musl build with libexecinfo Fabrice Fontaine
@ 2022-01-07 18:14 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2022-01-07 18:14 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: buildroot

On Tue,  4 Jan 2022 21:59:48 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Disable execinfo to avoid the following musl build failure raised since
> the addition of libexecinfo package in commit
> eea8ba446c10701a273432552108d80fb2224ef4:
> 
> /home/buildroot/autobuild/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-musl/10.3.0/../../../../x86_64-buildroot-linux-musl/bin/ld: /home/buildroot/autobuild/instance-3/output-1/build/openipmi-2.0.28/utils/.libs/libOpenIPMIutils.so: undefined reference to `backtrace'
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/dcc33c5cca97d538231647a94212450f043974b3
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...igure.ac-add-without-execinfo-option.patch | 55 +++++++++++++++++++
>  package/openipmi/openipmi.mk                  |  1 +
>  2 files changed, 56 insertions(+)
>  create mode 100644 package/openipmi/0002-configure.ac-add-without-execinfo-option.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-07 18:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-04 20:59 [Buildroot] [PATCH 1/1] package/openipmi: fix musl build with libexecinfo Fabrice Fontaine
2022-01-07 18:14 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.