[aur-general] C++ problem with conflicting declarations
Hello, when I try to compile xaralx I get 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 ftfonts.cpp:125: /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' ftfonts.cpp: In static member function 'static BOOL FTFontMan::CacheFontCore(String_64*, BOOL)': ftfonts.cpp:262: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:262: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp: In static member function 'static FTFont* FTFontMan::CreateNewFont(String_64*, FontClass)': ftfonts.cpp:703: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:703: warning: deprecated conversion from string constant to 'TCHAR*' make[2]: *** [libwxOil_a-ftfonts.o] Error 1 make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make: *** [all-recursive] Error 1 /usr/include/glib-2.0/gio/giotypes.h is included in glib2, /usr/include/wx-2.8/wx/unix/gsockunx.h is included in wxgtk. What is to do in such cases? Is this a bug in glib2 or in wxgtk? Regards Stefan
On Thu, Nov 12, 2009 at 11:21 AM, Stefan Husmann <stefan-husmann@t-online.de
wrote:
Hello,
when I try to compile xaralx I get 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 ftfonts.cpp:125: /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' ftfonts.cpp: In static member function 'static BOOL FTFontMan::CacheFontCore(String_64*, BOOL)': ftfonts.cpp:262: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:262: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp: In static member function 'static FTFont* FTFontMan::CreateNewFont(String_64*, FontClass)': ftfonts.cpp:703: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:703: warning: deprecated conversion from string constant to 'TCHAR*' make[2]: *** [libwxOil_a-ftfonts.o] Error 1 make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make: *** [all-recursive] Error 1
/usr/include/glib-2.0/gio/giotypes.h is included in glib2, /usr/include/wx-2.8/wx/unix/gsockunx.h is included in wxgtk. What is to do in such cases? Is this a bug in glib2 or in wxgtk? Regards Stefan
The problem may be bitrot. The latest Xara Linux package was released 3 years ago, and since then not much has been done to maintain it. Smartboy
On Thu, Nov 12, 2009 at 2:21 PM, Stefan Husmann <stefan-husmann@t-online.de> wrote:
Hello,
when I try to compile xaralx I get 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 ftfonts.cpp:125: /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' ftfonts.cpp: In static member function 'static BOOL FTFontMan::CacheFontCore(String_64*, BOOL)': ftfonts.cpp:262: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:262: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp: In static member function 'static FTFont* FTFontMan::CreateNewFont(String_64*, FontClass)': ftfonts.cpp:703: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:703: warning: deprecated conversion from string constant to 'TCHAR*' make[2]: *** [libwxOil_a-ftfonts.o] Error 1 make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make: *** [all-recursive] Error 1
/usr/include/glib-2.0/gio/giotypes.h is included in glib2, /usr/include/wx-2.8/wx/unix/gsockunx.h is included in wxgtk. What is to do in such cases? Is this a bug in glib2 or in wxgtk? Regards Stefan
wxgtk 2.8.10.1-5 is supposed to be patched for that. Is your system up-to-date?
Eric Bélanger schrieb:
On Thu, Nov 12, 2009 at 2:21 PM, Stefan Husmann <stefan-husmann@t-online.de> wrote:
Hello,
when I try to compile xaralx I get 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 ftfonts.cpp:125: /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' ftfonts.cpp: In static member function 'static BOOL FTFontMan::CacheFontCore(String_64*, BOOL)': ftfonts.cpp:262: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:262: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:288: warning: deprecated conversion from string constant to 'TCHAR*' ftfonts.cpp: In static member function 'static FTFont* FTFontMan::CreateNewFont(String_64*, FontClass)': ftfonts.cpp:703: warning: deprecated conversion from string constant to 'char*' ftfonts.cpp:703: warning: deprecated conversion from string constant to 'TCHAR*' make[2]: *** [libwxOil_a-ftfonts.o] Error 1 make[2]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make[1]: *** [all] Error 2 make[1]: Leaving directory `/home/haawda/paketierung/maintained_by_me/xaralx/src/XaraLX-0.7r1785/wxOil' make: *** [all-recursive] Error 1
/usr/include/glib-2.0/gio/giotypes.h is included in glib2, /usr/include/wx-2.8/wx/unix/gsockunx.h is included in wxgtk. What is to do in such cases? Is this a bug in glib2 or in wxgtk? Regards Stefan
wxgtk 2.8.10.1-5 is supposed to be patched for that. Is your system up-to-date?
Yes, I have wxgtk 2.8.10.1-5. Regards Stefan
participants (3)
-
Eric Bélanger
-
Smartboy
-
Stefan Husmann