Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Dec 2009 09:30:45 +0200
From:      Vasil Dimov <vd@FreeBSD.org>
To:        Pav Lucistnik <pav@FreeBSD.org>
Cc:        gnome@FreeBSD.org, kwm@FreeBSD.org, fjoe@FreeBSD.org
Subject:   glib-2.22.3 and wxgtk2-2.8.10_2 both declare GSocket [Re: [Fwd: XaraLX-devel-0.7r1768_3 failed on amd64 6]]
Message-ID:  <20091210073045.GA41397@hag.hw.v5d.org>
In-Reply-To: <1260402728.11917.18.camel@hood.oook.cz>
References:  <1260402728.11917.18.camel@hood.oook.cz>

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

--dDRMvlgZJXvWKvBx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Dec 10, 2009 at 00:52:08 +0100, Pav Lucistnik wrote:
> -------- P?eposlan? zpr?va --------
> > Od: User Ports-amd64 <ports-amd64@FreeBSD.org>
> > Komu: cvs@oook.cz, linimon@FreeBSD.org
> > P?edm?t: XaraLX-devel-0.7r1768_3 failed on amd64 6
> > Datum: Tue, 8 Dec 2009 21:25:11 GMT
> >=20
> > You can also find this build log at
> >=20
> >   http://pointyhat.FreeBSD.org/errorlogs/amd64-errorlogs/a.6.2009120723=
3526/XaraLX-devel-0.7r1768_3.log
> >=20
> > 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@FreeBSD.org
> > port directory: /usr/ports/graphics/xaralx-devel
> > Makefile ident: $FreeBSD: ports/graphics/xaralx-devel/Makefile,v 1.32 2=
009/07/31 13:52:53 dinoex Exp $
[...]
> > if c++ -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" -DPACKAGE_VERSION=
=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" -DPACKAGE=3D\"Xa=
raLX\" -DVERSION=3D\"0.7\" -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE=
_SYS_STAT_H=3D1 -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1=
 -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_UNIS=
TD_H=3D1 -DSIZEOF_VOIDP=3D8 -DSIZEOF_LONG_LONG=3D8 -DSIZEOF_LONG=3D8 -DSIZE=
OF_INT=3D4 -DSIZEOF_SHORT=3D2 -DSIZEOF___INT64=3D0 -DHAVE_ICONV=3D1 -DENABL=
E_NLS=3D1 -DHAVE_GETTEXT=3D1 -DHAVE_DCGETTEXT=3D1 -I. -I. -I/usr/local/incl=
ude/ptmalloc   -Wall -Wno-unknown-pragmas -g -fexceptions -O3 -fno-strict-a=
liasing  -Wstrict-aliasing=3D2  -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=3D64 -D_LARGE_FILES -DNO_GCC=
_PRAGMA -I/usr/local/include/pango-1.0 -I/usr/local/include -I/usr/local/in=
clude/glib-2.0 -I/usr/local/lib/glib-2.0/include   -I/usr/local/include/fre=
et
> >  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/lo=
cal/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../=
=2E/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 -DSHO=
WPORTNOTE -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 '=
=2E/'`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/gdkapplaunchcontex=
t.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 decl=
aration '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/X=
araLX-0.7r1768/wxOil'
> > gmake[1]: *** [all] Error 2
> > gmake[1]: Leaving directory `/work/a/ports/graphics/xaralx-devel/work/X=
araLX-0.7r1768/wxOil'
> > gmake: *** [all-recursive] Error 1
> > *** Error code 1
> >=20
> > 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.

=46rom /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.

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!

--=20
Vasil Dimov

--dDRMvlgZJXvWKvBx
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAksgo6UACgkQFw6SP/bBpCB3YgCfY3UzNwpqxFKcU1neTuUNn4Is
L34AnjhBzKEVnYhRq9V6O5kXku4GrKbd
=BlUw
-----END PGP SIGNATURE-----

--dDRMvlgZJXvWKvBx--



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