linux-kbuild.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] kbuild: solve the DSO link change issue
@ 2012-11-29 17:21 Cong Ding
  2012-12-09 15:15 ` Cong Ding
  0 siblings, 1 reply; 2+ messages in thread
From: Cong Ding @ 2012-11-29 17:21 UTC (permalink / raw)
  To: Michal Marek
  Cc: Yaakov Selkowitz, Peter Foley, Adam Lee, Steven Rostedt,
	linux-kbuild, linux-kernel, Cong Ding

when make menuconfig, it reports this error:

/usr/bin/ld: scripts/kconfig/lxdialog/checklist.o: undefined reference to symbol 'acs_map'
/usr/bin/ld: note: 'acs_map' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
/lib64/libtinfo.so.5: could not read symbols: Invalid operation
collect2: ld returned 1 exit status

due to the DSO link change, we must explicitly link against every library needed.
http://fedoraproject.org/wiki/UnderstandingDSOLinkChange

Signed-off-by: Cong Ding <dinggnu@gmail.com>
---
 scripts/kconfig/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index 3091794..ae339a1 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -215,6 +215,7 @@ HOSTCFLAGS_gconf.o	= `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
                           -Wno-missing-prototypes
 
 HOSTLOADLIBES_mconf   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
+HOSTLOADLIBES_mconf += -ltinfo
 
 HOSTLOADLIBES_nconf	= -lmenu -lpanel -lncurses
 $(obj)/qconf.o: $(obj)/.tmp_qtcheck
-- 
1.7.4.5


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

* Re: [PATCH 1/1] kbuild: solve the DSO link change issue
  2012-11-29 17:21 [PATCH 1/1] kbuild: solve the DSO link change issue Cong Ding
@ 2012-12-09 15:15 ` Cong Ding
  0 siblings, 0 replies; 2+ messages in thread
From: Cong Ding @ 2012-12-09 15:15 UTC (permalink / raw)
  To: Michal Marek
  Cc: Yaakov Selkowitz, Peter Foley, Adam Lee, Steven Rostedt,
	linux-kbuild, linux-kernel

Ping Michal, did you have any comments on this?

- cong

On Thu, Nov 29, 2012 at 05:21:28PM +0000, Cong Ding wrote:
> when make menuconfig, it reports this error:
> 
> /usr/bin/ld: scripts/kconfig/lxdialog/checklist.o: undefined reference to symbol 'acs_map'
> /usr/bin/ld: note: 'acs_map' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line
> /lib64/libtinfo.so.5: could not read symbols: Invalid operation
> collect2: ld returned 1 exit status
> 
> due to the DSO link change, we must explicitly link against every library needed.
> http://fedoraproject.org/wiki/UnderstandingDSOLinkChange
> 
> Signed-off-by: Cong Ding <dinggnu@gmail.com>
> ---
>  scripts/kconfig/Makefile |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
> index 3091794..ae339a1 100644
> --- a/scripts/kconfig/Makefile
> +++ b/scripts/kconfig/Makefile
> @@ -215,6 +215,7 @@ HOSTCFLAGS_gconf.o	= `pkg-config --cflags gtk+-2.0 gmodule-2.0 libglade-2.0` \
>                            -Wno-missing-prototypes
>  
>  HOSTLOADLIBES_mconf   = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(HOSTCC))
> +HOSTLOADLIBES_mconf += -ltinfo
>  
>  HOSTLOADLIBES_nconf	= -lmenu -lpanel -lncurses
>  $(obj)/qconf.o: $(obj)/.tmp_qtcheck
> -- 
> 1.7.4.5
> 

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

end of thread, other threads:[~2012-12-09 15:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-29 17:21 [PATCH 1/1] kbuild: solve the DSO link change issue Cong Ding
2012-12-09 15:15 ` Cong Ding

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).