[comp.os.minix] Problems building cpp and cppmake

boehme@leah.Albany.Edu (Eric M. Boehm) (06/27/90)

I have tried several times to build cpp and cppmake. cpp seems to
compile okay, but when I process makefile.cpp, minix is replaced by the
number 1.

cppmake has several problems compiling, it defines things that were
defined already (but were probably missing in 1.3). When I finally get it
to compile, it doesn't do anything. It creates a makefile with a zero
length and does not 'make' anything. If there is an updated version for
1.5.10, I am unable to find it. I have obtained the tar files from both
plains.nodak.edu and sirius.ucs.adelaide.edu.au.

Any suggestions would be appreciated.

A last note, when building the 32 bit system, bcc complained about
redefinition of NULL. I had to change unistd.h and stdlib.h and some
others from:

#define NULL ((void*) 0)

to

#ifndef NULL
#define NULL ((void *) 0)
#endif

Should this be a patch for future releases?
-- 
Eric M. Boehm
BOEHME@leah.Albany.EDU
BOEHME@ALBNYVMS.BITNET

evans@ditsyda.oz (Bruce.Evans) (06/29/90)

in article <3246@leah.Albany.Edu>, boehme@leah.Albany.Edu (Eric M. Boehm) says:
> I have tried several times to build cpp and cppmake. cpp seems to
> compile okay, but when I process makefile.cpp, minix is replaced by the
> number 1.

cpp is probably predefining minix as 1. I hade this problem with Gnu cpp
predefining i386 (there is a directory i386 in the 32-bit system makefiles).
For use with cppmake, it is safest not to predefine anything. Note that the
makefile for cppmake itself effectively predefines _MINIX and _V7.

& A last note, when building the 32 bit system, bcc complained about
& redefinition of NULL. I had to change unistd.h and stdlib.h and some
& others from:
& 
& #define NULL ((void*) 0)
& 
& to
& 
& #ifndef NULL
& #define NULL ((void *) 0)
& #endif

The header files with void* must be old - it is spelled consistently as void *
in 1.5.10. The differing white space is not significant to C but unfortunately
the preprocessor does not know that.

-- 
Bruce Evans		evans@ditsyda.syd.dit.csiro.au