Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!s3!lamarche From: lamarche@ireq.hydro.qc.ca Newsgroups: comp.unix.aux Subject: Compiling gcc-1.37 and X11R4 with gcc under A/UX 2.0 Message-ID: <2663@s3.ireq.hydro.qc.ca> Date: 29 Aug 90 22:08:01 GMT Sender: root@s3.ireq.hydro.qc.ca Reply-To: lamarche@ireq.hydro.qc.ca () Organization: IREQ, Hydro-Quebec Lines: 60 I was succesfull in recompiling X11R4 with gcc under A/UX 2.0 using the sources I had since mars 1990 under A/UX 1.1. I had to use my old binaries of gcc to recompile my new version of it under 2.0. I was unsuccesfull doing that with the version provided at apple.com. Here are the few modifications that I made to my sources. ****************************** * gcc-1.37 for A/UX 1.1 * ****************************** Makefile: < CFLAGS = -O -g $(XCFLAGS) -DAUX_ASM --- > CFLAGS = -O -g $(XCFLAGS) -DAUX_ASM -DAUX2 -D_BSD_SOURCE -D_SYSV_SOURCE ******************************** * X11R4 with the gcc * ******************************** mit/config/Makefile.ini: < CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) --- < CFLAGS = $(BOOTSTRAPCFLAGS) $(CDEBUGFLAGS) -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE mit/config/macII.cf: < #define OSName A/UX 1.1 < #define OSMajorVersion 1 < #define OSMinorVersion 1 < #define BootstrapCFlags -DmacII < #define StandardDefines -DmacII -DSYSV < #define StandardCppDefines -DmacII -DSYSV --- > #define OSName A/UX 2.0 > #define OSMajorVersion 2 > #define OSMinorVersion 0 > #define StandardDefines -DSYSV -D_SYSV_SOURCE -D_BSD_SOURCE -DAUX2 > #define StandardCppDefines -DSYSV -D_SYSV_SOURCE -D_BSD_SOURCE -DAUX2 mit/config/site.def: *** Ensure that HasGcc is defined *** Modify < #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \ < -traditional --- > #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \ < -traditional -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE *** and < #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return --- > #define CcCmd gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -fwritable-strings \ > -DAUX2 -D_SYSV_SOURCE -D_BSD_SOURCE I have tested most of the applications and the server and everything looks fine. I hope this can help. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= | Louis Lamarche, IREQ | lamarche@IREQ.Hydro.Qc.CA | CP 1000, Varennes | or | QC, Canada, J3X 1S1 | 514-652-8077 (office) 514-324-2919 (home)