[bug-pcl] Problem Compiling GhostPCL with GCC 3.3.4
Stefan Kemper
stefan at artifex.com
Wed Dec 8 10:39:45 PST 2004
Hi Martin,
Some where along the line linux distros stopped defining
/usr/include/X11
I have a soft link
/usr/include/Xll -> ../X11R6/include/X11
Regards,
Stefan
On Tue, 2004-12-07 at 10:36 +0100, Martin Swiderek wrote:
> Hello,
> im trying to compile GhostPCL 1.40 on a Intel Computer running SuSE
> Linux 9.2 with gcc 3.3.4-11.
> Do you know how to fix the below attached errors, that i get (or tell me
> which gcc Versin to use)?
> Is it possible to use an existing ghostscript on the computer instead of
> building an new one?
>
> Thanks and Greetings
>
> Martin Swiderek
> Moltkestraße 15
> 55118 Mainz
> mailto:martin at swiderek.de
>
>
> Problem occurs in this gcc call (after calling make product):
> ===============================
>
> gcc -g -O -Wall -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
> -I./obj -I../gs/src -I/usr/local/X/include -o ./obj/gdevx.o
> -c ../gs/src/gdevx.c
>
> ===============================
>
> i always get the following error messages (with much more of these
> following after these lines):
> ===============================
>
> In file included from ../gs/src/gdevx.c:18:
> ../gs/src/x_.h:131:24: X11/Xlib.h: No such file or directory
> ../gs/src/x_.h:132:26: X11/Xproto.h: No such file or directory
> ../gs/src/x_.h:133:25: X11/Xatom.h: No such file or directory
> ../gs/src/x_.h:134:25: X11/Xutil.h: No such file or directory
> ../gs/src/x_.h:135:29: X11/Intrinsic.h: No such file or directory
> ../gs/src/x_.h:136:30: X11/StringDefs.h: No such file or directory
> ../gs/src/x_.h:137:25: X11/Shell.h: No such file or directory
> In file included from ../gs/src/gdevx.h:24,
> from ../gs/src/gdevx.c:30:
> ../gs/src/gdevxcmp.h:36: error: parse error before "XColor"
> ../gs/src/gdevxcmp.h:36: warning: no semicolon at end of struct or union
> ../gs/src/gdevxcmp.h:38: error: parse error before '}' token
> In file included from ../gs/src/gdevx.c:30:
> ../gs/src/gdevx.h:27: error: parse error before "gdev_x_resources"
> ../gs/src/gdevx.h:27: warning: type defaults to `int' in declaration of
> `gdev_x_resources'
> ../gs/src/gdevx.h:27: warning: data definition has no type or storage
> class
> ../gs/src/gdevx.h:29: error: parse error before
> "gdev_x_fallback_resources"
> ../gs/src/gdevx.h:29: warning: type defaults to `int' in declaration of
> `gdev_x_fallback_resources'
> ../gs/src/gdevx.h:29: warning: data definition has no type or storage
> class
> ../gs/src/gdevx.h:66: error: parse error before "XImage"
> ../gs/src/gdevx.h:66: warning: no semicolon at end of struct or union
> ../gs/src/gdevx.h:69: warning: type defaults to `int' in declaration of
> `dpy'
> ../gs/src/gdevx.h:69: warning: data definition has no type or storage
> class
> .
> .
> .
> ==================================
>
> It ends up with these messages:
> ==================================
>
>
> ../gs/src/gdevx.c:1210: error: `w' undeclared (first use in this
> function)
> ../gs/src/gdevx.c:1210: error: `h' undeclared (first use in this
> function)
> ../gs/src/gdevx.c:1212: error: `GXand' undeclared (first use in this
> function)
> ../gs/src/gdevx.c:1224: error: `GXor' undeclared (first use in this
> function)
> ../gs/src/gdevx.c:1237: error: `dev' undeclared (first use in this
> function)
> ../gs/src/gdevx.c:1251: warning: implicit declaration of function
> `XFillRectangles'
> ../gs/src/gdevx.c:1255: warning: left-hand operand of comma expression
> has no effect
> ../gs/src/gdevx.c:1261: warning: left-hand operand of comma expression
> has no effect
> /usr/include/bits/string2.h: At top level:
> ../gs/src/gdevx.h:27: warning: array `gdev_x_resources' assumed to have
> one element
> ../gs/src/gdevx.h:29: warning: array `gdev_x_fallback_resources' assumed
> to have one element
> ../gs/src/gdevx.c:972: warning: `set_tile' defined but not used
> make[2]: *** [obj/gdevx.o] Error 1
> make[2]: Leaving directory `/tmp/ghostpcl_1.40/main'
> make[1]: *** [obj/ldgs.tr] Error 2
> make[1]: Leaving directory `/tmp/ghostpcl_1.40/main'
> make: *** [product] Error 2
>
>
>
>
>
>
> _______________________________________________
> bug-pcl mailing list
> bug-pcl at ghostscript.com
> http://www.ghostscript.com/mailman/listinfo/bug-pcl
>
More information about the bug-pcl
mailing list