Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161083 - app-emulation/bochs-2.2.6 fails to compile with wxGTK: expected `;' before ')' token
Summary: app-emulation/bochs-2.2.6 fails to compile with wxGTK: expected `;' before '...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-09 07:58 UTC by S. Richards
Modified: 2007-07-27 17:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Small patch which fixes the problem. (wxmain.patch,472 bytes, patch)
2007-07-27 17:13 UTC, bob127
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description S. Richards 2007-01-09 07:58:27 UTC
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 bob127 2007-07-27 17:13:50 UTC
Created attachment 126166 [details, diff]
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 Luca Barbato gentoo-dev 2007-07-27 17:55:49 UTC
I fixed the unicode patch, thank you