Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 1996 16:22:36 +0100 (MET)
From:      af@biomath.jussieu.fr (Alain Fauconnet)
To:        darrylb@blinx.lizard.org (Darryl Bowler)
Cc:        questions@freebsd.org
Subject:   Re: GNUplot
Message-ID:  <199611271522.AA06837@mars.biomath.jussieu.fr>
In-Reply-To: <199611271424.OAA18038@blinx.lizard.org> from Darryl Bowler at "Nov 27, 96 02:24:17 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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 <termios.h>
  /* 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 :-]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611271522.AA06837>