All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Seiderer via buildroot <buildroot@buildroot.org>
To: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: Buildroot Development <buildroot@buildroot.org>
Subject: Re: [Buildroot] libreadline undefined symbol error when generating rootfs tarball
Date: Thu, 18 Sep 2025 08:52:31 +0200	[thread overview]
Message-ID: <20250918085231.0a1a6c88@pc-1> (raw)
In-Reply-To: <9e835e4d-95bc-4b08-b5c5-65b4876a59bf@gmail.com>

On Thu, 18 Sep 2025 07:28:05 +0700, Bagas Sanjaya <bagasdotme@gmail.com> wrote:

> On 9/17/25 22:20, Peter Seiderer wrote:
> > On Wed, 17 Sep 2025 12:20:22 +0700, Bagas Sanjaya <bagasdotme@gmail.com> wrote:
> >   
> >> On Tue, Sep 16, 2025 at 08:42:17AM +0200, Peter Seiderer wrote:  
> >>> The following patch fixed the problem for me:
> >>>
> >>> diff --git a/package/readline/readline.mk b/package/readline/readline.mk
> >>> index f69cbe45e2..078607a0c5 100644
> >>> --- a/package/readline/readline.mk
> >>> +++ b/package/readline/readline.mk
> >>> @@ -15,6 +15,10 @@ READLINE_CONF_OPTS = \
> >>>   	--disable-install-examples \
> >>>   	--with-curses \
> >>>   	--with-shared-termcap-library
> >>> +HOST_READLINE_CONF_OPTS = \
> >>> +	--disable-install-examples \
> >>> +	--with-curses \
> >>> +	--with-shared-termcap-library
> >>>   READLINE_LICENSE = GPL-3.0+
> >>>   READLINE_LICENSE_FILES = COPYING
> >>>   READLINE_CPE_ID_VENDOR = gnu  
> >>
> >> Applying your patch, I get another build error (this time on gdb):
> >>
> >> ```
> >>    CXX    init.o
> >>    CXXLD  gdb
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgoto@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `UP@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetent@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetnum@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `PC@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetstr@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tgetflag@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `BC@NCURSES6_TINFO_5.0.19991023'
> >> /usr/bin/ld: /home/bagas/repo/buildroot/output/host/lib/libreadline.so: undefined reference to `tputs@NCURSES6_TINFO_5.0.19991023'
> >> collect2: error: ld returned 1 exit status
> >> make[3]: *** [Makefile:2232: gdb] Error 1
> >> ```
> >>
> >> Thanks.
> >>     
> > 
> > Sorry, could not reproduce your failure...., did you make a complete
> > 
> > 	$ make clean
> > 	$ make
> > 
> > re-build after applying the patch/change?
> >   
> 
> I can still reproduce the issue, unfortunately.
> 
> (FYI: I encountered this on host-gdb.)

One last try, does your buildroot git souce tree already contain this (recent) commmit?

	From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
	Date: Fri, 29 Aug 2025 17:24:39 +0200
	Subject: [PATCH] package/gdb: really fix build with GCC 15.x by using externalreadline

	https://gitlab.com/buildroot.org/buildroot/-/commit/d98e15a3639d9758ab3223f0a6de3a94d506e6fa.patch

Regards,
Peter

> 
> Thanks.
> 

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

  reply	other threads:[~2025-09-18  6:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-16  2:11 [Buildroot] libreadline undefined symbol error when generating rootfs tarball Bagas Sanjaya
2025-09-16  6:42 ` Peter Seiderer via buildroot
2025-09-17  5:20   ` Bagas Sanjaya
2025-09-17 15:20     ` Peter Seiderer via buildroot
2025-09-18  0:28       ` Bagas Sanjaya
2025-09-18  6:52         ` Peter Seiderer via buildroot [this message]
2025-09-18 22:18           ` Bagas Sanjaya
2025-09-19 14:20             ` Peter Seiderer via buildroot
2025-09-20  7:05               ` Bagas Sanjaya

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=20250918085231.0a1a6c88@pc-1 \
    --to=buildroot@buildroot.org \
    --cc=bagasdotme@gmail.com \
    --cc=ps.report@gmx.net \
    /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.