* [Buildroot] [PATCH 1/1] package/zip: fix musl static build
@ 2021-08-31 19:58 Fabrice Fontaine
2021-09-11 16:29 ` Arnout Vandecappelle
2021-09-13 17:28 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2021-08-31 19:58 UTC (permalink / raw)
To: buildroot; +Cc: Jan Pedersen, Fabrice Fontaine
Fix the following static build failure on musl which is raised because
the "Check for directory libraries" in configure wrongly adds -DNO_DIR
when no directory library is needed:
/tmp/instance-0/output-1/host/bin/arm-buildroot-linux-musleabihf-gcc -c -D_FILE_OFFSET_BITS=64 -O2 -g0 -static -I. -DUNIX -DUIDGID_NOT_16BIT -DBZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_MKTIME -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H unix/unix.c
unix/unix.c:70:14: error: conflicting types for 'DIR'
70 | typedef FILE DIR;
| ^~~
Fixes:
- http://autobuild.buildroot.org/results/83a6e0c8c4ad026cb0261246e3b1a80d754454bd
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/zip/0008-fix-musl-static-build.patch | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 package/zip/0008-fix-musl-static-build.patch
diff --git a/package/zip/0008-fix-musl-static-build.patch b/package/zip/0008-fix-musl-static-build.patch
new file mode 100644
index 0000000000..a7a31eba9e
--- /dev/null
+++ b/package/zip/0008-fix-musl-static-build.patch
@@ -0,0 +1,20 @@
+fix musl static build
+
+Don't define NO_DIR if no directory library is needed
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+
+diff -Nura zip30.orig/unix/configure zip30/unix/configure
+--- zip30.orig/unix/configure 2021-08-31 21:29:55.219967136 +0200
++++ zip30/unix/configure 2021-08-31 21:50:48.239280513 +0200
+@@ -569,8 +569,8 @@
+ done
+ if [ ${OPT} ]; then
+ LFLAGS2="${LFLAGS2} ${OPT}"
+- else
+- CFLAGS="${CFLAGS} -DNO_DIR"
++ #else
++ # CFLAGS="${CFLAGS} -DNO_DIR"
+ fi
+ fi
+
--
2.32.0
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zip: fix musl static build
2021-08-31 19:58 [Buildroot] [PATCH 1/1] package/zip: fix musl static build Fabrice Fontaine
@ 2021-09-11 16:29 ` Arnout Vandecappelle
2021-09-13 17:28 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2021-09-11 16:29 UTC (permalink / raw)
To: Fabrice Fontaine, buildroot; +Cc: Jan Pedersen
On 31/08/2021 21:58, Fabrice Fontaine wrote:
> Fix the following static build failure on musl which is raised because
> the "Check for directory libraries" in configure wrongly adds -DNO_DIR
> when no directory library is needed:
>
> /tmp/instance-0/output-1/host/bin/arm-buildroot-linux-musleabihf-gcc -c -D_FILE_OFFSET_BITS=64 -O2 -g0 -static -I. -DUNIX -DUIDGID_NOT_16BIT -DBZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_MKTIME -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H unix/unix.c
> unix/unix.c:70:14: error: conflicting types for 'DIR'
> 70 | typedef FILE DIR;
> | ^~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/83a6e0c8c4ad026cb0261246e3b1a80d754454bd
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Applied to master, thanks. I added a comment that upstream is dead.
Regards,
Arnout
> ---
> package/zip/0008-fix-musl-static-build.patch | 20 ++++++++++++++++++++
> 1 file changed, 20 insertions(+)
> create mode 100644 package/zip/0008-fix-musl-static-build.patch
>
> diff --git a/package/zip/0008-fix-musl-static-build.patch b/package/zip/0008-fix-musl-static-build.patch
> new file mode 100644
> index 0000000000..a7a31eba9e
> --- /dev/null
> +++ b/package/zip/0008-fix-musl-static-build.patch
> @@ -0,0 +1,20 @@
> +fix musl static build
> +
> +Don't define NO_DIR if no directory library is needed
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +
> +diff -Nura zip30.orig/unix/configure zip30/unix/configure
> +--- zip30.orig/unix/configure 2021-08-31 21:29:55.219967136 +0200
> ++++ zip30/unix/configure 2021-08-31 21:50:48.239280513 +0200
> +@@ -569,8 +569,8 @@
> + done
> + if [ ${OPT} ]; then
> + LFLAGS2="${LFLAGS2} ${OPT}"
> +- else
> +- CFLAGS="${CFLAGS} -DNO_DIR"
> ++ #else
> ++ # CFLAGS="${CFLAGS} -DNO_DIR"
> + fi
> + fi
> +
>
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zip: fix musl static build
2021-08-31 19:58 [Buildroot] [PATCH 1/1] package/zip: fix musl static build Fabrice Fontaine
2021-09-11 16:29 ` Arnout Vandecappelle
@ 2021-09-13 17:28 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-09-13 17:28 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: Jan Pedersen, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following static build failure on musl which is raised because
> the "Check for directory libraries" in configure wrongly adds -DNO_DIR
> when no directory library is needed:
> /tmp/instance-0/output-1/host/bin/arm-buildroot-linux-musleabihf-gcc -c -D_FILE_OFFSET_BITS=64 -O2 -g0 -static -I. -DUNIX -DUIDGID_NOT_16BIT -DBZIP2_SUPPORT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_MKTIME -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H unix/unix.c
> unix/unix.c:70:14: error: conflicting types for 'DIR'
> 70 | typedef FILE DIR;
> | ^~~
> Fixes:
> - http://autobuild.buildroot.org/results/83a6e0c8c4ad026cb0261246e3b1a80d754454bd
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2021.02.x, 2021.05.x and 2021.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-14 18:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-31 19:58 [Buildroot] [PATCH 1/1] package/zip: fix musl static build Fabrice Fontaine
2021-09-11 16:29 ` Arnout Vandecappelle
2021-09-13 17:28 ` Peter Korsgaard
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.