From owner-freebsd-gnome@FreeBSD.ORG Sun Dec 13 15:18:54 2009 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E3F11065676 for ; Sun, 13 Dec 2009 15:18:54 +0000 (UTC) (envelope-from kwm@freebsd.org) Received: from viefep14-int.chello.at (viefep14-int.chello.at [62.179.121.34]) by mx1.freebsd.org (Postfix) with ESMTP id D8C968FC14 for ; Sun, 13 Dec 2009 15:18:53 +0000 (UTC) Received: from edge02.upc.biz ([192.168.13.237]) by viefep14-int.chello.at (InterMail vM.7.09.01.00 201-2219-108-20080618) with ESMTP id <20091213151852.BJZG1792.viefep14-int.chello.at@edge02.upc.biz>; Sun, 13 Dec 2009 16:18:52 +0100 Received: from [192.168.0.105] ([80.56.73.45]) by edge02.upc.biz with edge id GfJq1d0570ydU7k02fJroe; Sun, 13 Dec 2009 16:18:52 +0100 X-SourceIP: 80.56.73.45 From: Koop Mast To: Jeremy Messenger In-Reply-To: References: <1260402728.11917.18.camel@hood.oook.cz> <20091210073045.GA41397@hag.hw.v5d.org> Content-Type: multipart/mixed; boundary="=-HXPVeQb8awflvSfvBktv" Date: Sun, 13 Dec 2009 03:01:33 +0100 Message-ID: <1260669695.4303.841.camel@headache.rainbow-runner.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 FreeBSD GNOME Team Port Cc: gnome@freebsd.org, vd@freebsd.org, Pav Lucistnik , fjoe@freebsd.org Subject: Re: glib-2.22.3 and wxgtk2-2.8.10_2 both declare GSocket [Re: [Fwd: XaraLX-devel-0.7r1768_3 failed on amd64 6]] X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Dec 2009 15:18:54 -0000 --=-HXPVeQb8awflvSfvBktv Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Sat, 2009-12-12 at 12:50 -0600, Jeremy Messenger wrote: > On Thu, 10 Dec 2009 01:30:45 -0600, Vasil Dimov wrote: > > > On Thu, Dec 10, 2009 at 00:52:08 +0100, Pav Lucistnik wrote: > >> -------- P?eposlan? zpr?va -------- > >> > > >> > Stop in /a/ports/graphics/xaralx-devel. > > [...] > > > > Hi, > > > > the problem above is genuine and is because both devel/glib20 (via > > /usr/local/include/glib-2.0/gio/giotypes.h) and > > x11-toolkits/wxgtk28-common (via > > /usr/local/include/wx-2.8/wx/unix/gsockunx.h) declare the symbol > > GSocket. > > > > From /usr/local/include/glib-2.0/gio/giotypes.h: > > > > 113 /** > > 114 * GSocket: > > 115 * > > 116 * A lowlevel network socket object. > > 117 * > > 118 * Since: 2.22 > > 119 **/ > > 120 typedef struct _GSocket GSocket; > > > > devel/glib20 has been upgraded from 2.20 to 2.22 on Nov 28. > > > > Is this problem occuring with other than graphics/xaralx* ports? > > > > If yes, then I think it should be fixed somehow in devel/glib20 and > > x11-toolkits/wxgtk28-common. > > http://trac.wxwidgets.org/ticket/10883 > http://trac.wxwidgets.org/changeset/61009 > > If there is more conflict in our wxgtk* ports, you can search in its trac. > The trac has pretty good search engine. > > Cheers, > Mezz > > > If no, then it should be fixed in graphics/xaralx* and if this is the > > case I will "fix" it by marking graphics/xaralx* as broken and > > deprecated since the development ceased in Aug 2006 and it looks like > > the project is abandoned. > > > > Thanks! > The links mezz posted illustrate the problem at hand. Its fixed in the wxgtk* for ports that use that toolkit. Problem is that if a port includes glib.h or gtk.h itself, then we need to do the same trick for that header too. Vasil can you review this patch and or commit? It should fix the build. -Koop --=-HXPVeQb8awflvSfvBktv Content-Disposition: attachment; filename="xaralx.diff" Content-Type: text/x-patch; name="xaralx.diff"; charset="us-ascii" Content-Transfer-Encoding: 7bit ? xaralx-devel/work Index: xaralx/files/patch-wxOil_ftfonts.cpp =================================================================== RCS file: xaralx/files/patch-wxOil_ftfonts.cpp diff -N xaralx/files/patch-wxOil_ftfonts.cpp --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ xaralx/files/patch-wxOil_ftfonts.cpp 13 Dec 2009 00:53:32 -0000 @@ -0,0 +1,12 @@ +--- wxOil/ftfonts.cpp.orig 2009-12-12 23:53:05.000000000 +0100 ++++ wxOil/ftfonts.cpp 2009-12-12 23:54:08.000000000 +0100 +@@ -122,7 +122,9 @@ DECLARE_SOURCE( "$Revision: 1535 $" ); + #include FT_TYPE1_TABLES_H + + #ifdef __WXGTK20__ ++#define GSocket GlibSocket + #include ++#undef GSocket + extern GtkWidget *wxGetRootWindow(); + #endif + Index: xaralx-devel/Makefile =================================================================== RCS file: /home/pcvs/ports/graphics/xaralx-devel/Makefile,v retrieving revision 1.32 diff -a -u -r1.32 Makefile --- xaralx-devel/Makefile 31 Jul 2009 13:52:53 -0000 1.32 +++ xaralx-devel/Makefile 13 Dec 2009 00:53:32 -0000 @@ -17,6 +17,7 @@ PLIST= ${.CURDIR}/pkg-plist PATCHDIR= ${.CURDIR}/files EXTRA_PATCHES= ${MASTERDIR}/files/patch-configure.in \ + ${MASTERDIR}/files/patch-wxOil_ftfonts.cpp \ ${MASTERDIR}/files/patch-wxOil_compatdef.h .include "${MASTERDIR}/Makefile" --=-HXPVeQb8awflvSfvBktv--