Bug 580782 - wxGTK/glib2 GSocket declaration confliction
Summary: wxGTK/glib2 GSocket declaration confliction
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: wxGTK
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-04-09 03:11 UTC by Anonymous account
Modified: 2010-04-09 06:24 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-04-09 06:24:49 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Anonymous account 2010-04-09 03:11:01 UTC
Description of problem:
When building a program that uses appropriate portions of wxGTK and glib2, build fails with errors similar to:

In file included from /usr/include/glib-2.0/gio/gio.h:28,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /usr/include/gtk-2.0/gtk/gtk.h:32,
                 from gtk/taskbarex.cpp:19:
/usr/include/glib-2.0/gio/giotypes.h:120: error: conflicting declaration ‘typedef struct _GSocket GSocket’
/usr/include/wx-2.8/wx/unix/gsockunx.h:41: error: ‘class GSocket’ has a previous declaration as ‘class GSocket’
gtk/taskbarex.cpp: In member function ‘virtual bool wxTaskBarIconEx::SetBalloon(const wxIcon&, wxString, wxString, unsigned int)’:
gtk/taskbarex.cpp:212: warning: deprecated conversion from string constant to ‘gchar*’
gtk/taskbarex.cpp:215: warning: deprecated conversion from string constant to ‘gchar*’
gtk/taskbarex.cpp:218: warning: deprecated conversion from string constant to ‘gchar*’

Version-Release number of selected component (if applicable):
wxGTK-devel-2.8.10-7.fc12.x86_64
glib2-devel-2.22.5-1.fc12.x86_64

Comment 1 Dan Horák 2010-04-09 06:24:49 UTC
It's the application that must be fixed, because renaming in wxGTK would break the API/ABI for the 2.8 series that must remain stable. See http://cvs.fedoraproject.org/viewvc/rpms/codeblocks/devel/codeblocks-8.02-gsocket.patch?revision=1.1&view=markup for an example and http://trac.wxwidgets.org/ticket/10883 for an upstream bug report.


Note You need to log in before you can comment on or make changes to this bug.