lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV Re: devel code update (was Re: Can't read local file which


From: Klaus Weide
Subject: Re: LYNX-DEV Re: devel code update (was Re: Can't read local file which includes '%xx'...).
Date: Thu, 1 May 1997 22:07:15 -0500 (CDT)

On Fri, 2 May 1997, Nokubi Takatsugu wrote:

> On Wed, 30 Apr 1997, address@hidden wrote:
> 
> >> I have made a small update to the development code, now available in
> >> 
> >>   <URL:http://sol.slcc.edu/lynx/current/>
> >> 
> >> as lynx2.7.1ac-0.18, which changes that (not using your patch).
> 
> >> You may want to test that, if you are willing to try development code with
> >> some other experimental features and auto-config.
> 
>   I could not compile it with slang, however, can do without slang. My 
> enviroment is below.
> 
>       Solaris 2.1.5 (x86)
>       gcc 2.7.2
>       slang 0.99.38
> 
>   I had typed 'make solaris2-slang' to make lynx. But make said below
> massages and stoped compiling.

Apparently you did not use the auto-config mechanism included,
you didn't run
      ./configure
or    ./configure --with-screen=ncurses
or    ./configure --with-screen-slang

So your compilation uses the older "Makefile" instead of a "makefile"
generated by configure.

I thought that should still continue to work at this point [right,
Tom?].  But the logic of the code hase changed, it now checks for
HAVE_KEYPAD instead of using NO_KEYPAD directly.  This doesn't seem to
work correctly with (at least some of) the old "Makefile" targets any
more.

HTUtils.h now has:
/* Accommodate pre-autoconf Makefile */
 ....
#ifndef NO_KEYPAD
#define HAVE_KEYPAD 1
#endif

It probably shouldn't do this if USE_SLANG is defined.

> gcc -O -DUNIX -DSVR4 -DSOLARIS2  -DUSE_SLANG -DCURS_PERFORMANCE \
> -DUTMPX_FOR_UTMP -DUSE_DIRENT  -DLOCALE -DHAVE_TERMIOS_H \
> -I../WWW/Library/Implementation -DDIRED_SUPPORT  -DOK_TAR -DOK_ZIP \
> -DOK_GZIP -DOK_UUDECODE -DOK_OVERRIDE -DOK_PERMIT-DEXP_CHARTRANS \
>  -I.. -I../../slang/src   -c LYStrings.c
> LYStrings.c: In function `LYgetch':
> LYStrings.c:384: `KEY_DOWN' undeclared (first use this function)
> LYStrings.c:384: (Each undeclared identifier is reported only once
> LYStrings.c:384: for each function it appears in.)
> LYStrings.c:387: `KEY_UP' undeclared (first use this function)
> LYStrings.c:390: `KEY_LEFT' undeclared (first use this function)
[ ... more of those ... ]
> LYStrings.c:481: warning: unreachable code at beginning of switch statement
> make[1]: *** [LYStrings.o] Error 1
> make[1]: Leaving directory `/users/dc/nokubi/compile/lynx2-7-1/src'
> make: *** [solaris2-slang] Error 2
> 
>  'KEY_DOWN' and other macros defined in 'slang/src/slcurses.h'
> file. But no sources in lynx2-7-1/src directory included it.
>  I changed 'lynx2-7-1/src/LYCurses.h' file to include it and 
> 'slang/src/slcurses.h' file to define the macros.  But 'KEY_LL' and 
> 'KEY_CLEAR' was not defined anywhere.
> 
>  What is wrong? Version of slang? I could not find newer slang file.

When Lynx is using slang, it should not use these keypad() symbols.
Or at least it hasn't up to now, if I understand correctly, and is
not using slcurses.h (repeating the definitions it needs in LYCurses.h
instead).  

For now to compile successfully with slang, you might try to

(a) remove the three lines quted above from
    WWW/Library/Implemetation/HTUtils.h, or
(b) add -DNO_KEYPAD to the target in Makefile, or
(c) just use `./configure --with-screen=slang', and then `make generic'.

  Klaus

;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

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