Re: cannot build gedit



On Tue, 2003-12-30 at 16:02, Josh Trutwin wrote:
> Arg, another make error that I cannot figure out, wish I was better at debugging C.  Google and the ML archives don't seem to have any info for this one either.
> 
> Is this another #undef GTK_DISABLE_DEPRECATED issue?
> 
> Thx,
> 
> Josh
> 
> Compile output: (gcc 3.2 on SuSE 8.1)
> 
> make[1]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit'
> [===== NOW BUILDING:    gedit-2.5.0     =====]
>         [fetch] complete for gedit.
>         [checksum] complete for gedit.
>         [extract] complete for gedit.
>         [patch] complete for gedit.
>         [configure] complete for gedit.
>  ==> Running make in work/main.d/gedit-2.5.0
> make[2]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit/work/main.d/gedit-2.5.0'
> make  all-recursive
> make[3]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit/work/main.d/gedit-2.5.0'
> Making all in gedit
> make[4]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit/work/main.d/gedit-2.5.0/gedit'make  all-recursive
> make[5]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit/work/main.d/gedit-2.5.0/gedit'Making all in dialogs
> make[6]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gedit/work/main.d/gedit-2.5.0/gedit/dialogs'
> if /bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../gedit -DORBIT2=1 -pthread -I/usr/local/garnome-0.28.3/include/libgnomeui-2.0 -I/usr/local/garnome-0.28.3/include/libgnome-2.0 -I/usr/local/garnome-0.28.3/include/libgnomecanvas-2.0 -I/usr/local/garnome-0.28.3/include/gtk-2.0 -I/usr/local/garnome-0.28.3/include/libart-2.0 -I/usr/local/garnome-0.28.3/include/gconf/2 -I/usr/local/garnome-0.28.3/include/libbonoboui-2.0 -I/usr/local/garnome-0.28.3/include/glib-2.0 -I/usr/local/garnome-0.28.3/lib/glib-2.0/include -I/usr/local/garnome-0.28.3/include/orbit-2.0 -I/usr/local/garnome-0.28.3/include/libbonobo-2.0 -I/usr/local/garnome-0.28.3/include/gnome-vfs-2.0 -I/usr/local/garnome-0.28.3/lib/gnome-vfs-2.0/include -I/usr/local/garnome-0.28.3/include/bonobo-activation-2.0 -I/usr/local/garnome-0.28.3/include/pango-1.0 -I/usr/local/garnome-0.28.3/include -I/usr/local/garnome-0.28.3/include/freetype2 -I/usr/local/garnome-0.28.3/lib/gtk-2.0/include -I/usr/local/garnome-0.28.3/include/atk-1.0 -I/usr/X11R6/include -I/usr/local/garnome-0.28.3/include/libxml2 -I/usr/local/garnome-0.28.3/include/libglade-2.0 -I/usr/local/garnome-0.28.3/include/eel-2 -I/usr/local/garnome-0.28.3/include/gail-1.0 -I/usr/local/garnome-0.28.3/include/gtksourceview-1.0 -I/usr/local/garnome-0.28.3/include/libgnomeprint-2.2 -I/usr/local/garnome-0.28.3/include/libgnomeprintui-2.2   -DGNOME_ICONDIR=\""/usr/local/garnome-0.28.3/share/pixmaps"\" -DGEDIT_GLADEDIR=\""/usr/local/garnome-0.28.3/share/gedit-2/glade/"\"   -I/usr/local/garnome-0.28.3/include -I/usr/X11R6/include  -g -I/usr/local/garnome-0.28.3/include -I/usr/X11R6/include -L/usr/local/garnome-0.28.3/lib -L/usr/X11R6/lib -O2 -pipe -MT gedit-preferences-dialog.lo -MD -MP -MF ".deps/gedit-preferences-dialog.Tpo" \
>   -c -o gedit-preferences-dialog.lo `test -f 'gedit-preferences-dialog.c' || echo './'`gedit-preferences-dialog.c; \
> then mv -f ".deps/gedit-preferences-dialog.Tpo" ".deps/gedit-preferences-dialog.Plo"; \
> else rm -f ".deps/gedit-preferences-dialog.Tpo"; exit 1; \
> fi
>  cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../gedit -DORBIT2=1 -pthread -I/usr/local/garnome-0.28.3/include/libgnomeui-2.0 -I/usr/local/garnome-0.28.3/include/libgnome-2.0 -I/usr/local/garnome-0.28.3/include/libgnomecanvas-2.0 -I/usr/local/garnome-0.28.3/include/gtk-2.0 -I/usr/local/garnome-0.28.3/include/libart-2.0 -I/usr/local/garnome-0.28.3/include/gconf/2 -I/usr/local/garnome-0.28.3/include/libbonoboui-2.0 -I/usr/local/garnome-0.28.3/include/glib-2.0 -I/usr/local/garnome-0.28.3/lib/glib-2.0/include -I/usr/local/garnome-0.28.3/include/orbit-2.0 -I/usr/local/garnome-0.28.3/include/libbonobo-2.0 -I/usr/local/garnome-0.28.3/include/gnome-vfs-2.0 -I/usr/local/garnome-0.28.3/lib/gnome-vfs-2.0/include -I/usr/local/garnome-0.28.3/include/bonobo-activation-2.0 -I/usr/local/garnome-0.28.3/include/pango-1.0 -I/usr/local/garnome-0.28.3/include -I/usr/local/garnome-0.28.3/include/freetype2 -I/usr/local/garnome-0.28.3/lib/gtk-2.0/include -I/usr/local/garnome-0.28.3/include/atk-1.0 -I/usr/X11R6/include -I/usr/local/garnome-0.28.3/include/libxml2 -I/usr/local/garnome-0.28.3/include/libglade-2.0 -I/usr/local/garnome-0.28.3/include/eel-2 -I/usr/local/garnome-0.28.3/include/gail-1.0 -I/usr/local/garnome-0.28.3/include/gtksourceview-1.0 -I/usr/local/garnome-0.28.3/include/libgnomeprint-2.2 -I/usr/local/garnome-0.28.3/include/libgnomeprintui-2.2 -DGNOME_ICONDIR=\"/usr/local/garnome-0.28.3/share/pixmaps\" -DGEDIT_GLADEDIR=\"/usr/local/garnome-0.28.3/share/gedit-2/glade/\" -I/usr/local/garnome-0.28.3/include -I/usr/X11R6/include -g -I/usr/local/garnome-0.28.3/include -I/usr/X11R6/include -L/usr/local/garnome-0.28.3/lib -L/usr/X11R6/lib -O2 -pipe -MT gedit-preferences-dialog.lo -MD -MP -MF .deps/gedit-preferences-dialog.Tpo -c gedit-preferences-dialog.c  -fPIC -DPIC -o .libs/gedit-preferences-dialog.o
> gedit-preferences-dialog.c:840: parse error before '*' token
> gedit-preferences-dialog.c: In function `language_changed_cb':
> gedit-preferences-dialog.c:852: `optionmenu' undeclared (first use in this function)
> gedit-preferences-dialog.c:852: (Each undeclared identifier is reported only once
> gedit-preferences-dialog.c:852: for each function it appears in.)
> gedit-preferences-dialog.c:854: `dlg' undeclared (first use in this function)

Looks like you're using a compiler which doesn't accept variable
declarations in other places than the beginning of a block (such as gcc
< 3.0).

Edit the above-mentioned file and make sure the declarations of
optionmenu and dlg are at the beginning of the block they are declared
in.


/Jens




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