[Freewx-maint] Bug#568006: libwxbase2.8-0: Build error: ‘GSocket’ has a previous declaration here
Anton Martchukov
anton at martchukov.com
Mon Feb 1 20:10:25 UTC 2010
Package: libwxbase2.8-0
Version: 2.8.10.1-3
Severity: important
I get the following error when trying to build OpenCPN 1.3.6
(http://sourceforge.net/projects/opencpn/):
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"opencpn\" -DVERSION=\"0.1\" -DINSTALL_PREFIX=\"/usr\" -I. -I././include -I././src/nmea0183 -I/usr/X11R6/include -I././src/mygdal -I././src/grib -I././src/grib/bzip2 -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -Wall -g -DocpnUSE_GTK_OPTIMIZE -DUSE_S57 -DUSE_GLU_TESS -Wall -g -fexceptions -fno-stack-protector -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c -o chart1.o `test -f 'src/chart1.cpp' || echo './'`src/chart1.cpp
In file included from /usr/include/wx-2.8/wx/sckaddr.h:20,
from /usr/include/wx-2.8/wx/socket.h:24,
from ././include/nmea.h:116,
from src/chart1.cpp:255:
/usr/include/wx-2.8/wx/gsocket.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from /usr/include/wx-2.8/wx/gsocket.h:179,
from /usr/include/wx-2.8/wx/sckaddr.h:20,
from /usr/include/wx-2.8/wx/socket.h:24,
from ././include/nmea.h:116,
from src/chart1.cpp:255:
/usr/include/wx-2.8/wx/unix/gsockunx.h:40: error: using typedef-name ‘GSocket’ after ‘class’
/usr/include/glib-2.0/gio/giotypes.h:120: error: ‘GSocket’ has a previous declaration here
In file included from ././include/nmea.h:116,
from src/chart1.cpp:255:
/usr/include/wx-2.8/wx/socket.h: In member function ‘wxSocketError wxSocketBase::LastError() const’:
/usr/include/wx-2.8/wx/socket.h:118: error: ‘struct _GSocket’ has no member named ‘GetError’
In file included from src/chart1.cpp:265:
././include/grib.h: At global scope:
././include/grib.h:83: warning: ‘typedef’ was ignored in this declaration
make[1]: *** [chart1.o] Error 1
make[1]: Leaving directory `/home/antonm/work/deb-packages/opencpn/opencpn-1.3.6'
Looks like conflict between GSocket declarations of wxWidgets2.8 and
glib. I have tried with the latest version of wxWidgets and glib (2.22.3-1)
from unstable.
Found something on wxWidgets trac:
http://trac.wxwidgets.org/ticket/10883 closed 8 month ago, but the
problem is still there.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (650, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.31-1-686 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libwxbase2.8-0 depends on:
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libexpat1 2.0.1-7 XML parsing C library - runtime li
ii libgcc1 1:4.4.2-9 GCC support library
ii libstdc++6 4.4.2-9 The GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
libwxbase2.8-0 recommends no packages.
libwxbase2.8-0 suggests no packages.
-- no debconf information
More information about the Freewx-maint
mailing list