Re: Compiling garnome with gcc 2.95.3



Opps, I see someone already fixed this problem.

You'll encounter the same thing in gnome-games.

Mike


Jens Bech Madsen wrote:
On Tue, 2003-07-29 at 10:23, Bernd Muent wrote:

First of all: Sorry for forgetting to change the subject of my first posting.

Jens Bech Madsen schrieb:


According to Jeff Waugh it is supposed to compile with 2.95. So the best
solution is to fix the code and submit a patch with the fix.

I managed it in several function, but here I don't know what to do:

-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'

The problem function is:

layout_block_box (CRLayEng *a_this,
                  CRBox *a_cur_box)
{
        enum CRStatus status = CR_OK ;


Insert
           CRBox *cont_box;


        g_return_val_if_fail (a_cur_box && a_cur_box->style,
                              CR_BAD_PARAM_ERROR) ;



And change

        CRBox *cont_box = a_cur_box->parent ;

to
           cont_box = a_cur_box->parent ;


Cheers,
Jens






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