Thread: pgadmin3 beta3 build failure at wxMBConv::MB2WC()

pgadmin3 beta3 build failure at wxMBConv::MB2WC()

From
steve fox
Date:
Hi,

I'm running gentoo linux, 2.6.8 kernel, i686-pc-linux-gnu-3.4.2.  I've 
installed wxWindows per the instructions on

http://www.pgadmin.org/pgadmin3/download.php ,

and I get this error while running the 'make' command of the pgadmin3 
build.  I get the same error with older beta versions as well; 
re-installing wxWidgets doesn't help:

-- snip --

utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, 
off_t)':
utils/utffile.cpp:86: error: no matching function for call to 
`wxMBConv::MB2WC(wxStringBuffer, char*&, unsigned int)'
/usr/local/include/wx-2.5/wx/strconv.h:46: note: candidates are: virtual 
size_t wxMBConv::MB2WC(wchar_t*, const char*, size_t) const
make[2]: *** [utffile.o] Error 1
make[2]: Leaving directory `/home/foxsg/dump/pgadmin3-1.2.0-beta3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/foxsg/dump/pgadmin3-1.2.0-beta3'
make: *** [all] Error 2

-- snip --

Look familiar?  I would appreciate any tips for getting around this.

TIA,

Steve


Re: pgadmin3 beta3 build failure at wxMBConv::MB2WC()

From
Andreas Pflug
Date:
steve fox wrote:
> Hi,
> 
> I'm running gentoo linux, 2.6.8 kernel, i686-pc-linux-gnu-3.4.2.  I've 
> installed wxWindows per the instructions on
> 
> http://www.pgadmin.org/pgadmin3/download.php ,
> 
> and I get this error while running the 'make' command of the pgadmin3 
> build.  I get the same error with older beta versions as well; 
> re-installing wxWidgets doesn't help:
> 
> utils/utffile.cpp: In member function `off_t wxUtfFile::Read(wxString&, 
> off_t)':
> utils/utffile.cpp:86: error: no matching function for call to 
> `wxMBConv::MB2WC(wxStringBuffer, char*&, unsigned int)'
> /usr/local/include/wx-2.5/wx/strconv.h:46: note: candidates are: virtual 
> size_t wxMBConv::MB2WC(wchar_t*, const char*, size_t) const

Try casting to help the compiler guessing that the only available method 
is the on meant: MB2WC((wxChar*)...

I'd consider this a gcc3.4 bug: wxStringBuffer has a wxChar*() operator, 
resolving the first argument (this should happen automatically), buffer 
is a char* which should be usable as const char* perfectly legal, and 
unsigned int used as size_t param doesn't look too exotic too.

Not the first weird thing from gcc 3.4...

Regards,
Andreas