🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.lisp.x
Article #190

Re: winterp

#190
From: Niels Mayer
Date: Thu, 29 Nov 1990 22:24
62 lines
3994 bytes
In article <1990Nov21.181031.21486@stretch.cs.mun.ca> matthew1@stretch.cs.mun.ca (Matthew J. Newhook) writes:
>	Has anybody successfully compiled winterp on a machine other the the 
>	phux machine that the distrubution was designed for.  It seems to want
>	some non-standard header file (stdsym.h) and some X headers that we
>	are missing (Xm/Xm.h).  


I didn't really "design for" HPUX, however, I only have access to HP's
68030/68040 and PA-RISC Unix workstations, so I can't test for every
manufacturers interpretation of what "Unix" means. I have received reports
that the latest released version (Winterp v 1.01) has supposedly compiled
w/o modification on DEC Ultrix, SUN Sparcstation, etc.

<Xm/Xm.h> is the header file for Motif 1.0. To build WINTERP, you need the
Motif toolkit library and headers. Motif is supplied as part of the Unix
distributions provided by DEC, MIPS, HP, IBM, DataGeneral, etc; for Sun,
you can get Motif source for $1000.00 from OSF and compile it yourself.
Alternately, ICS, Inc. will sell you compiled Motif binaries for Sun for
about $300.00 (??). (If the lack of Motif on Sun bothers you, complain to
Sun, or better yet, get your workstations from HP). If you already have
Motif on your Suns, but you haven't installed the Motif include directory
in a standard location, then you can use the -I<fullpath>/Xm compiler
directive in your Makefile's CFLAGS.

stdsym.h is an HPUX file that is included by some other Unix include file
used by WINTERP. The reason for the error is that you used 'Makefile' or
'Makefile.hpux' without remaking the files. Both of which need to be remade
if you are compiling on an OS other than HPUX.

You should not be using 'Makefile' as is. That file is created by the
'imake' program distributed with the MIT X11r4 distribution. The
distributed 'Makefile' was created for HPUX 7.0, and you must use imake to
create a new top-level makefile, and then do (1) 'make makefiles' (2) 'make
includes' (3) 'make depend' -- now you will have a machine specific
makefile and are ready for the last step -- (4) make.

'imake' is a somewhat convoluted program to use, but it is the ONLY
STANDARD way to build X11 software that is portable. Most importantly, in
conjunction with X11 headers <X11/Xos.h>, imake will put cpp defines into
your compile that will take care of SYSV vs BSD differences like strchr()
vs index() '#include <strning.h>' vs '#include <strings.h>', '#include
<time.h>' vs. '#include <sys/time.h>' and sigvec() vs sigvector()...

If you don't want to mess with Imake, then I suggest you use Makefile.hpux
as a template for your own build process. First, you should remove all the
EXTHDRS files, and second, you should remove all the dependency information
(the rules of the form '*.o: foo.h bar.h baz.h'). The EXTHDRS and
dependencies are strictly for HPUX 7.0 and were created with the 'mkmf'
program available on HPUX. If you have 'mkmf' (which I believe is BSD),
then you may just want to do 'cp Makefile.hpux Makefile.sun' followed by
'mkmf -f Makefile.sun'. (Note that this needs to be done for
winterp/src-server/Makefile.hpux, winterp/src-client/Makefile.hpux, and
winterp/src-server/xlisp/Makefile.hpux).

Ok?

-------------------------------------------------------------------------------
	    Niels Mayer -- hplabs!mayer -- mayer@hplabs.hp.com
		  Human-Computer Interaction Department
		       Hewlett-Packard Laboratories
			      Palo Alto, CA.
				   *
Technical Details
Message-ID: <6277@hplabsz.HPL.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hplabsz!mayer
References: <1990Nov21.181031.21486@stretch.cs.mun.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucbvax!hplabs!hplabsz!mayer
From: mayer@hplabsz.HPL.HP.COM (Niels Mayer)
Newsgroups: comp.lang.lisp.x
Subject: Re: winterp
Message-ID: <6277@hplabsz.HPL.HP.COM>
Date: 29 Nov 90 22:24:43 GMT
References: <1990Nov21.181031.21486@stretch.cs.mun.ca>
Reply-To: mayer@hplabs.hp.com (Niels Mayer)
Distribution: comp
Organization: Hewlett-Packard Labs, Software & Systems Lab, Palo Alto, CA.
Lines: 62