From owner-freebsd-questions Wed Nov 27 09:00:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA29129 for questions-outgoing; Wed, 27 Nov 1996 09:00:02 -0800 (PST) Received: from base486.synet.net (imdave@DIAL8.SYNET.NET [168.113.1.10]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id IAA29095 for ; Wed, 27 Nov 1996 08:59:56 -0800 (PST) Received: (from imdave@localhost) by base486.synet.net (8.8.3/8.8.3) id KAA04885; Wed, 27 Nov 1996 10:59:30 -0600 (CST) Date: Wed, 27 Nov 1996 10:59:30 -0600 (CST) From: Dave Bodenstab Message-Id: <199611271659.KAA04885@base486.synet.net> To: darrylb@blinx.lizard.org, questions@freebsd.org Subject: Re: GNUplot Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Darryl Bowler wrote: > > Has anyone successfully compiled GNUplot on FreeBSD or NetBSD, I keep getting > this error on both platforms. > > gcc -c -DREADLINE=1 -DNOCWDRC=1 -DX11=1 -DTERMIOS=1 -DGAMMA=gamma -DGETCWD=1 -DMEMCPY=1 -DMEMSET=1 -DXPG3_LOCALE=1 -DUNIX=1 -DNOVFORK=1 -Dunix=1 -I/usr/X11R6/include -O2 readline.c > readline.c:120: warning: `TERMIOS' redefined > *Initialization*:1: warning: this is the location of the previous definition > readline.c: In function `set_termio': > readline.c:871: `IUCLC' undeclared (first use this function) > readline.c:871: (Each undeclared identifier is reported only once > readline.c:871: for each function it appears in.) > *** Error code 1 [ You should really just look at the source... most of the compile problems with free source packages when porting to FreeBSD are very minor :-) ] Either fetch the latest beta from ftp://cmpc1.phys.soton.ac.uk/pub/ or apply a patch: --- readline.c 1996/04/30 06:50:38 3.6 +++ readline.c 1996/04/30 06:50:38 3.6.1.1 @@ -144,6 +144,9 @@ #endif #endif /* ISC22 */ #if defined(NEXT) && !defined(IUCLC) +#define IUCLC 0 /* no idea what this flag does */ +#endif +#if defined(__FreeBSD__) && !defined(IUCLC) #define IUCLC 0 /* no idea what this flag does */ #endif Dave Bodenstab imdave@synet.net