home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from info-gnuplot to comp.graphics.gnuplot; Fri, 20 Nov 1992 14:38:54 EST
- Message-ID: <9211201934.AA11982@thneed.cs.duke.edu>
- Subject: gnuplot fixes to compile on DEC Alpha running OSF/1
- Date: Fri, 20 Nov 1992 14:34:49 EST
- From: khera@cs.duke.edu (Vivek Khera)
- Newsgroups: comp.graphics.gnuplot
- Path: sparky!uunet!wendy-fate.uu.net!info-gnuplot
- Sender: info-gnuplot-request@arc.nasa.gov
- Lines: 45
-
- i had to make some hacks to get gnuplot 3.2 to compile on an Alpha machine
- running OSF/1 from DEC. basically i started with the dec/ultrix setup and
- changed a couple of things. here's the additions to the makefile.unx file:
-
-
- DEC_OSF_FLAGS = \
- CFLAGS="$(COPTS) $(OPTIONS) -DNOGAMMA" \
- LIBS="$(LIBS)" X11FLAGS="$(X11FLAGS)" X11INCLUDES="$(X11INCLUDES)" \
- X11LIBS="$(X11LIBS)" \
- PLOTXFLAG="$(PLOTXFLAG)" GNUPLOT_X11=$(GNUPLOT_X11) \
- X11INSTALL="$(X11INSTALL)" \
- TERMFLAGS="$(TERMFLAGS)"
-
-
- dec_osf:
- $(MAKE) $(MFLAGS) $(MY_FLAGS) $(DEC_OSF_FLAGS) $(TARGET)
-
- and everywhere the function complex() is used and the <math.h> header is
- included, i had to do something like this:
-
- #define complex XXX
- #include <math.h>
- #undef complex
-
- since the DEC OSF/1 math.h header has a typedef for the word "complex":
-
- typedef struct { double r, i; } complex;
-
- which causes all kinds of problems. maybe the complex() function in gnuplot
- should be renamed? i'm not sure what kind of fix could be made for this.
-
- also, the make install target can't do a "strip" on the executables for some
- reason, so i had to take that out.
-
- with these changes, the build went quite smoothly. everything tests out
- fine, and is quite fast, i might add.
-
- i think since these machines are starting to become available, you might
- want to add some of these notes (if not the fixes themselves) to the 3.3
- release so people can get things working.
- v.
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Vivek Khera, Gradual Student/Systems Guy Department of Computer Science
- Internet: khera@cs.duke.edu Box 90129
- (MIME mail accepted) Durham, NC 27708-0129 (919)660-6528
-