glib-2.22.3 and wxgtk2-2.8.10_2 both declare GSocket [Re: [Fwd:
XaraLX-devel-0.7r1768_3 failed on amd64 6]]
Jeremy Messenger
mezz7 at cox.net
Sat Dec 12 18:48:37 UTC 2009
On Thu, 10 Dec 2009 01:30:45 -0600, Vasil Dimov <vd at freebsd.org> wrote:
> On Thu, Dec 10, 2009 at 00:52:08 +0100, Pav Lucistnik wrote:
>> -------- P?eposlan? zpr?va --------
>> > Od: User Ports-amd64 <ports-amd64 at FreeBSD.org>
>> > Komu: cvs at oook.cz, linimon at FreeBSD.org
>> > P?edm?t: XaraLX-devel-0.7r1768_3 failed on amd64 6
>> > Datum: Tue, 8 Dec 2009 21:25:11 GMT
>> >
>> > You can also find this build log at
>> >
>> >
>> http://pointyhat.FreeBSD.org/errorlogs/amd64-errorlogs/a.6.20091207233526/XaraLX-devel-0.7r1768_3.log
>> >
>> > building XaraLX-devel-0.7r1768_3 on gohan11.freebsd.org
>> > in directory /x/pkgbuild/6/20091207233526/chroot/9687
>> > building for: 6.4-STABLE amd64
>> > maintained by: vd at FreeBSD.org
>> > port directory: /usr/ports/graphics/xaralx-devel
>> > Makefile ident: $FreeBSD: ports/graphics/xaralx-devel/Makefile,v 1.32
>> 2009/07/31 13:52:53 dinoex Exp $
> [...]
>> > if c++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\"
>> -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\"
>> -DPACKAGE=\"XaraLX\" -DVERSION=\"0.7\" -DSTDC_HEADERS=1
>> -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
>> -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1
>> -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1
>> -DSIZEOF_VOIDP=8 -DSIZEOF_LONG_LONG=8 -DSIZEOF_LONG=8 -DSIZEOF_INT=4
>> -DSIZEOF_SHORT=2 -DSIZEOF___INT64=0 -DHAVE_ICONV=1 -DENABLE_NLS=1
>> -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -I. -I.
>> -I/usr/local/include/ptmalloc -Wall -Wno-unknown-pragmas -g
>> -fexceptions -O3 -fno-strict-aliasing -Wstrict-aliasing=2 -O2
>> -fno-strict-aliasing -pipe
>> -I/usr/local/include/wx-2.6/gtk2-unicode-release-2.6
>> -I/usr/local/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
>> -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DNO_GCC_PRAGMA
>> -I/usr/local/include/pango-1.0 -I/usr/local/include
>> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
>> -I/usr/local/include/freet
>> > ype2 -I/usr/local/include -D_THREAD_SAFE
>> -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include
>> -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo
>> -I/usr/local/include/pango-1.0 -I/usr/local/include
>> -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
>> -I/usr/local/include/pixman-1 -I/usr/local/include/freetype2
>> -I/usr/local/include/libxml2 -I/usr/local/include -I../PreComp
>> -I../wxOil -I.././Kernel -I.././wxOil -I.././wxOil/Res -I.././tools
>> -I.././GDraw -I.././PreComp -I.././wxXtra -DUSE_NATIVE_XLONG
>> -DBUILDSHADOWS -DOLD_MATRIX_TRANSFORMATIONS -DVECTOR_STROKING
>> -DEXCLUDE_FROM_XARALX -DNEW_SHADOW_RENDER -DNO_XARACMS -DNEW_FEATURES
>> -DSHOWPORTNOTE -DDO_EXPORT -MT libwxOil_a-ftfonts.o -MD -MP -MF
>> ".deps/libwxOil_a-ftfonts.Tpo" -c -o libwxOil_a-ftfonts.o `test -f
>> 'ftfonts.cpp' || echo './'`ftfonts.cpp; \
>> > then mv -f ".deps/libwxOil_a-ftfonts.Tpo"
>> ".deps/libwxOil_a-ftfonts.Po"; else rm -f
>> ".deps/libwxOil_a-ftfonts.Tpo"; exit 1; fi
>> > In file included from /usr/local/include/glib-2.0/gio/gio.h:28,
>> > from
>> /usr/local/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
>> > from /usr/local/include/gtk-2.0/gdk/gdk.h:32,
>> > from /usr/local/include/gtk-2.0/gtk/gtk.h:32,
>> > from ftfonts.cpp:125:
>> > /usr/local/include/glib-2.0/gio/giotypes.h:120: error: conflicting
>> declaration 'typedef struct _GSocket GSocket'
>> > /usr/local/include/wx-2.6/wx/unix/gsockunx.h:41: error: 'class
>> GSocket' has a previous declaration as `class GSocket'
>> > gmake[2]: *** [libwxOil_a-ftfonts.o] Error 1
>> > gmake[2]: Leaving directory
>> `/work/a/ports/graphics/xaralx-devel/work/XaraLX-0.7r1768/wxOil'
>> > gmake[1]: *** [all] Error 2
>> > gmake[1]: Leaving directory
>> `/work/a/ports/graphics/xaralx-devel/work/XaraLX-0.7r1768/wxOil'
>> > gmake: *** [all-recursive] Error 1
>> > *** Error code 1
>> >
>> > 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!
--
mezz7 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
More information about the freebsd-gnome
mailing list