On Fri, Jun 09, 2000 at 07:18:00PM +0700, Sergei Pokrovsky wrote:
> >>>>> Thomas E Dickey writes:
> 
>   Thomas> On Thu, 8 Jun 2000, Klaus Weide wrote:
>   >> On 8 Jun 2000, Sergei Pokrovsky wrote: > I really had install
>   >> fresh ncurses and xterm; but lynx didn't want > to compile with
>   >> ncurses (at least, not the native cc, which had many > objections
>   >> against the lynx code, like ; after cpp-expanded structure
>   >> 
>   >> Maybe Tom is interested in pursuing this...
> 
>   Thomas> yes (need more information)
> 
> The complete config.log I send privately.

It looks as if the test for attributes fails because you have installed
ncurses like this:
        /usr/local/include/curses.h
        /usr/local/lib/libncurses.a

gcc finds /usr/local/include/curses.h before /usr/include/curses.h, and
does not see libncurses.a in this case as -lcurses.   I recommend that
people use the configure option --disable-overwrite, which gives this:
        /usr/local/include/ncurses/curses.h
        /usr/local/lib/libncurses.h

so gcc does not accidentally pick up curses.h when it is looking for
the libcurses.
 
in ncurses, wattrset is a macro that uses wattr_off
in solaris curses, wattrset is either defined to w32attrset, or it is a function.

> configure:10887: checking if curses supports fancy attributes
> configure:10906: gcc -o conftest -O2   conftest.c -lcurses  -lnsl -lsocket  1>&5
> Undefined                     first referenced
>  symbol                           in file
> wattr_off                           /var/tmp/ccGJaGcX1.o
> ld: fatal: Symbol referencing errors. No output written to conftest
> configure: failed program was:
> #line 10893 "configure"
> #include "confdefs.h"
> 
> #include <curses.h>
> 
> int main() {
> attrset(A_UNDERLINE|A_BOLD|A_REVERSE);
>        wattrset(stdscr, A_BLINK|A_DIM);
>        attroff(A_BOLD);
>        keypad(stdscr,TRUE);
>       
> ; return 0; }

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://dickey.his.com
ftp://dickey.his.com

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to [EMAIL PROTECTED]

Reply via email to