After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 87877 - gnomemm-1.2.2 fails to compile (src/gnome--/procbar.cc)
gnomemm-1.2.2 fails to compile (src/gnome--/procbar.cc)
Status: RESOLVED FIXED
Product: gnomemm
Classification: Deprecated
Component: build
1.2
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2002-07-10 22:08 UTC by A. Kok
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 1.4



Description A. Kok 2002-07-10 22:08:38 UTC
Both we (the lunar linux maintainers) and the people from Gentoo have
exactly the same problem. I can state for a fact that it *already* compiled
before correctly, date 20020423 (i.e. 6 weeks ago), but since that date
absolutely nothing I can find has changed.

gcc was and is still 2.95.3.

Freshly compiled and installed machines also suffer these ill effects.

Any help would be incredibly appreciated...

Auke Kok

c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DG_LOG_DOMAIN=\"Gnome--\" -I. -I./..
-I.. -I../../src -I../../src -I../../src/gtk-- -I../../gdk--
-I/usr/lib/gtkmm/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/lib/sigc++-1.0/include
-I/usr/include/sigc++-1.0 -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -O3
-mcpu=i686 -march=i686 -funroll-loops -Wall -Wno-unused -c procbar.cc 
-fPIC -DPIC -o procbar.lo
procbar.cc: In method `Gnome::ProcBar::ProcBar(const Gtk::Label &, const
vector<Gdk_Color *,allocator<Gdk_Color *> > &, gint (*)())':
procbar.cc:23: passing `gint (*)()' as argument 5 of
`gnome_proc_bar_construct(GnomeProcBar *, GtkWidget *, int, GdkColor *,
gint (*)(void *))'
make[1]: *** [procbar.lo] Error 1
make[1]: Leaving directory `/usr/src/gnomemm-1.2.2/src/gnome--'
make: *** [all-recursive] Error 1
Comment 1 Murray Cumming 2002-07-16 12:09:00 UTC
The function pointer type is wrong. The callback should actually take
a gpointer. We can't change that in the stable API, but you can add a
cast to the correct type in the .gen_h file. You might find it
simplest if you use a typedef. It will probably still work, and if it
doesn't then it's not important because I doubt anybody is using that
constructor anyway.

Please tell if you have any problems writing the patch.
Comment 2 Murray Cumming 2002-07-16 12:09:47 UTC
Hmm, actually I can reproduce it here, so I'll do it.
Comment 3 Murray Cumming 2002-07-16 12:43:55 UTC
OK, please try from cvs (gnome-- module) and tell me if it's ready for
a new release.
Comment 4 A. Kok 2002-07-16 13:24:19 UTC
applied the patch over the 4 affected files and got:

/usr/src/gnomemm-1.2.2/src/gnome-- # c++ -DHAVE_CONFIG_H -I. -I.
-I../.. -DG_LOG_DOMAIN=\"Gnome--\" -I. -I./.. -I.. -I../../src
-I../../src -I../../src/gtk-- -I../../gdk-- -I/usr/lib/gtkmm/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/lib/sigc++-1.0/include
-I/usr/include/sigc++-1.0 -I/usr/include/gnome-1.0
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include
-I/usr/X11R6/include -I/usr/include/gnome-1.0 -DNEED_GNOMESUPPORT_H
-I/usr/lib/gnome-libs/include -I/usr/include/gtk-1.2
-I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include
-g -O2 -Wall -Wno-unused -c procbar.cc  -fPIC -DPIC -o procbar.lo
procbar.cc: In method `Gnome::ProcBar::ProcBar(const Gtk::Label &,
const vector<Gdk_Color *,allocator<Gdk_Color *> > &, gint (*)())':
procbar.cc:23: passing `gint (*)()' as argument 5 of
`gnome_proc_bar_construct(GnomeProcBar *, GtkWidget *, int, GdkColor
*, gint (*)(void *))'

I think you missed one there
Comment 5 Murray Cumming 2002-07-17 07:51:17 UTC
What patch? What 4 files?

Just get it from cvs. Or maybe you did get it from cvs, but you are
using anon cvs, which might not yet have the changes.

If you do have a problem with your compiler, please _try_ to fix it
yourself and send us a patch. It probably isn't difficult.
Comment 6 A. Kok 2002-07-17 07:58:35 UTC
Got it from anon cvs, diff -r'd it to see the differences which
affected 4 files, but prolly your changes hadn't reflected into it, so
I will try again today if I have time.

some notes about me to make you understand where/what I am:

/* I am not a gnomemm hacker, but a source distro maintainer */
/* I eat #!/bin/bash and #!/usr/bin/perl, but not #define C++ */

I can grab cvs, diff, patch but a (void *) gives me slight headaches ;-)
Comment 7 A. Kok 2002-07-17 08:28:28 UTC
Got the fix from webCVS, it works, I'm happy, close this bug please! :-)