Date: Mon, 21 Oct 1996 14:41:36 +0000 () From: Nessus <jandrese@vt.edu> To: Darryl Bowler <darrylb@blinx.lizard.org> Cc: questions@freebsd.org Subject: Re: compiling tin-1.22 Message-ID: <Pine.BSF.3.95.961021143006.890A-100000@localhost> In-Reply-To: <199610211335.OAA06235@blinx.lizard.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Oct 1996, Darryl Bowler wrote: =)Has any met this problem when compiling tin-1.22 =) =)Compiling tin v1.22 for BSD/BSDI/DGUX/NeXT/OSF1/Pyramid/SunOS/Ultrix... =)cc -c -O -DBSD -DNNTP_INEWS_GATEWAY=\"\" -DNNTP_INEWS_DOMAIN=\"\" -DNNTP_DEFAULT_SERVER=\"\" -DLIBDIR=\"/usr/lib/news\" -DSPOOLDIR=\"/usr/spool/news\" -DNOVROOTDIR=\"/usr/spool/news\" screen.c =)In file included from tin.h:53, =) from screen.c:15: =)/usr/include/sys/param.h:45: warning: `BSD' redefined =)*Initialization*:1: warning: this is the location of the previous definition =)screen.c: In function `perror_message': =)screen.c:73: conflicting types for `sys_errlist' =)/usr/include/stdio.h:244: previous declaration of `sys_errlist' =)*** Error code 1 =) =) =)Stop. =)*** Error code 1 =) =)Stop. =) This is a pretty common error when compiling from generic BSD source. Look in /usr/include/stdio for the correct definition. Basically, you have to add the word (const) in there twice: so it reads const char* const syserrlist[] instead char* syserrlist[] I've never run into a problem with this change. :::::::::::::::::::::::::::. . . . . ..:::::::::::::::::::::::::::: :: Jason Andresen :. . . . . . . . . : Running FreeBSD and :: :: jandrese@vt.edu :.:.:.:.:.:.:.:.:.:: loving every minute! :: :.........................: Quote of the day :..........................: If Christianity was morality, Socrates would be the Saviour. -- William Blake :::::::::::.:.:.:.:.:.:.:.........................:.:.:.:.:.:.:.:::::::::::
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.961021143006.890A-100000>