bug-ncurses
[Top][All Lists]
Advanced

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

Re: [bug-ncurses] ANN: ncurses-5.9-20150110


From: Thomas Dickey
Subject: Re: [bug-ncurses] ANN: ncurses-5.9-20150110
Date: Mon, 12 Jan 2015 19:44:49 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Jan 12, 2015 at 10:51:44AM +0100, Dr. Werner Fink wrote:
> On Mon, Jan 12, 2015 at 10:48:26AM +0100, Werner Fink wrote:
> > On Sat, Jan 10, 2015 at 08:42:41PM -0500, Thomas Dickey wrote:
> > >  
> > > 20150110
> > >   + add a step to generating ".map" files, to declare any remaining
> > >     symbols beginning with "_" as local, at the last version node.
> > >   + improve configure checks for pkg-config, addressing a variant found
> > >     with FreeBSD ports.
> > >   + modify win_driver.c to provide characters for special keys, like
> > >     ansi.sys, when keypad mode is off, rather than returning nothing at
> > >     all (discussion with Eli Zaretskii).
> > >   + add "broken_linker" and "hashed-db" configure options to combinations
> > >     use for generating the ".map" and ".sym" files.
> > >   + avoid using "ld" directly when creating shared library, to simplify
> > >     cross-compiles.  Also drop "-Bsharable" option from shared-library
> > >     rules for FreeBSD and DragonFly (FreeBSD #196592).
> > >   + fix a memory leak in form library Free_RegularExpression_Type()
> > >     (report by Pavel Balaev).
> > 
> > 
> > with
> >    --with-versioned-syms
> >    --with-hashed-db
> > I see
> > 
> > [   25s] ../lib/libtic.so: undefined reference to `_nc_db_put'
> > [   25s] collect2: error: ld returned 1 exit status
> > [   25s] Makefile:275: recipe for target 'infocmp' failed
> > [   25s] make: *** [infocmp] Error 1
> > [   25s] make: *** Waiting for unfinished jobs....
> > 
> > and indeed the symbols
> > 
> >                 _nc_db_get;
> >                 _nc_db_have_index;
> >                 _nc_db_put;
> >                 _nc_hashed_db;

If I combine --with-hashed-db and --with-ticlib, I see a case where _nc_db_put
is required as a global.  But the other symbols are not needed as globals in
the combinations I've explored.  (Bear in mind that I'm not making an
exhaustive search, but trying to address combinations likely to be in use).
 
> > are local
> 
> without --with-hashed-db  see
> 
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_cur_term'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_init_pthreads'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_mutex_lock'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_mutex_unlock'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_sigprocmask'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_mutex_trylock'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_newscr'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_curscr'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_ptr_Lines'
> [   67s] ../lib/libncurses.so: undefined reference to `_nc_ptr_Cols'

There are globals in ncursest.map (and ncursestw.map).  I'll look into
improving the configure script by making it associate the renaming of
libraries as done in your earlier example

        --with-termlib=tinfo    \
        --with-ticlib=tic       \

However, the map-files themselves can be named explicitly:

    --with-versioned-syms[=XXX]
                           ^^^

e.g.,
    --with-versioned-syms='${top_srcdir}/package/ncursest.map'

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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