FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux User Repository

 
 
LinkBack Thread Tools
 
Old 11-12-2009, 06:21 PM
Stefan Husmann
 
Default 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
 
Old 11-12-2009, 07:28 PM
Smartboy
 
Default C++ problem with conflicting declarations

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
 
Old 11-12-2009, 07:55 PM
Eric Bélanger
 
Default C++ problem with conflicting declarations

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?
 
Old 11-12-2009, 10:14 PM
Stefan Husmann
 
Default C++ problem with conflicting declarations

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
 

Thread Tools




All times are GMT. The time now is 07:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org