bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to get ncurses to work with util-linux


From: fgndevelop
Subject: Trying to get ncurses to work with util-linux
Date: Fri, 23 Jan 2015 00:35:41 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hey folks,

when compiling util-linux-2.25.2 I kept running into an error due to my 
ncurses-5.9 configuration.

util-linux tries to locate ncurses using pkg-config. Even though I had used the 
--enable-pc-files
switch when configuring ncurses, my util-linux build failed, stating a missing 
symbol
(from libtinfo).

I am building with gcc-4.9.2 and binutils-2.24.90.
It turned out that util-linux does not include libtinfo, because it is no 
longer included by the
linker automatically when linking against libncurses, so my build would break 
as soon as cfdisk
was asking for a symbol from libtino.

Unfortunately util-linux during configuration disregards the ncurses .pc - 
files since pkg-config
reports an error - there is no pc-file for tinfo, which is required by ncurses.

Looking into the /misc/gen-pkgconfig script which generates the .pc-files, I 
found that the
script will never generate a .pc-file for libtinfo. After applying the 
following diff,
everything worked fine.

I guess the diff would have to be modified to include the tic-library, too.

--- gen-pkgconfig.in.old        2015-01-22 23:32:53.000000000 +0100
+++ gen-pkgconfig.in    2015-01-22 23:34:18.000000000 +0100
@@ -79,7 +79,9 @@
        if test "$name" = "$root" ; then
                root=`basename $name "$CXX_LIB_SUFFIX"`
                if test "$name" = "$root" ; then
-                       continue
+                       if test "$name" != "lib${TINFO_NAME}.so"; then
+                               continue
+                       fi
                fi
        fi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]