Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!mit-eddie!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!mcnc!unc!menges From: menges@unc.UUCP (John Menges) Newsgroups: comp.lang.c++ Subject: C++ version 1.1 on Suns Message-ID: <256@unc.unc.UUCP> Date: Tue, 18-Nov-86 16:45:03 EST Article-I.D.: unc.256 Posted: Tue Nov 18 16:45:03 1986 Date-Received: Wed, 19-Nov-86 22:08:55 EST Distribution: net Organization: CS Dept, U. of N. Carolina, Chapel Hill Lines: 62 I am trying to port C++ version 1.1 to our Suns, initally to our Sun-2s running version 3.0 of UNIX, and am having some difficulties. I'd appreciate help from anyone who has done this before or who can help me figgure out what's going wrong. Even if you can't help, I'd be interested in knowing if anyone has version 1.1 up on any Sun anywhere. Here's what I've done so far: 1. Installed C++ version 1.1 on a Vax (successfully). 2. Removed all the *..c and *..o files from the 'scratch' directory and its sub-directories. 3. Ran 'bsd.fix' to fix up the main makefile and incl/* files for BSD. 4. Fixed the '-o', 'test', and 'signal declaration' problems in the makefile and incl/signal.h . 5. Added '-Uvax -Dsun' to the CC commands in the 'fillscratch' target of the main makefile, so that the conditional code (e.g., in src/size.c) would be compiled for the Sun instead of the Vax. 6. Ran 'make fillscratch' on the Vax. 7. Matched the FILE structure in scratch/src/*..c against /usr/include/stdio.h on the Sun - looks ok. 8. Copied the whole source, including the newly-created *..c files in the 'scratch' directory to a Sun-2. 9. Ran 'make scratch' (successfully). 10. Installed CC and the bootstrap cfront and munch in my execution path. 11. Ran 'make' in the main directory, with the following result: --------------------------------------------------------------------------- % make cd lib/mk; /bin/make CC=CC CCFLAGS="-O -DBSD" BSD=1 CC -O -DBSD -I../complex -c ../complex/abs.c CC ../complex/abs.c: "/usr/include/CC/math.h", line 7: internal <> error: 470768-> base type::dcl_print( 102) 1 error cc -c -O -lC *** Error code 1 Stop. *** Error code 1 Stop. --------------------------------------------------------------------------- 12. Changed "int BI_IN_WORD = 16 ;" to "int BI_IN_WORD = 32 ;", and "int SZ_WORD = 2 ;" to "int SZ_WORD = 4 ;", to correspond with numbers quoted by Jonathan P. Leech of Caltech in an earlier news article, rather than the numbers indicated in the C++ version 1.1 source for Suns. 13. Re-ran "make scratch", re-installed the bootstrap cfront and munch in my path. 14. Re-ran "make", with the same result as in 11 above.