Re: compiling libgnomeprint fails (because of zlib?)



Hi, I'm just trying to compile garnome 0.25.1.
My Compiler is gcc 2.95.3

I've got massive problems with compile libcroco-0.3.0.

Typical errors are:
make[8]: Entering directory `/usr/src/garnome-0.25.1/gnome/libcroco/work/main.d/libcroco-0.3.0/src/layeng' /bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src/parser -I../../src/seleng -I../../intl -I/opt/gnome2_2_2/include/glib-2.0 -I/opt/gnome2_2_2/lib/glib-2.0/include -I/opt/gnome2_2_2/include/libxml2 -DORBIT2=1 -pthread -I/opt/gnome2_2_2/include/libgnomeui-2.0 -I/opt/gnome2_2_2/include/libgnome-2.0 -I/opt/gnome2_2_2/include/libgnomecanvas-2.0 -I/opt/gnome2_2_2/include/gtk-2.0 -I/opt/gnome2_2_2/include/libart-2.0 -I/opt/gnome2_2_2/include/gconf/2 -I/opt/gnome2_2_2/include/libbonoboui-2.0 -I/opt/gnome2_2_2/include/glib-2.0 -I/opt/gnome2_2_2/lib/glib-2.0/include -I/opt/gnome2_2_2/include/orbit-2.0 -I/opt/gnome2_2_2/include/libbonobo-2.0 -I/opt/gnome2_2_2/include/gnome-vfs-2.0 -I/opt/gnome2_2_2/lib/gnome-vfs-2.0/include -I/opt/gnome2_2_2/include/bonobo-activation-2.0 -I/opt/gnome2_2_2/include/pango-1.0 -I/opt/gnome2_2_2/include -I/opt/gnome2_2_2/include/freetype2 -I/opt/gnome2_2_2/lib/gtk-2.0/include -I/opt/gnome2_2_2/include/atk-1.0 -I/usr/X11R6/include -I/opt/gnome2_2_2/include/libxml2 -I/opt/gnome2_2_2/include -I/usr/X11R6/include -g -I/opt/gnome2_2_2/include -I/usr/X11R6/include -L/opt/gnome2_2_2/lib -L/usr/X11R6/lib -O2 -pipe -Wall -c cr-lay-eng.c cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src/parser -I../../src/seleng -I../../intl -I/opt/gnome2_2_2/include/glib-2.0 -I/opt/gnome2_2_2/lib/glib-2.0/include -I/opt/gnome2_2_2/include/libxml2 -DORBIT2=1 -pthread -I/opt/gnome2_2_2/include/libgnomeui-2.0 -I/opt/gnome2_2_2/include/libgnome-2.0 -I/opt/gnome2_2_2/include/libgnomecanvas-2.0 -I/opt/gnome2_2_2/include/gtk-2.0 -I/opt/gnome2_2_2/include/libart-2.0 -I/opt/gnome2_2_2/include/gconf/2 -I/opt/gnome2_2_2/include/libbonoboui-2.0 -I/opt/gnome2_2_2/include/glib-2.0 -I/opt/gnome2_2_2/lib/glib-2.0/include -I/opt/gnome2_2_2/include/orbit-2.0 -I/opt/gnome2_2_2/include/libbonobo-2.0 -I/opt/gnome2_2_2/include/gnome-vfs-2.0 -I/opt/gnome2_2_2/lib/gnome-vfs-2.0/include -I/opt/gnome2_2_2/include/bonobo-activation-2.0 -I/opt/gnome2_2_2/include/pango-1.0 -I/opt/gnome2_2_2/include -I/opt/gnome2_2_2/include/freetype2 -I/opt/gnome2_2_2/lib/gtk-2.0/include -I/opt/gnome2_2_2/include/atk-1.0 -I/usr/X11R6/include -I/opt/gnome2_2_2/include/libxml2 -I/opt/gnome2_2_2/include -I/usr/X11R6/include -g -I/opt/gnome2_2_2/include -I/usr/X11R6/include -L/opt/gnome2_2_2/lib -L/usr/X11R6/lib -O2 -pipe -Wall -c cr-lay-eng.c -fPIC -DPIC -o cr-lay-eng.lo
cr-lay-eng.c: In function `layout_block_box':
cr-lay-eng.c:1221: parse error before `*'
cr-lay-eng.c:1223: `cont_box' undeclared (first use in this function)
cr-lay-eng.c:1223: (Each undeclared identifier is reported only once
cr-lay-eng.c:1223: for each function it appears in.)
make[8]: *** [cr-lay-eng.lo] Error 1
make[8]: Leaving directory `/usr/src/garnome-0.25.1/gnome/libcroco/work/main.d/libcroco-0.3.0/src/layeng'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/usr/src/garnome-0.25.1/gnome/libcroco/work/main.d/libcroco-0.3.0/src'
make[6]: *** [all-recursive] Error 1
make[6]: Leaving directory `/usr/src/garnome-0.25.1/gnome/libcroco/work/main.d/libcroco-0.3.0'
make[5]: *** [all-recursive-am] Error 2
make[5]: Leaving directory `/usr/src/garnome-0.25.1/gnome/libcroco/work/main.d/libcroco-0.3.0'
make[4]: *** [build-work/main.d/libcroco-0.3.0/Makefile] Error 2
make[4]: Leaving directory `/usr/src/garnome-0.25.1/gnome/libcroco'

With some hints, I found with google, I was able to adjust the source code, so that it was possible to compile it. I found out that the problem is that I have to use gcc 3.X instead of gcc 2.95.X.
What ist the better reason: Updating the gcc compiler or adjusting the source code?

Thank you for tips, Bernd




--
Bernd Münt                         Durchwahl: 030/69032-509
euroscript Language Services GmbH  Zentrale:  030/69032-300
Abteilung IT-Management            Fax:       030/69032-333
Grimmstr. 23                       Mail: muent euroscript-ls de
10967 Berlin                       Web:  http://www.euroscript-ls.de




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]