jbc@HPCLLMV.HP.COM (Jeff Caldwell) (01/12/90)
Hello- I am an engineer in HP and recently (1/11/89) attempted to build scheme on an HP-UX version 7.0 operating system. As a result of various standards conformance requirements, including ANSI C conformance, the current code will abort with C compile time errors from mismatched type declarations of certain system functions such as fread, fwrite, geteid, lseek, and others. The first two lines of RCS.log from my scheme package are: file: compiler/fgopt/desenv.scm; revision: 4.3 date: 89/07/12 00:14:16 GMT; author: cph; state: Rel A simple solution has been provided by HP that works nicely with your build automation. By adding the following line to your CFLAGS in your makefile you will avoid the compile errors: -D_CLASSIC_POSIX_TYPES -D_CLASSIC_ANSI_TYPES \ The resulting CFLAGS definition would then be: CFLAGS = -O -Dspectrum \ -D_CLASSIC_POSIX_TYPES -D_CLASSIC_ANSI_TYPES \ -DCOMPILE_HISTORY $(MACHINE_SWITCHES) This will not have any affect on prior HP-UX 7.0 systems and should provide for transparent compatibility between prior 7.0 and beyond releases. -Jeff Caldwell | HP California Language Lab