Re: [pgadmin-support] pgadmin3 beta3 build failure at wxMBConv::MB2WC()

Поиск
Список
Период
Сортировка
Искать

Re: [pgadmin-support] pgadmin3 beta3 build failure at wxMBConv::MB2WC()

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
steve fox wrote:

First of all, use the mailling list, no private mail!
> 
> if (decr)
>                 Seek(-decr, wxFromCurrent);
> 
>             m_conversion->MB2WC(wxStringBuffer(str, nLen), buffer, nLen+1);
>         }
>         else
>             str = MB2WC((wxChar*)buffer);

You invented a new error, in a different line!!!! Insert the cast in 
line 86, not 89!

Regards,
Andreas

Re: [pgadmin-support] pgadmin3 beta3 build failure at wxMBConv::MB2WC()

От:
steve fox <steve@wiscota.net>
Дата:
Thanks, Andreas -

I'm noted for being good at inventing new errors! ;)

Here's my line 86:

  m_conversion->MB2WC((wxChar*)wxStringBuffer(str, nLen), buffer, nLen+1);


All still breaks, and I'm open to any casting tips.

Thanks,

Steve

Andreas Pflug wrote:
> steve fox wrote:
> 
> First of all, use the mailling list, no private mail!
> 
>>
>> if (decr)
>>                 Seek(-decr, wxFromCurrent);
>>
>>             m_conversion->MB2WC(wxStringBuffer(str, nLen), buffer, 
>> nLen+1);
>>         }
>>         else
>>             str = MB2WC((wxChar*)buffer);
> 
> 
> You invented a new error, in a different line!!!! Insert the cast in 
> line 86, not 89!
> 
> Regards,
> Andreas
> 

Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
steve fox wrote:
> Thanks, Andreas -
> 
> I'm noted for being good at inventing new errors! ;)
> 
> Here's my line 86:
> 
>  m_conversion->MB2WC((wxChar*)wxStringBuffer(str, nLen), buffer, nLen+1);
> 
> 
> All still breaks, and I'm open to any casting tips.

Try full casting:
  m_conversion->MB2WC((wchar_t*)(wxChar*)wxStringBuffer(str, nLen), 
(const char*)buffer, (size_t)(nLen+1));

and try to locate which param finally was the offending.

Regards,
Andreas


Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
steve fox <steve@wiscota.net>
Дата:
Thanks, Andreas -

Your changes got me past the previous error, now I'm seeing this one:

xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD1Ev+0x13): In 
function `wxMemoryFSHandler::~wxMemoryFSHandler()':
ui/common/xrcDialogs.cpp:8926: undefined reference to 
`wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'
xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD0Ev+0x14): In 
function `wxMemoryFSHandler::~wxMemoryFSHandler()':
ui/common/xrcDialogs.cpp:8926: undefined reference to 
`wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'
collect2: ld returned 1 exit status
make[2]: *** [pgadmin3] Error 1

Look familiar?  I'm not getting anything on goole, and little in the 
archives.

-Steve


Andreas Pflug wrote:
> steve fox wrote:
> 
>> Thanks, Andreas -
>>
>> I'm noted for being good at inventing new errors! ;)
>>
>> Here's my line 86:
>>
>>  m_conversion->MB2WC((wxChar*)wxStringBuffer(str, nLen), buffer, nLen+1);
>>
>>
>> All still breaks, and I'm open to any casting tips.
> 
> 
> Try full casting:
>  m_conversion->MB2WC((wchar_t*)(wxChar*)wxStringBuffer(str, nLen), 
> (const char*)buffer, (size_t)(nLen+1));
> 
> and try to locate which param finally was the offending.
> 
> Regards,
> Andreas
> 
> 

Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
steve fox wrote:
> Thanks, Andreas -
> 
> Your changes got me past the previous error, now I'm seeing this one:
> 
> xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD1Ev+0x13): In 
> function `wxMemoryFSHandler::~wxMemoryFSHandler()':
> ui/common/xrcDialogs.cpp:8926: undefined reference to 
> `wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'
> xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD0Ev+0x14): In 
> function `wxMemoryFSHandler::~wxMemoryFSHandler()':
> ui/common/xrcDialogs.cpp:8926: undefined reference to 
> `wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'

This means (in 999.9999% of all cases) that object and lib don't fit 
together. The fastest to fix this is probably make clean; make; make 
install for both wx and pgadmin.

Regards,
Andreas

Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
Andreas Pflug <pgadmin@pse-consulting.de>
Дата:
steve fox wrote:
> I was able to get beta 3 running by downloading a fresh copy of 
> wxWidgets from wxwidgets.org (2.5.3) and using your explicit casts 
> (following a make clean; make; make install of pgadmin3).
> 
> Thanks!  Your help and patience are much appreciated, Andreas.

You're welcome!
Please post the exact cast line that made it work, so I can put it in 
our cvs sources.

Regards,
Andreas

Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
steve fox <steve@wiscota.net>
Дата:
I was able to get beta 3 running by downloading a fresh copy of 
wxWidgets from wxwidgets.org (2.5.3) and using your explicit casts 
(following a make clean; make; make install of pgadmin3).

Thanks!  Your help and patience are much appreciated, Andreas.

Cheers,

Steve



Andreas Pflug wrote:
> steve fox wrote:
> 
>> Thanks, Andreas -
>>
>> Your changes got me past the previous error, now I'm seeing this one:
>>
>> xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD1Ev+0x13): In 
>> function `wxMemoryFSHandler::~wxMemoryFSHandler()':
>> ui/common/xrcDialogs.cpp:8926: undefined reference to 
>> `wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'
>> xrcDialogs.o(.gnu.linkonce.t._ZN17wxMemoryFSHandlerD0Ev+0x14): In 
>> function `wxMemoryFSHandler::~wxMemoryFSHandler()':
>> ui/common/xrcDialogs.cpp:8926: undefined reference to 
>> `wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase()'
> 
> 
> This means (in 999.9999% of all cases) that object and lib don't fit 
> together. The fastest to fix this is probably make clean; make; make 
> install for both wx and pgadmin.
> 
> Regards,
> Andreas
> 

Re: [pgadmin-support] pgadmin3 beta3 build failure

От:
steve fox <steve@wiscota.net>
Дата:
Here's the exact cast:

m_conversion->MB2WC((wchar_t*)(wxChar*)wxStringBuffer(str, nLen), (const 
char*)buffer, (size_t)(nLen+1));

Thanks again!

-Steve

Andreas Pflug wrote:
> steve fox wrote:
> 
>> I was able to get beta 3 running by downloading a fresh copy of 
>> wxWidgets from wxwidgets.org (2.5.3) and using your explicit casts 
>> (following a make clean; make; make install of pgadmin3).
>>
>> Thanks!  Your help and patience are much appreciated, Andreas.
> 
> 
> You're welcome!
> Please post the exact cast line that made it work, so I can put it in 
> our cvs sources.
> 
> Regards,
> Andreas
> 

FAQ