Can somebody file a P1 bug, please

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Can somebody file a P1 bug, please

Post by ONEEYEMAN » Wed Aug 31, 2005 11:36 pm

Hi, ALL,
The wxGTK build for ODBC and UNICODE is broken. Can somebody file a P1 bug for that issue?
I don't have much experience with the Linux, but will try to look into it. If I find the solution this thread will have my findings...

Thank you.

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Thu Sep 01, 2005 12:24 am

(This really shouldn't be a "Question" post, I don't think...)
EDIT by upCASE: Right, set it to normal post instead.

How is it broken? How can anyone file a bug without more information?

raboof
Earned a small fee
Earned a small fee
Posts: 20
Joined: Fri Sep 10, 2004 10:44 pm

Post by raboof » Thu Sep 01, 2005 12:45 am


ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN » Thu Sep 01, 2005 1:29 am

Thank you for theFAST reply, guys!
The errors I got from the make are as follows:

Code: Select all

src/common/db.cpp: In member function `bool wxDb::Open(const wxString&, void*,
   bool)':
src/common/db.cpp:842: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `3' to `SQLRETURN SQLDriverConnect(void*, void*, SQLCHAR*, short
   int, SQLCHAR*, short int, SQLSMALLINT*, short unsigned int)'
src/common/db.cpp:849: error: ambiguous overload for 'operator=' in '
   this->wxDb::outConnectionStr = outConnectBuffer'
include/wx/string.h:626: error: candidates are: wxString&
   wxString::operator=(int) <near match>
include/wx/string.h:846: error:                 wxString&
   wxString::operator=(wchar_t) <near match>
include/wx/string.h:860: error:                 wxString&
   wxString::operator=(const wxWCharBuffer&) <near match>
include/wx/string.h:915: error:                 wxString&
   wxString::operator=(const wxString&) <near match>
src/common/db.cpp: In member function `bool wxDb::Open(const wxString&, const
   wxString&, const wxString&, bool)':
src/common/db.cpp:887: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `2' to `SQLRETURN SQLConnect(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `bool wxDb::Open(wxDb*)':
src/common/db.cpp:947: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `3' to `SQLRETURN SQLDriverConnect(void*, void*, SQLCHAR*, short
   int, SQLCHAR*, short int, SQLSMALLINT*, short unsigned int)'
src/common/db.cpp:954: error: ambiguous overload for 'operator=' in '
   this->wxDb::outConnectionStr = outConnectBuffer'
include/wx/string.h:626: error: candidates are: wxString&
   wxString::operator=(int) <near match>
include/wx/string.h:846: error:                 wxString&
   wxString::operator=(wchar_t) <near match>
include/wx/string.h:860: error:                 wxString&
   wxString::operator=(const wxWCharBuffer&) <near match>
include/wx/string.h:915: error:                 wxString&
   wxString::operator=(const wxString&) <near match>
src/common/db.cpp:962: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `2' to `SQLRETURN SQLConnect(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `bool wxDb::getDataTypeInfo(short int,
   wxDbSqlTypeInfo&)':
src/common/db.cpp:1637: error: `SQL_C_WCHAR' undeclared (first use this
   function)
src/common/db.cpp:1637: error: (Each undeclared identifier is reported only
   once for each function it appears in.)
src/common/db.cpp: In member function `bool wxDb::DispAllErrors(void*, void*,
   void*)':
src/common/db.cpp:1798: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLError(void*, void*, void*, SQLCHAR*,
   SQLINTEGER*, SQLCHAR*, short int, SQLSMALLINT*)'
src/common/db.cpp: In member function `bool wxDb::GetNextError(void*, void*,
   void*)':
src/common/db.cpp:1825: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLError(void*, void*, void*, SQLCHAR*,
   SQLINTEGER*, SQLCHAR*, short int, SQLSMALLINT*)'
src/common/db.cpp: In member function `bool wxDb::DropView(const wxString&)':
src/common/db.cpp:2182: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `2' to `SQLRETURN SQLExecDirect(void*, SQLCHAR*, long int)'
src/common/db.cpp: In member function `bool wxDb::ExecSql(const wxString&)':
src/common/db.cpp:2215: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `2' to `SQLRETURN SQLExecDirect(void*, SQLCHAR*, long int)'
src/common/db.cpp: In member function `int wxDb::GetKeyFields(const wxString&,
   wxDbColInf*, short unsigned int)':
src/common/db.cpp:2393: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLPrimaryKeys(void*, SQLCHAR*, short int,
   SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:2423: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLForeignKeys(void*, SQLCHAR*, short int,
   SQLCHAR*, short int, SQLCHAR*, short int, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int)'
src/common/db.cpp:2469: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `12' to `SQLRETURN SQLForeignKeys(void*, SQLCHAR*, short int,
   SQLCHAR*, short int, SQLCHAR*, short int, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `wxDbColInf* wxDb::GetColumns(wxChar**,
   const wxChar*)':
src/common/db.cpp:2589: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:2597: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `wxDbColInf* wxDb::GetColumns(const
   wxString&, UWORD*, const wxChar*)':
