From owner-freebsd-questions Mon Oct 21 11:40:41 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA02997 for questions-outgoing; Mon, 21 Oct 1996 11:40:41 -0700 (PDT) Received: from quackerjack.cc.vt.edu (quackerjack.cc.vt.edu [198.82.160.250]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA02992 for ; Mon, 21 Oct 1996 11:40:39 -0700 (PDT) Received: from sable.cc.vt.edu (sable.cc.vt.edu [128.173.16.30]) by quackerjack.cc.vt.edu (8.7.1/8.7.1) with SMTP id OAA17238; Mon, 21 Oct 1996 14:40:19 -0400 (EDT) Received: from localhost (jandrese.async.vt.edu [128.173.20.208]) by sable.cc.vt.edu (8.6.12/8.6.12) with SMTP id OAA23207; Mon, 21 Oct 1996 14:40:16 -0400 Date: Mon, 21 Oct 1996 14:41:36 +0000 () From: Nessus X-Sender: jandrese@localhost To: Darryl Bowler cc: questions@freebsd.org Subject: Re: compiling tin-1.22 In-Reply-To: <199610211335.OAA06235@blinx.lizard.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 :::::::::::.:.:.:.:.:.:.:.........................:.:.:.:.:.:.:.:::::::::::