From owner-freebsd-questions Wed Nov 27 07:24:26 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA24376 for questions-outgoing; Wed, 27 Nov 1996 07:24:26 -0800 (PST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA24369 for ; Wed, 27 Nov 1996 07:24:05 -0800 (PST) Received: from mekong.biomath.jussieu.fr (mekong.biomath.jussieu.fr [134.157.72.87]) by shiva.jussieu.fr (8.8.3/jtpda-5.2) with SMTP id QAA27251 ; Wed, 27 Nov 1996 16:22:59 +0100 (MET) Received: from mars.biomath.jussieu.fr (mars) by mekong.biomath.jussieu.fr (5.67b/jn930126+af960928(mailhost)) at Wed, 27 Nov 1996 16:22:38 +0100 Received: by mars.biomath.jussieu.fr (5.67b/jf930126+af930328) at Wed, 27 Nov 1996 16:22:36 +0100 From: af@biomath.jussieu.fr (Alain Fauconnet) Message-Id: <199611271522.AA06837@mars.biomath.jussieu.fr> Subject: Re: GNUplot To: darrylb@blinx.lizard.org (Darryl Bowler) Date: Wed, 27 Nov 1996 16:22:36 +0100 (MET) Cc: questions@freebsd.org In-Reply-To: <199611271424.OAA18038@blinx.lizard.org> from Darryl Bowler at "Nov 27, 96 02:24:17 pm" X-Mailer: ELM [version 2.4ME+ PL19 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Darryl Bowler wrote / a ecrit: > 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 > Just did a "quick and dirty" port. You're welcome to test it, if it works I might submit it to the ports maintainer (unless there's already one ? I haven't even checked... that was an easy one). I know that #ifdef SOME_UNIX_VARIANT are ugly in a source that is supposed to use GNU's autoconf... but I don't have time to fix configure. There already are quite a few such #ifdef's in the code anyway. *** plot.h.org Wed Nov 27 16:13:23 1996 --- plot.h Wed Nov 27 16:14:48 1996 *************** *** 605,607 **** --- 605,614 ---- #ifdef _Windows #include "win/wtext.h" #endif + + /* AlainF 27-Nov-1996 + Gnuplot defines its own isnumber function. Some Unices, notably + FreeBSD define it as a macro, so we have to undefine it here */ + #ifdef isnumber + #undef isnumber + #endif *** util.c.org Wed Nov 27 16:05:37 1996 --- util.c Wed Nov 27 16:05:39 1996 *************** *** 50,56 **** --- 50,59 ---- extern int errno; #endif extern int sys_nerr; + /* AlainF 27-Nov-1996 -- conflicts with definition in stdio.h for FreeBSD */ + #ifndef __FreeBSD__ extern char *sys_errlist[]; + #endif #endif #endif /* vms */ *** readline.c.org Thu Oct 20 15:12:32 1994 --- readline.c Wed Nov 27 16:00:09 1996 *************** *** 117,123 **** --- 117,125 ---- /* if there is job control then we need termios.h instead of termio.h */ /* (Are there any systems with job control that use termio.h? I hope not.) */ #ifdef SIGTSTP + #ifndef TERMIOS /* AlainF 27-Nov-1996 -- Don't redefine TERMIOS */ #define TERMIOS + #endif #include /* Added by Robert Eckardt, RobertE@beta.TP2.Ruhr-Uni-Bochum.de */ #ifdef ISC22 *************** *** 868,874 **** --- 870,883 ---- ioctl(0, TIOCSLTC, &s_ltchars); #endif /* TIOCGLTC */ #else /* SGTTY */ + /* AlainF 20-Oct-1994 IUCLC (map uppercase to lowercase) + not defined in NeXTstep + 27-Nov-1996 Not defined in FreeBSD either */ + #if defined(__NeXT__) || defined(__FreeBSD__) + rl_termio.c_iflag &= ~(BRKINT|PARMRK|INPCK|IXON|IXOFF); + #else rl_termio.c_iflag &= ~(BRKINT|PARMRK|INPCK|IUCLC|IXON|IXOFF); + #endif rl_termio.c_iflag |= (IGNBRK|IGNPAR); /* rl_termio.c_oflag &= ~(ONOCR); Costas Sphocleous Irvine,CA */ -- Alain FAUCONNET Ingenieur systeme - System Manager AP-HP/SIM Public Health 91 bld de l'Hopital 75013 PARIS FRANCE Medical Computing Research Labs Mail: af@biomath.jussieu.fr Tel: (+33) (0)1-40-77-96-19 Fax: (+33) (0)1-45-86-80-68 I've RTFMed. It says: "Refer to your system administrator" But... I *am* the system administrator :-]