Bug 161083 - app-emulation/bochs-2.2.6 fails to compile with wxGTK: expected `;' before ')' token
Bug#: 161083 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: lu_zero@gentoo.org Reported By: imeinstein@gmail.com
Component: Ebuilds
URL: 
Summary: app-emulation/bochs-2.2.6 fails to compile with wxGTK: expected `;' before ')' token
Keywords:  
Status Whiteboard: 
Opened: 2007-01-09 07:58 0000
Description:   Opened: 2007-01-09 07:58 0000
There seems to be an error in the unicode patch which places an extra ')' in
wxmain.cc.

 x86_64-pc-linux-gnu-g++ -c -I.. -I./.. -I../iodev -I./../iodev
-I../instrument/stubs -I./../instrument/stubs -O2 -pipe -march=nocona
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/usr/include/SDL -D_GNU_SOURCE=1
-D_REENTRANT -I/usr/lib64/wx/include/gtk2-ansi-release-2.6
-I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -DNO_GCC_PRAGMA -I/usr/include/gtk-2.0
-I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
wxdialog.cc  -fPIC -DPIC -o .libs/wxdialog.o
wxmain.cc: In member function 'void MyFrame::DebugCommand(const char*)':
wxmain.cc:854: error: no match for 'operator+' in 'wxLogDebug(((const
char*)"storing debugger command \'")) + wxString(((const wxChar*)tmp),
((wxMBConv&)(&((wxMBConvUTF8*)wxConvUTF8)->wxMBConvUTF8::<anonymous>)),
wxStringBase::npos)'
/usr/include/wx-2.6/wx/longlong.h:932: note: candidates are: wxULongLong
operator+(long unsigned int, const wxULongLong&)
/usr/include/wx-2.6/wx/longlong.h:919: note:                 wxLongLong
operator+(long int, const wxLongLong&)
/usr/include/wx-2.6/wx/string.h:1486: note:                 wxString
operator+(const wxCharBuffer&, const wxString&)
/usr/include/wx-2.6/wx/string.h:1484: note:                 wxString
operator+(const wxString&, const wxCharBuffer&)
/usr/include/wx-2.6/wx/string.h:943: note:                 wxString
operator+(const wxChar*, const wxString&)
/usr/include/wx-2.6/wx/string.h:941: note:                 wxString
operator+(const wxString&, const wxChar*)
/usr/include/wx-2.6/wx/string.h:939: note:                 wxString
operator+(wxChar, const wxString&)
/usr/include/wx-2.6/wx/string.h:937: note:                 wxString
operator+(const wxString&, wxChar)
/usr/include/wx-2.6/wx/string.h:935: note:                 wxString
operator+(const wxString&, const wxString&)
wxmain.cc:854: error: expected `;' before ')' token
make[1]: *** [wxmain.lo] Error 1

------- Comment #1 From bob127 2007-07-27 17:13:50 0000 -------
Created an attachment (id=126166) [details]
Small patch which fixes the problem.

This fixes a small typo in wxmain.cc which prevents it from being compiled.

Usage:
Apply with patch -p0 < wxmain.patch while in the source directory.

------- Comment #2 From Luca Barbato 2007-07-27 17:55:49 0000 -------
I fixed the unicode patch, thank you