From: SMTP%"levitte@lp.se" 10-MAR-1997 20:26:42.75 To: pmoreau@cena.dgac.fr CC: Subj: A little bug in VMS-DECC.MAK and VMS.MAK from GHOSTSCRIPT_351_SRC.ZIP I don't know if it's to you of ghost@aladdin.com I should turn, but since I got GHOSTSCRIPT_351_SRC.ZIP from your archive, here goes: In VMS-DECC.MAK, it is assumed that if DECC$LIBRARY_INCLUDE doesn't exist, the include files are not online. This is not completelly true, as there may be a directory SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF], where copies of the DEC C include files are stored. In that case, it is a good thing to define DECC$LIBRARY_INCLUDE to point there. The reason is that if you have VAX C as well, but want to compile with DEC C, there is a conflict between DEC C's definition of ftime() in TIMEB and VAX C's definition in SYS$LIBRARY:TIME.H. The following patch fixes this: *** PD:[SRC.GS3_51]VMS-DECC.MAK;1 Wed Sep 27 14:48:54 1995 --- vms-decc.mak Mon Mar 10 19:03:22 1997 *************** *** 68,73 **** --- 68,78 ---- $ ! $ ! Give ourself a healthy search list for C include files $ ! + $ if f$trnlnm("DECC$LIBRARY_INCLUDE").eqs."" - + .and.f$search("SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF]*.H").nes."" + $ then + $ DEFINE DECC$LIBRARY_INCLUDE SYS$COMMON:[DECC$LIB.REFERENCE.DECC$RTLDEF] + $ endif $ if f$trnlnm("DECC$LIBRARY_INCLUDE").nes."" $ then $ DEFINE DECC$USER_INCLUDE 'F$ENVIRONMENT("DEFAULT"),DECW$INCLUDE,DECC$LIBRARY_INCLUDE,SYS$LIBRARY Then we have VMS.MAK that contains a really blatant bug: *** PD:[SRC.GS3_51]VMS.MAK;1 Wed Sep 27 18:23:31 1995 --- vms.mak Mon Mar 10 19:39:54 1997 *************** *** 110,122 **** $ ! $ ! Build GCONFIG_.H $ ! ! $ ECHOGS -w gconfig_.h #define SYSTIME_H $ ! $ ! Build GCONFIGV.H $ ! ! $ ECHOGS -w gconfigv.h #define USE_ASM 0 ! $ ECHOGS -a gconfigv.h #define USE_FPU 1 ! $ ECHOGS -a gconfigv.h #define EXTEND_NAMES 0 $ ! $ ! Now generate *.dev files $ ! --- 110,122 ---- $ ! $ ! Build GCONFIG_.H $ ! ! $ ECHOGS -w gconfig_.h "#define SYSTIME_H" $ ! $ ! Build GCONFIGV.H $ ! ! $ ECHOGS -w gconfigv.h "#define USE_ASM 0" ! $ ECHOGS -a gconfigv.h "#define USE_FPU 1" ! $ ECHOGS -a gconfigv.h "#define EXTEND_NAMES 0" $ ! $ ! Now generate *.dev files $ ! If I should have turned to ghost@aladdin.com, please just forward this letter to him. Enjoy! -- R Levitte, Levitte Programming; Spannv. 38, I; S-161 43 Bromma; SWEDEN Tel: +46-8-26 52 47; Cel: +46-10-222 64 05; No fax right now PGP key fingerprint = A6 96 C0 34 3A 96 AA 6C B0 D5 9A DF D2 E9 9C 65 Check http://www.lp.se/~levitte for my public key. bastard@bofh.se