lynx-dev
[Top][All Lists]
Advanced

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

Re: LYNX-DEV inews compilation error


From: Foteos Macrides
Subject: Re: LYNX-DEV inews compilation error
Date: Fri, 25 Oct 1996 19:59:11 -0500 (EST)

"Christopher R. Maden" <address@hidden> wrote:
>I finally downloaded Lynx 2.6 so that maybe I can fix my socket
>problem and maybe help out with tables.

        Wonderful!!!!!


>Trying to compile inews for Solaris 2.4, as per step 1e of
>INSTALLATION, I ran into a problem.  I am not very experienced with C
>compilers, and would appreciate any help.
>
>Initially, I was using cc as in the Makefile by default.  I got this
>helpful info:
>
>cc -O -DFOR_NN -I.. -I../conf  -c  clientlib.c
>"/usr/include/sys/socket.h", line 143: syntax error before or at: u_short
>"/usr/include/sys/socket.h", line 143: cannot recover from previous errors
>cc: acomp failed for clientlib.c
>*** Error code 2
>make: Fatal error: Command failed for target `clientlib.o'
>
>I changed the Makefile to use gcc -Wall for more info, and got this:
>
>gcc -Wall -O -DFOR_NN -I.. -I../conf  -c  clientlib.c
>In file included from clientlib.c:14:
>conf.h:99: warning: `/*' within comment
 ^^^^^^^^^
        That's just an irrelevant warning about ./utils/inews/conf.h
which at line 99 has:

/* #define USG                  /* */

You can delete the inner /* to eliminate the warning.


>In file included from clientlib.c:25:
>/usr/include/sys/socket.h:143: parse error before `u_short'
>/usr/include/sys/socket.h:143: warning: no semicolon at end of struct or union
>/usr/include/sys/socket.h:145: parse error before `}'

but both compilers say that there is an error, probably actually at
line 142, in your <sys/socket.h>

>My socket.h is the same as the ones on other Solaris systems I've
>checked, and I don't think the error is actually in there, but in one
>of the other files referenced by clientlib.c.  I just can't for the
>life of me figure out which one.

        Did you edit any of the inews configuration files, and perhaps
have a typo which somehow is carrying forward and affecting the parsing
of <sys/socket.h>?

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; 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]