Skip to contentSkip to conversation

kbuild: solve the DSO link change issue

PATCH In review Cong Ding 1 participant 2 messages Nov 29, 2012 – Dec 9, 2012

Subsystems (2)
lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 kbuild: solve the DSO link change issue

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

---
 scripts/kconfig/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/kconfig/Makefile +1 -0
index 3091794..ae339a1 100644
@@ -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
Signature · 1 line
1.7.4.5
author
#1 lore raw

Ping Michal, did you have any comments on this?

- cong

Quoted 30 lines · 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

---
 scripts/kconfig/Makefile |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
scripts/kconfig/Makefile +1 -0
index 3091794..ae339a1 100644
@@ -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
Signature · 1 line
1.7.4.5