lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV problem compiling lynx2-7-1 + fotemods "7-27-97" on linux.


From: Klaus Weide
Subject: Re: LYNX-DEV problem compiling lynx2-7-1 + fotemods "7-27-97" on linux.
Date: Wed, 30 Jul 1997 00:42:06 -0500 (CDT)

On Tue, 29 Jul 1997, Kent Robotti wrote:

> I get this when i try to compile lynx-2-7-1 + fotemods "7-27-97" on linux.
> 
> make linux-slang
> 
> LYOptions.c: In function `options':
> LYOptions.c:1200: case label not within a switch statement
> LYOptions.c:1218: case label not within a switch statement
> LYOptions.c:1219: case label not within a switch statement
> LYOptions.c:1222: default label not within a switch statement
> LYOptions.c: At top level:
> LYOptions.c:1231: conflicting types for `term_options'
> LYOptions.c:32: previous declaration of `term_options'
> LYOptions.c:1231: warning: data definition has no type or storage class
> LYOptions.c:1232: parse error before `2'
> LYOptions.c:1232: conflicting types for `signal'
> /usr/include/signal.h:64: previous declaration of `signal'
> LYOptions.c:1232: warning: data definition has no type or storage class
> make[1]: *** [LYOptions.o] Error 1
> make: *** [linux-slang] Error 2
> 
> 
> #define EXEC_LINKS   
> #define EXEC_SCRIPTS   
> 
> #define LYNXCGI_LINKS 
> 
> /*#define ALLOW_USERS_TO_CHANGE_EXEC_WITHIN_OPTIONS*/ 
> 
> If i don't define ALLOW_USERS there's no problem with LYOptions.c.

I don't understand how your compiler comes up with the line numbers in
those messages.  Anyway, the following (untested) patch should fix it.
Probably.

    Klaus

*** lynx2-7-1/src/LYOptions.c~  Sat Jul 26 18:48:43 1997
--- lynx2-7-1/src/LYOptions.c   Tue Jul 29 23:39:21 1997
***************
*** 1225,1233 ****
                if (local_exec) {
                    itmp = 2;
                } else
- #else
-               {
  #endif /* !NEVER_ALLOW_REMOTE_EXEC */
                    if (local_exec_on_local_files) {
                        itmp= 1;
                    } else {
--- 1225,1232 ----
                if (local_exec) {
                    itmp = 2;
                } else
  #endif /* !NEVER_ALLOW_REMOTE_EXEC */
+               {
                    if (local_exec_on_local_files) {
                        itmp= 1;
                    } else {

;
; 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]