bug-ncurses
[Top][All Lists]
Advanced

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

Re: xterm fails to link against local ncurses


From: Christian Ebert
Subject: Re: xterm fails to link against local ncurses
Date: Thu, 25 Nov 2010 23:49:54 +0100
User-agent: Mutt/1.5.21+17,mq+1 (c9fd966110ba) (2010-09-15)

* Thomas Dickey on Thursday, November 25, 2010 at 16:39:59 -0500
> On Thu, 25 Nov 2010, Christian Ebert wrote:
> 
>> * Thomas Dickey on Thursday, November 25, 2010 at 15:57:12 -0500
>>> On Thu, 25 Nov 2010, Christian Ebert wrote:
>> /bin/sh ./plink.sh gcc -g -O2 -I/usr/local/include -I/sw/include  
>> -L/usr/local/lib -L/sw/lib -o xterm button.o cachedGCs
>> ..o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o 
>> linedata.o main.o menu.o misc.o print.o ptydata
>> ..o scrollback.o screen.o scrollbar.o tabs.o util.o xstrings.o xtermcap.o 
>> VTPrsTbl.o TekPrsTbl.o Tekproc.o charclass.o pr
>> ecompose.o wcwidth.o -L/sw/lib -L/usr/X11/lib -lXft -lXrender -lfontconfig 
>> -lfreetype -lX11 -L/usr/X11/lib -lXaw8 -lXmu
>> -lXt -lX11 -lSM -lICE -lXau -L/usr/X11/lib -lXt -lX11 -lSM -lICE -ltermcap
> 
> and at the end of "plink.sh", _it_ does an
> 
> eval $LINKIT
> 
> For debugging the script, I sometimes add an echo command, e.g.,
> 
> echo "$LINKIT"
> 
> The text above seems to have the -L's in the right order, but a potential
> problem is in omitting some library just because the linker doesn't report
> an error.
> 
> I see "-ltermcap" above.  Perhaps that's a symbolic link to the copy of
> ncurses that you don't want.  xterm tries to find a termcap library unless
> you give this option (see INSTALL):
> 
>  --disable-full-tgetent  disable check for termcap library

Ah! this option did the trick! Great! Thank you!

> and that might be the problem (it's not using "-lncurses", so the linker
> skips over your /usr/local/lib.  This chunk in aclocal.m4 hints at the
> possible matches, depending on that option:
> 
> if test "$cf_full_tgetent" = yes ; then
>    cf_TERMLIB="termcap termlib ncurses curses"
>    cf_TERMTST="buffer[[0]] == 0"
> else
>    cf_TERMLIB="termlib ncurses curses"
>    cf_TERMTST="0"
> fi
> 
> (if you also have a "termlib" in the "wrong" place, then that's an
> additional problem)

I see.

~$ ls -l /sw/lib/libtermcap.dylib
lrwxr-xr-x  1 root  wheel  26 Apr 12  2010 /sw/lib/libtermcap.dylib -> 
ncurses/libncurses.5.dylib
~$ ls -l /usr/lib/libtermcap.dylib
lrwxr-xr-x  1 root  wheel  20 Apr 12  2010 /usr/lib/libtermcap.dylib -> 
libncurses.5.4.dylib

I do not have the same kind of link in /usr/local/lib.

Wow. You made my day ;-)

c
-- 
ich bin eine Null eine Null is eine runde Sache
     --->> http://www.blacktrash.org/hanullmann



reply via email to

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