src/common/db.cpp:2745: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:2753: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `int wxDb::GetColumnCount(const
   wxString&, const wxChar*)':
src/common/db.cpp:3249: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:3257: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `wxDbInf* wxDb::GetCatalog(const wxChar*)
   ':
src/common/db.cpp:3342: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLTables(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `bool wxDb::Catalog(const wxChar*, const
   wxString&)':
src/common/db.cpp:3449: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLColumns(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `bool wxDb::TableExists(const wxString&,
   const wxChar*, const wxString&)':
src/common/db.cpp:3584: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLTables(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:3592: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLTables(void*, SQLCHAR*, short int, SQLCHAR*,
   short int, SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In member function `bool wxDb::TablePrivileges(const
   wxString&, const wxString&, const wxChar*, const wxChar*, const wxString&)':
src/common/db.cpp:3651: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `4' to `SQLRETURN SQLTablePrivileges(void*, SQLCHAR*, short int,
   SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp:3658: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `6' to `SQLRETURN SQLTablePrivileges(void*, SQLCHAR*, short int,
   SQLCHAR*, short int, SQLCHAR*, short int)'
src/common/db.cpp: In function `bool wxDbGetDataSource(void*, wxChar*, short
   int, wxChar*, short int, short unsigned int)':
src/common/db.cpp:4404: error: cannot convert `SQLTCHAR*' to `SQLCHAR*' for
   argument `3' to `SQLRETURN SQLDataSources(void*, short unsigned int,
   SQLCHAR*, short int, SQLSMALLINT*, SQLCHAR*, short int, SQLSMALLINT*)'
make: *** [odbcdll_db.o] Error 1
That's how the compiling line looks like:

Code: Select all

./bk-deps g++ -c -o odbcdll_db.o  -D__WXGTK__          -I./src/regex  -DwxUSE_GUI=0 -DWXUSINGDLL -DWXMAKINGDLL_ODBC -fPIC -DPIC -D__WXDEBUG__ -Ilib/wx/include/gtk2-unicode-debug-2.6 -I./include -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -ggdb -D_IODBC_ -pg -O0 -pthread -Wall -Wno-ctor-dtor-privacy ./src/common/db.cpp
The configure line looks like this:

Code: Select all

[email protected] ~/wxGTK-2.6.1/distro $ ./configure --with-gtk2 --enable-debug --enable-stl --enable-debug-gdb --enable-tabdialog --enable-unicode --enable-profile --enable-debug-cntxt --enable-mem_tracing --with-odbc
I am trying to build it with the unixODBC 2.2.6 with the gcc 3.3.5, glibc 2.3.5.
If you want anything else, just tell, I'll provide any info you need.

Thank you.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN » Thu Sep 01, 2005 5:27 am

If this is the same bug as raboof pointed out, how to solve it? The bug didn't give an answer to that, because of the last comment in the bug. Also, if I would do the suggested fix, where I should put it? In the main Makefile? Or I have to set some configure option?

Thank you.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN » Fri Sep 02, 2005 6:12 am

I just tried that and it doesn't qwork for me.
I ran the ./configure, then manually edit the Makefile and add the solution explained in the bug. But I still got the same eror messages.

If nobody answers on this thread, I am gonna start another one with the same thread name.

Thank you.

raboof
Earned a small fee
Earned a small fee
Posts: 20
Joined: Fri Sep 10, 2004 10:44 pm

Post by raboof » Fri Sep 02, 2005 11:10 am

ONEEYEMAN wrote:If nobody answers on this thread, I am gonna start another one with the same thread name.
You might have better luck with a thread name that actually describes your problem.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 4152
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Post by ONEEYEMAN » Fri Sep 02, 2005 4:34 pm

Already tried that twice with no luck at all. Nobody responded!!

Thank you.

KevinHock
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 236
Joined: Sat Sep 04, 2004 1:49 pm
Location: Ohio, USA
Contact:

Post by KevinHock » Fri Sep 02, 2005 9:53 pm

Posting repeatedly about the same problem, in different threads, isn't really going to help. It's probably against the forum rules, too. If people don't know the answer, they don't know the answer. When you post, be as clear and specific as you can be, and if someone knows, they will help you.

raboof
Earned a small fee
Earned a small fee
Posts: 20
Joined: Fri Sep 10, 2004 10:44 pm

Post by raboof » Sat Sep 03, 2005 1:24 pm

ONEEYEMAN wrote:Already tried that twice with no luck at all. Nobody responded!!
Have you tried the mailinglists?

Post Reply