Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Feb 2000 03:43:31 +0900
From:      "Akinori -Aki- MUSHA" <knu@idaemons.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/16821: x11-toolkits/rep-gtk: a fix for the prototype error
Message-ID:  <86hff52fu4.wl@archon.local.idaemons.org>

next in thread | raw e-mail | index | archive | help

>Number:         16821
>Category:       ports
>Synopsis:       x11-toolkits/rep-gtk: a fix for the prototype error
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 19 10:50:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     "Akinori -Aki- MUSHA" <knu@idaemons.org>
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
Associated I. Daemons
>Environment:

	FreeBSD archon.local.idaemons.org 4.0-CURRENT FreeBSD 4.0-CURRENT #29: Sat Feb 19 02:21:47 JST 2000     root@archon.local.idaemons.org:/usr/src/sys/compile/ARCHON  i386

>Description:

  The prototype declaration of `gdk_color_copy' in `rep-gtk.h' differs
from that of `${X11BASE}/include/gtk12/gdk/gdk.h'.

  I guess this might be caused by gtk's update from 1.2.6 to 1.2.7.

>How-To-Repeat:

# cd /usr/ports/x11-toolkits/rep-gtk
# make
.
.
.
cc -c -I/usr/local/include -DHAVE_CONFIG_H -I. -O -mpentiumpro
-I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12
-I/usr/local/include -I/usr/X11R6/include -I/usr/local/include
-I/usr/local/include/gnome-xml -I/usr/local/include
-I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12
-I/usr/local/include -I/usr/X11R6/include  -fPIC -DPIC rep-gtk.c -o
.libs/rep-gtk.lo
In file included from rep-gtk.c:25:
rep-gtk.h:261: conflicting types for `gdk_color_copy'
/usr/X11R6/include/gtk12/gdk/gdk.h:556: previous declaration of
`gdk_color_copy'
gmake: *** [rep-gtk.lo] Error 1
*** Error code 2

Stop in /usr/ports/x11-toolkits/rep-gtk.
*** Error code 1

Stop in /usr/ports/x11-toolkits/rep-gtk.
*** Error code 1

Stop in /usr/ports/x11-toolkits/rep-gtk.
# 

>Fix:

  Add this patch as `patches/patch-ae' and it goes with no problem:

--- rep-gtk.h~	Sat Dec 18 05:41:33 1999
+++ rep-gtk.h	Sun Feb 20 02:24:36 2000
@@ -258,7 +258,7 @@
 GtkWidget* gtk_radio_menu_item_new_from_widget (GtkRadioMenuItem *group);
 GtkWidget* gtk_pixmap_new_interp (char *file, GtkWidget *intended_parent);
 
-GdkColor*    gdk_color_copy     (GdkColor *);
+GdkColor*    gdk_color_copy     (const GdkColor *);
 void         gdk_color_free     (GdkColor *);
 
 GdkColor *gdk_color_parse_interp (char *spec);


  But this fix must belong to sawmill itself. Better feed it back to
the author/development team.

-- 
                           /
                          /__  __
                         / )  )  ) )  /
Akinori -Aki- MUSHA aka / (_ /  ( (__(  <knu@idaemons.org>

"If you choose not to decide you still have made a choice."

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86hff52fu4.wl>