From: Peter Korsgaard <peter@korsgaard.com>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Mario Lang <mlang@blind.guru>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/lynx: fix openssl static build
Date: Wed, 28 Feb 2024 22:00:39 +0100 [thread overview]
Message-ID: <87v868mhhk.fsf@48ers.dk> (raw)
In-Reply-To: <20240121100023.316551-1-fontaine.fabrice@gmail.com> (Fabrice Fontaine's message of "Sun, 21 Jan 2024 11:00:23 +0100")
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Use LDFLAGS instead of LIBS to fix the following openssl static build
> failure raised because lynx filters out duplicates (i.e. -lz) in
> CF_ADD_LIBS:
> configure:12958: checking for inet_ntoa
> configure:12995:
> /home/autobuild/autobuild/instance-7/output-1/host/bin/x86_64-buildroot-linux-uclibc-gcc
> -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Ofast -g0 -static -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLINUX
> -static conftest.c
> -L/home/autobuild/autobuild/instance-7/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib64
> -lssl
> -L/home/autobuild/autobuild/instance-7/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib64
> -lz -pthread -lcrypto -lz -pthread >&5
> configure:12998: $? = 0
> configure:13001: test -s conftest
> configure:13004: $? = 0
> configure:13014: result: yes
> configure:13095: checking for gethostbyname
> configure:13151: result: yes
> configure:13232: checking for strcasecmp
> configure:13288: result: yes
> configure:13401: checking for inet_aton function
> configure:13443:
> /home/autobuild/autobuild/instance-7/output-1/host/bin/x86_64-buildroot-linux-uclibc-gcc
> -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
> -D_FILE_OFFSET_BITS=64 -Ofast -g0 -static -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLINUX
> -static conftest.c
> -L/home/autobuild/autobuild/instance-7/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib64
> -lssl -lz -pthread -lcrypto >&5
> [...]
> /home/autobuild/autobuild/instance-7/output-1/host/bin/x86_64-buildroot-linux-uclibc-gcc
> -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/share/locale\" -I. -I.. -Ichrtrans
> -I./chrtrans -I.. -I../src -I.././WWW/Library/Implementation
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> -D_GNU_SOURCE -DLINUX
> -I/home/autobuild/autobuild/instance-7/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include
> -I/home/autobuild/autobuild/instance-7/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/openssl
> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
> -Ofast -g0 -static
> -Wl,-rpath,/home/autobuild/autobuild/instance-7/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib64
> -Wl,-rpath,/home/autobuild/autobuild/instance-7/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib
> -L/home/autobuild/autobuild/instance-7/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib
> -static -o lynx LYebcdic.o LYClean.o LYShowInfo.o LYEdit.o L
> YStrings.o LYMail.o HTAlert.o GridText.o LYGetFile.o LYMain.o
> LYMainLoop.o LYCurses.o LYBookmark.o LYmktime.o LYUtils.o LYOptions.o
> LYReadCFG.o LYSearch.o LYHistory.o LYForms.o LYPrint.o LYrcFile.o
> LYDownload.o LYNews.o LYKeymap.o HTML.o HTFWriter.o HTInit.o
> DefaultStyle.o LYUpload.o LYLeaks.o LYexit.o LYJump.o LYList.o LYCgi.o
> LYTraversal.o LYEditmap.o LYCharSets.o LYCharUtils.o LYMap.o
> LYCookie.o LYStyle.o LYHash.o LYPrettySrc.o TRSTable.o parsdate.o
> UCdomap.o UCAux.o UCAuto.o LYSession.o LYLocal.o
> .././WWW/Library/Implementation/libwww.a -lz -static -lncurses -lssl
> -lcrypto
> -L/home/autobuild/autobuild/instance-7/output-1/host/bin/../x86_64-buildroot-linux-uclibc/sysroot/usr/lib64
> -pthread
> /home/autobuild/autobuild/instance-7/output-1/host/lib/gcc/x86_64-buildroot-linux-uclibc/11.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld:
> /home/autobuild/autobuild/instance-7/output-1/host/x86_64-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(libcrypto-lib-c_zlib.o):
> in function `zlib_oneshot_expand_block':
> c_zlib.c:(.text+0xb8b): undefined reference to `uncompress'
> Patching aclocal.m4 is not possible as autoreconf fails due to missing
> AC_DIVERT_HELP macro.
> This build failure is only raised by autobuilders since 2024 for an
> unknown reason.
> Fixes:
> - http://autobuild.buildroot.org/results/6d4119b54fc6b6111a03f81e131e83bae0d844d1
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.02.x and 2023.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2024-02-28 21:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-21 10:00 [Buildroot] [PATCH 1/1] package/lynx: fix openssl static build Fabrice Fontaine
2024-01-31 20:21 ` Peter Korsgaard
2024-02-28 21:00 ` Peter Korsgaard [this message]
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=87v868mhhk.fsf@48ers.dk \
--to=peter@korsgaard.com \
--cc=buildroot@buildroot.org \
--cc=fontaine.fabrice@gmail.com \
--cc=mlang@blind.guru \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.