Re: Installing problems (RH7.3) file libcroco-0.3.0/src/cr-sel-eng.c



Christian,

Firstly, your post wasn't too long.

The problem you've got is with the gcc-2.96 compiler that expects
variables to be declared before values are assigned to them.

There's a couple of solutions.

Upgrade your compiler.  This isn't trivial, but the easiest way to do
this is to upgrade your distro.

You could hack the code (if you know what you're doing) to get the
variable declared at the right time and then restart the build with
'make install'

This last option isn't as scary as it sounds, but you still need to be
careful.  If you look at the error message below, it's showing you
roughly where the problem lies, and in what file, so you've got a good
start.


Rodd

On Thu, 2003-09-11 at 08:25, Cristian wrote:
> Hi, I just got garnome, and after several time watching how it was 
> installing, got this error:
> 
> cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../src/parser -I../../intl 
> -I/root/garnome/include/glib-2.0 -I/root/garnome/lib/glib-2.0/include 
> -I/root/garnome/include/libxml2 -I/root/garnome/include/pango-1.0 
> -I/root/garnome/include/glib-2.0 -I/root/garnome/lib/glib-2.0/include 
> -I/root/garnome/include -I/usr/X11R6/include -g -I/root/garnome/include 
> -I/usr/X11R6/include -L/root/garnome/lib -L/usr/X11R6/lib -O2 -pipe -Wall 
> -c cr-sel-eng.c  -fPIC -DPIC -o cr-sel-eng.lo
> cr-sel-eng.c: In function `id_add_sel_matches_node':
> cr-sel-eng.c:139: parse error before `result'
> cr-sel-eng.c:148: `id' undeclared (first use in this function)
> cr-sel-eng.c:148: (Each undeclared identifier is reported only once
> cr-sel-eng.c:148: for each function it appears in.)
> cr-sel-eng.c:152: `result' undeclared (first use in this function)
> cr-sel-eng.c:162: warning: control reaches end of non-void function
> cr-sel-eng.c: In function `put_css_properties_in_hashtable':
> cr-sel-eng.c:792: parse error before `*'
> cr-sel-eng.c:801: `decl' undeclared (first use in this function)
> make[7]: *** [cr-sel-eng.lo] Error 1
> make[7]: Leaving directory 
> `/home/alastor/garnome/gnome/libcroco/work/main.d/libcroco-0.3.0/src/seleng'
> make[6]: *** [all-recursive] Error 1
> make[6]: Leaving directory 
> `/home/alastor/garnome/gnome/libcroco/work/main.d/libcroco-0.3.0/src'
> make[5]: *** [all-recursive] Error 1
> make[5]: Leaving directory 
> `/home/alastor/garnome/gnome/libcroco/work/main.d/libcroco-0.3.0'
> make[4]: *** [all-recursive-am] Error 2
> make[4]: Leaving directory 
> 
> And then it just exits with the error 2, I searched over the archives in 
> look of an answer without results, so Im asking for some experienced 
> advice now (since this is my first time with garnome).
> 
> Thanks in advance.
> Cristian.
> 
> PD: sorry if the message/email was kinda long, I'll try to make it shorter 
> next time (if there is next time) :-)
-- 
"Some Australians have, I fear, become desensitised to habitual
government dishonesty. I'm not one of them."

                                    -- Andrew Wilkie, Former ONA analyst




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