Bug 4096 - gliv-1.5.2.ebuild does not compile propely with gtk2.0 support
Bug#: 4096 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P3
Resolution: FIXED Assigned To: azarah@gentoo.org Reported By: pelux@fastwebnet.it
Component: Ebuilds
URL: 
Summary: gliv-1.5.2.ebuild does not compile propely with gtk2.0 support
Keywords:  
Status Whiteboard: 
Opened: 2002-06-24 13:04 0000
Description:   Opened: 2002-06-24 13:04 0000
While compiling it gives this error:
*******
In file included from gliv.h:23,
                 from callbacks.c:25:
gtk2_compat.h:13: warning: `G_N_ELEMENTS' redefined
/usr/include/glib-2.0/glib/gmacros.h:149: warning: this is the location of the p
revious definition
gtk2_compat.h:56: warning: `GTK_STOCK_OK' redefined
/usr/include/gtk-2.0/gtk/gtkstock.h:108: warning: this is the location of the pr
evious definition
gtk2_compat.h:57: warning: `GTK_STOCK_CANCEL' redefined
/usr/include/gtk-2.0/gtk/gtkstock.h:76: warning: this is the location of the pre
vious definition
gtk2_compat.h:101: warning: `g_signal_connect' redefined
/usr/include/glib-2.0/gobject/gsignal.h:240: warning: this is the location of th
e previous definition
gtk2_compat.h:104: warning: `g_signal_connect_after' redefined
/usr/include/glib-2.0/gobject/gsignal.h:242: warning: this is the location of th
e previous definition
gtk2_compat.h:108: warning: `g_signal_connect_swapped' redefined
/usr/include/glib-2.0/gobject/gsignal.h:244: warning: this is the location of th
e previous definition
gtk2_compat.h:110: warning: `g_signal_handlers_disconnect_by_func' redefined
/usr/include/glib-2.0/gobject/gsignal.h:248: warning: this is the location of th
e previous definition
gtk2_compat.h:111: warning: `G_CALLBACK' redefined
/usr/include/glib-2.0/gobject/gclosure.h:35: warning: this is the location of th
e previous definition
gtk2_compat.h:115: warning: `GDK_PRIORITY_REDRAW' redefined
/usr/include/gtk-2.0/gdk/gdkevents.h:16: warning: this is the location of the pr
evious definition
In file included from gliv.h:23,
                 from callbacks.c:25:
gtk2_compat.h:17: conflicting types for `GRand'
/usr/include/glib-2.0/glib/grand.h:34: previous declaration of `GRand'
gtk2_compat.h:19: conflicting types for `g_rand_new_with_seed'
/usr/include/glib-2.0/glib/grand.h:45: previous declaration of `g_rand_new_with_
seed'
gtk2_compat.h:33: conflicting types for `g_build_filename'
/usr/include/glib-2.0/glib/gfileutils.h:95: previous declaration of `g_build_fil
ename'
gtk2_compat.h:39: conflicting types for `g_file_test'
/usr/include/glib-2.0/glib/gfileutils.h:76: previous declaration of `g_file_test
'
gtk2_compat.h:43: conflicting types for `PangoFontDescription'
/usr/include/pango-1.0/pango/pango-font.h:32: previous declaration of `PangoFont
Description'
gtk2_compat.h:47: conflicting types for `gtk_widget_modify_font'
/usr/include/gtk-2.0/gtk/gtkwidget.h:648: previous declaration of `gtk_widget_mo
dify_font'
gtk2_compat.h:98: warning: redefinition of `GCallback'
/usr/include/glib-2.0/gobject/gclosure.h:41: warning: `GCallback' previously dec
lared here
make[2]: *** [callbacks.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/gliv-1.5.2/work/gliv-1.5.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gliv-1.5.2/work/gliv-1.5.2'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line -20, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/media-gfx/gliv/gliv-1.5.2.ebuild .
********

Please fix this :))

------- Comment #1 From Spider (RETIRED) 2002-06-25 17:40:13 0000 -------
ok, this is strange, I'm testing right now but I'm not sure what will do to
this, I've never played with theese before either so...

------- Comment #2 From Spider (RETIRED) 2002-06-25 17:43:19 0000 -------
ok, this seems to be an upstream bug, could you please file it there?

------- Comment #3 From Stefano Peluchetti 2002-06-25 17:48:55 0000 -------
Excuse me, but i ' m new to the bugzilla system...i'm sorry!
What do i have exacly to do? Do i have to create a new attachment with something? 
The gzip source code?
Thanks!


------- Comment #4 From Spider (RETIRED) 2002-06-25 17:50:58 0000 -------
Az: care to tell me what you think in this issue? just disabling gtk2 support
could probably solve it for now, but its unclean...

------- Comment #5 From Spider (RETIRED) 2002-06-25 18:11:31 0000 -------
with "upstream" bug I mean a bug to those who create the package, most often
those are documented in usr/share/doc/package-name-0.12/README.gz or another
file in that directory.


------- Comment #6 From Martin Schlemmer (RETIRED) 2002-06-25 18:30:28 0000 -------
Just for the record; it compiles fine here with gtk+-2.0 or gtk+-1.2.10.
I am actually using it now compiled against gtk+-2.0 and Gnome2.

------- Comment #7 From Martin Schlemmer (RETIRED) 2002-06-25 18:36:44 0000 -------
Can you maybe include a more detailed compile log ?

------- Comment #8 From Martin Schlemmer (RETIRED) 2002-06-25 18:40:27 0000 -------
Also install "gentoolkit", and supply the output of:

# epm -q gtk+ glib pango gtkglarea

I for instance get:

---------------cut----------------
nosferatu audiofile-0.2.3 # epm -q gtk+ glib pango gtkglarea
gtk+-2.0.5
gtk+-1.2.10-r8
glib-1.2.10-r4
glib-2.0.4
pango-1.0.3
gtkglarea-1.2.3-r1
gtkglarea-1.99.0
nosferatu audiofile-0.2.3 # 
---------------cut----------------

Thanks

------- Comment #9 From Spider (RETIRED) 2002-06-25 21:55:58 0000 -------
Created an attachment (id=1806) [details]
gliv.log

------- Comment #10 From Stefano Peluchetti 2002-06-26 05:30:32 0000 -------
Created an attachment (id=1819) [details]
Fail compile log. (i'm using gcc 2.95.3-r5)

------- Comment #11 From Stefano Peluchetti 2002-06-26 05:30:56 0000 -------
Created an attachment (id=1820) [details]
Epm query log.

------- Comment #12 From Stefano Peluchetti 2002-06-26 05:32:56 0000 -------
It seems that the errors that stops my building are ignored by your compiler.
May be the different version of it? (are you using gcc3.1 right?)
I' ve posted the logs you requested.

------- Comment #13 From Stefano Peluchetti 2002-06-26 06:43:29 0000 -------
Ah, i forgot. Please post the upstrem but , as i can't see who is the mantainer
of the package as was unable to install it and look in /usr/share/doc/....

------- Comment #14 From Martin Schlemmer (RETIRED) 2002-06-26 15:50:43 0000 -------
I am using gcc-2.95.3, and I dont get any "redefine" errors.  If I though
unmerge the older gtkglarea, it do not compile :/   Ill try to submit the
bug to the authors.

------- Comment #15 From Martin Schlemmer (RETIRED) 2002-06-28 15:58:18 0000 -------
Fixed in 1.5.3