Article View: comp.windows.x
Article #38335Problems Building X11R6.3 with gcc/g++
From: Jay Lovell
Date: Fri, 14 Mar 1997 00:00
Date: Fri, 14 Mar 1997 00:00
68 lines
3470 bytes
3470 bytes
I'm having problems building X11R6.3 on an HP Series 400 machine with the
gcc compiler package. Essentially I enter the make world command and get
the following error message in the log:
gcc -o ccimake -O -I../../include -I../../imports/x11/include/X11
ccimake.c
gcc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake`
imake.c
gcc -o imake imake.o
make[2]: Leaving directory `/data/temp/xc/config/imake'
rm -f ./config/makedepend/Makefile.proto
./config/imake/imake -v -I./config/cf -s ./config/makedepend/Makefile.proto
-f ./config/makedepend/Imakefile -DTOPDIR=../.. -DCURDIR=./config/makedepend
/opt/hppd/bin/gcc -I. -Uunix -m68020 -I./config/cf -DTOPDIR=../..
-DCURDIR=./config/makedepend Imakefile.c
In file included from config/cf/Imake.tmpl:1178,
from Imakefile.c:8:
./config/makedepend/Imakefile:43: unterminated string or character constant
./config/makedepend/Imakefile:16: possible real start of unterminated
constant
./config/makedepend/Imakefile:14: unterminated `#if' conditional
./config/imake/imake: Exit code 1.
Stop.
make[1]: *** [config/makedepend/Makefile.proto] Error 1
make[1]: Leaving directory `/data/temp/xc'
make: *** [World] Error 2
Now the above error message is coming from the following Imakefile
(Line numbers provided by vi):
1 XCOMM $XConsortium: Imakefile /main/25 1996/09/28 16:14:57 rws $
2
3 SRCS = include.c main.c parse.c pr.c cppsetup.c ifparser.c
4 OBJS = include.o main.o parse.o pr.o cppsetup.o ifparser.o
5
6 XCOMM Some compilers generate fatal errors if an -L directory does
7 XCOMM not exist. Since BUILDLIBDIR may not exist yet suppress its
use.
8 LDPRELIB =
9 LDPRELIBS =
10
11 #if HasGcc && !defined(PreIncDir)
12 #define PreIncDir /usr/local/lib/gcc-include
13 #endif
14 #ifdef PreIncDir
15 PREINCDIR = PreIncDir
16 PREINC_DEFINES = -DPREINCDIR=\"$(PREINCDIR)\"
17 #endif
18 #ifndef StdIncDir
19 #define StdIncDir /usr/include
20 #endif
21 STDINCDIR = StdIncDir
22 STDINC_DEFINES = -DINCLUDEDIR=\"$(STDINCDIR)\"
23 #ifdef PostIncDir
24 POSTINCDIR = PostIncDir
...
Note that on line 16 and others, I have "escaped" quotes. This is where I
think the problem lies. I know that in ansi compiles backslashes are not
allowed inside quoted strings and the end of line 16 does just that.
However, I'm not sure what to do about it. I know that X11R6 has been
compiled on other platforms using gcc so I know that it should compile clean
"as is" with gcc. My problem is that I don't know what compiler options
should be used (for example -traditional or -ansi) to get it to get around
this problem.
If anyone can offer guidance or words of wisdom, I'd be very grateful!
Technical Details
Message-ID:
<3329BD78.784@bridge.bst.bls.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,44bf74f0717e83d,start X-Google-Attributes: gid11318c,public X-Google-Thread: 103734,44bf74f0717e83d,start X-Google-Attributes: gid103734,public X-Google-Thread: 10ba33,44bf74f0717e83d,start X-Google-Attributes: gid10ba33,public From: Jay Lovell <jay.lovell@bridge.bst.bls.com> Subject: Problems Building X11R6.3 with gcc/g++ Date: 1997/03/14 Message-ID: <3329BD78.784@bridge.bst.bls.com> X-Deja-AN: 225550856 Organization: BellSouth Newsgroups: comp.windows.x,gnu.g++.help,gnu.gcc.help