Re: error building librsvg



On Mon, 29 Dec 2003 01:57:32 +0100
sjoerd air luon net (Sjoerd Simons) wrote:

> On Sun, Dec 28, 2003 at 11:32:03PM +0000, Jean-FranÁcois Chevrette wrote:
> > I've "fixed" that by putting
> > #undef GTK_DISABLE_DEPRECATED
> > 
> > BEFORE
> > 
> > #include <libgnomeui/gnome-entry.h>
> > 
> > in
> > 
> > $INSTALL_PATH/garnome/include/libgnomeui-2.0/libgnomeui/libgnomeui.h
> 
> i've fixed it by putting #ifndef GTK_DISABLE_DEPRECATED below 
> #ifndef GNOME_DISABLE_DEPRECATED in gnome-entry.h in the same dir (and
> and matching #endif at the end of the file).
> 
> I don't know what the best fix is, but gtk in garnome is build with
> GTK_DISABLE_DEPRECATED so i guess other libraries also shouldn't build
> against deprecated gtk headers. With the 'undef fix' libsrvg will be
> indirectly build against a deprecated part of the gtk api.. 

Thanks, that fixed it.

Now I have a new one - popt related - compiling gnometris in the games section.  No love on google or the ML archives.  I built the latest popt (1.7) and tried again, still no go.  

Any thoughts?

Compiler output:

make[5]: Entering directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -std=gnu89      -I/usr/local/garnome-0.28.3/include/libgnome-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/gconf/2 -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/libgnomeui-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/libbonoboui-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/gnome-vfs-module-2.0   -I../libgames-support -Wall -Wmissing-prototypes  -I../libgames-support -DDATADIR=\""/usr/local/garnome-0.28.3/share"\" -DGNOMELOCALEDIR=\""/usr/local/garnome-0.28.3/share/locale"\"    -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" \
  -c -o main.o `test -f 'main.cpp' || echo './'`main.cpp; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
In file included from /usr/local/garnome-0.28.3/include/libgnome-2.0/libgnome/gnome-program.h:35,
                 from /usr/local/garnome-0.28.3/include/libgnome-2.0/libgnome/libgnome.h:29,
                 from /usr/local/garnome-0.28.3/include/libgnomeui-2.0/gnome.h:5,
                 from tetris.h:25,
                 from main.cpp:22:
/usr/local/include/popt.h:183: conflicting types for `typedef struct
   poptOption*poptOption'
/usr/local/include/popt.h:114: previous declaration as `struct poptOption'
/usr/local/include/popt.h:210: conflicting types for `struct poptOption'
/usr/local/include/popt.h:183: previous declaration as `typedef struct
   poptOption*poptOption'
main.cpp: In function `int main(int, char**)':
main.cpp:40: initializer for scalar variable requires one element
make[5]: *** [main.o] Error 1
make[5]: Leaving directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2/gnometris'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games/work/main.d/gnome-games-2.5.2'
make[1]: *** [build-work/main.d/gnome-games-2.5.2/Makefile] Error 2
make[1]: Leaving directory `/usr/local/source/gnome/garnome-0.28.3/gnome/gnome-games'
make: *** [../../gnome/gnome-games/cookies/main.d/install] Error 2

Here's the offending line in main.cpp.  I'm not much of a C/C++ programmer to figure out what the compiler doesn't like here.

	poptOption options[] = 
	{
		{"level", 'l', POPT_ARG_INT, &cmdlineLevel, 0, N_("Set starting level (1-10)"), N_("LEVEL")},
		{0, '\0', 0, 0, 0}
	};

Thanks,

Josh



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