Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Aug 1997 13:15:29 -0700 (PDT)
From:      Steve Kehlet <kehlet@dt.wdc.com>
To:        Chad William Monteith <cwm@Marlar.phys.du.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: stdio declaration
Message-ID:  <Pine.NEB.3.96.970806131205.12355A-100000@daemon.dt.wdc.com>
In-Reply-To: <Pine.LNX.3.95.970806134304.28281A-100000@Marlar.phys.du.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
I've had this same problem bite me a number of times.

The problem is FreeBSD declares sys_errlist (in <stdio.h>) as:
extern const char *const sys_errlist[]

instead of just:
extern char *sys_errlist[]

like most other people.  The only solution I've found is to edit the
offending files (in your case, HTTCP.c, line 110) and change the
declaration to match FreeBSD's.  There may be a better way around this
but this has worked for me. 

Steve Kehlet



On Wed, 6 Aug 1997, Chad William Monteith wrote:

> Date: Wed, 6 Aug 1997 13:50:02 -0600 (MDT)
> From: Chad William Monteith <cwm@Marlar.phys.du.edu>
> To: freebsd-questions@FreeBSD.ORG
> Subject: stdio declaration
> 
> Hello.
> 	In trying to install Lynx (2.7.1) the install gives an error which
> the documentation does not have a fix for.  Output gives thie following
> after 'make freebsd'
> ../../Library/Implementation/HTTCP.c:110: conflicting types for
> 'sys_errlist'
> /usr/include/stdio:245: previous declaration of 'sys_errlist'
> *** Error code 1
> 
> Stop.
> 
> Trying the alternate makes of freebsd-ncurses;-slang; and general give the
> same error.  Any help?
> 
> Thanks!
> 
> -Chad
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.970806131205.12355A-100000>