lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Mon, 27 Oct 2014 21:18:37 +0200
From:	Nikos Giotis <nikos.giotis@...il.com>
To:	yann.morin.1998@...e.fr
Cc:	linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org,
	Nikos Giotis <nikos.giotis@...il.com>
Subject: [PATCH] scripts/kconfig: Add tinfo library to linker library search

For systems that have ncurses library configured with the
"--with termlib=tinfo" option the linker reports errors when
running "make menuconfig" due to undefined reference to symbol
'acs_map'. The change does not change the behaviour when
building against ncurses configured without this option. The
tinfo library is included in the lists of libraries that are
searched when buidling lxdialog sources.

Tested with kernel 3.14.22 and latest master from git

Signed-off-by: Nikos Giotis <nikos.giotis@...il.com>
---
 scripts/kconfig/lxdialog/check-lxdialog.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/scripts/kconfig/lxdialog/check-lxdialog.sh b/scripts/kconfig/lxdialog/check-lxdialog.sh
index 5075ebf..202e4bf 100755
--- a/scripts/kconfig/lxdialog/check-lxdialog.sh
+++ b/scripts/kconfig/lxdialog/check-lxdialog.sh
@@ -4,10 +4,10 @@
 # What library to link
 ldflags()
 {
-	pkg-config --libs ncursesw 2>/dev/null && exit
-	pkg-config --libs ncurses 2>/dev/null && exit
+	pkg-config --libs ncursesw tinfo 2>/dev/null && exit
+	pkg-config --libs ncurses tinfo 2>/dev/null && exit
 	for ext in so a dll.a dylib ; do
-		for lib in ncursesw ncurses curses ; do
+		for lib in ncursesw ncurses curses tinfo ; do
 			$cc -print-file-name=lib${lib}.${ext} | grep -q /
 			if [ $? -eq 0 ]; then
 				echo "-l${lib}"
-- 
1.8.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