synaptic-devel
[Top][All Lists]
Advanced

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

Re: [Synaptic-devel] get configure and compile errors


From: Richard Bos
Subject: Re: [Synaptic-devel] get configure and compile errors
Date: Mon, 16 Jun 2003 11:10:55 +0200
User-agent: KMail/1.5

Michael,

the hint about atk-devel and pkg-config --list-all solved the problem.  
Especially the pkg-config --list-all tip was very usefull.

It would be nice if you can provide a gcc-3.3 tarball (0.37?), but the diff 
you attached seems sufficient too.

Thanks sofar :)

Op maandag 16 juni 2003 09:48, schreef Michael Vogt:
> On Sun, Jun 15, 2003 at 10:30:39PM +0200, Richard Bos wrote:
> > Hello,
>
> Hi Richard,
>
> from reading your mail, it might be enought that you install something
> like atk-devel. Then configure might run fine (just a guess, more
> information below).
>
> In make, it fails with "assert undefined". This is a g++ 3.3 problem,
> you always have to have "#include <cassert>" in a file that uses
> assert(). This is fixed in the current svn tree.  I attached a patch
> that fixes those issues (taken from the current development tree).
>
> If you want to check out 0.37, I can make you a tgz available or you
> may just check out the svn tree. The current state is that is pretty
> stable and I want to release it once it gets a bit more testing. It
> has some nice new stuff in it :)
>
> More information about the details of the configure problem below:
> > I hope to get some assistance to get synaptic, build on my system, which
> > is SuSE-8.2 with gcc: 3.3.
> >
> > I've a couple of problems, configure bails out and a make error see below
> > for the details.
> >
> > -  configure:
>
> [..]
>
> > configure: error: Library requirements (gtk+-2.0 >= 2.0.0, libglade-2.0
> > >= 2.0.0, pango >= 1.0.0, glib-2.0) not met; consider adjusting the
> > PKG_CONFIG_PATH environment variable if your libraries are in a
> > nonstandard prefix so pkg-config can find them.
>
> Suse seems to use different names for the packages. You can check this
> with "pkg-config --list-all". This gives you a complette list of all
> installed pkg-config modules.
>
> You may also have a look into: /usr/lib/pkgconfig
> All modules for pkg-config have there config file there (at least in
> debian).
>
> > -  package atk exist in the system: rpm -q atk -> atk-1.2.2-43, as I'm
> > not
>
> It might be needed that you install atk-devel as well.
>
> > familair with pkg-config and the man page does not help me to much either
> > I hope to obtain the golden hint from this list.
> > I think that I have the files that are provided by pkgs gtk+-2.0,
> > libglade-2.0, pango and glib installed.  In suse they are called resp
> > gtk2-devel, libglade2-devel, glib2-devel and pango-devel.
>
> Importend is how they are named for pkg-config. The "--list-all"
> switch will give you hints. Once this is sorted out, please let me
> know about the names that suse uses.
>
> You can change it yourself by chaning "configure.in". Search for
> --------------------------------8<-----------------------------------------
>-- dnl Checks for gtk
> pkg_modules="gtk+-2.0 >= 2.0.0, libglade-2.0 >= 2.0.0, pango >= 1.0.0,
> glib-2.0"
> --------------------------------8<-----------------------------------------
>--
>
> and replace gtk+-2.0 with the suse name for pkg-config (e.g. libgtk2).
> Then run "cd /path/to/src/of/synaptic ; ./autogen.sh"
>
> > If I call pkg-config on the command line with the pkgs above it exits
> > unsuccesfully???  At this point I stopped and continued, with commenting
> > out the pkg-config checks -> configure finishes...
>
> Sure, but leaving it out also leaves out importend search pathes and
> libs to be linked. So it fails very badly (like below).
>
> > -  Start make
> >
> > /usr/include/rpm  -g -O2 -c rpackagecache.cc
> > rpackagecache.cc: In member function `bool
> > RPackageCache::open(OpProgress&)': rpackagecache.cc:47: error: `assert'
> > undeclared (first use this function) rpackagecache.cc:47: error: (Each
> > undeclared identifier is reported only once for each function it appears
> > in.)
> > make[2]: *** [rpackagecache.o] Error 1
> > make[2]: Leaving directory
> > `/home/richard/packages/SOURCES/synaptic-0.36.1/commo
> >
> >
> > - Added assert.h to rpackagecache.cc
> >   This is a nice and easy to solve problem, it's due to gcc-3.3
> >   Please add it to subversion
>
> I already did, thanks for reporting.
>
> > Next errors:
> >
> > gsynaptic.cc:38:22: gdk/gdkx.h: No such file or directory
> > In file included from gsynaptic.cc:42:
> >
> >  Add -I/usr/include/gtk-2.0   from gtk2-devel-2.2.1-37
> >
> > In file included from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
> >                  from /usr/include/gtk-2.0/gdk/gdkx.h:30,
> >                  from gsynaptic.cc:38:
> > /usr/include/gtk-2.0/gdk/gdktypes.h:32:18: glib.h: No such file or
> > directory /usr/include/gtk-2.0/gdk/gdktypes.h:33:25: pango/pango.h: No
> > such file or directory
> > /usr/include/gtk-2.0/gdk/gdktypes.h:34:25: glib-object.h: No such file or
> > directory
> > /usr/include/gtk-2.0/gdk/gdktypes.h:51:23: gdkconfig.h: No such file or
> > directory
> >
> >  Add -I/usr/include/glib-2.0  from glib2-devel
> >  Add -I/usr/include/pango-1.0 from pango-devel
> >
> > In file included from /usr/include/glib-2.0/glib/galloca.h:30,
> >                  from /usr/include/glib-2.0/glib.h:30,
> >                  from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
> >                  from /usr/include/gtk-2.0/gdk/gdkprivate.h:30,
> >                  from /usr/include/gtk-2.0/gdk/gdkx.h:30,
> >                  from gsynaptic.cc:38:
> > /usr/include/glib-2.0/glib/gtypes.h:41: error: syntax error before
> > `typedef'
> >
> > Which is:
> >      30 #include <glibconfig.h>
> >      31
> >      32 G_BEGIN_DECLS
> >      33
> >      34 /* Provide type definitions for commonly used types.
> >      35  *  These are useful because a "gint8" can be adjusted
> >      36  *  to be 1 byte (8 bits) on all platforms. Similarly and
> >      37  *  more importantly, "gint32" can be adjusted to be
> >      38  *  4 bytes (32 bits) on all platforms.
> >      39  */
> >      40
> >      41 typedef char   gchar;
> >
> > I assume that it goes wrong here due to configure that fail with
> > pkg-config.
>
> Right.
>
> > At this point I need assistance from the list to continue...
>
> I hope this information helps you to solve this problem. Please let me
> (and the list) know if it works.
>
> bye,
>  Michael

-- 
Richard Bos
Without a home the journey is endless





reply via email to

[Prev in Thread] Current Thread [Next in Thread]