NetXMS 0.2.20 compilation

Started by Nikita Matov, April 10, 2008, 01:22:35 PM

Previous topic - Next topic

Nikita Matov

Hello, Victor!
I am trying to compile netxms 0.2.20 witch odbc support. during compilation the system says:
odbc.cpp: In function 'void* DrvSelect(ODBCDRV_CONN*, WCHAR*, DWORD*)':
odbc.cpp:250: error: cannot convert 'const WCHAR*' to 'const wchar_t*' for argument '1' to 'wchar_t* wcsdup(const wchar_t*)'
odbc.cpp: In function 'LONG DrvGetFieldLength(ODBCDRV_QUERY_RESULT*, int, int)':
odbc.cpp:284: error: cannot convert 'WCHAR*' to 'const wchar_t*' for argument '1' to 'size_t wcslen(const wchar_t*)'
odbc.cpp: In function 'WCHAR* DrvGetField(ODBCDRV_QUERY_RESULT*, int, int, WCHAR*, int)':
odbc.cpp:304: error: cannot convert 'WCHAR*' to 'wchar_t*' for argument '1' to 'wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t)'
make[5]: *** [odbc.lo] Error 1
What can be the cause of this?

Interesting that netxms 0.2.19 compiles without problems.

Victor Kirhenshtein

Hi!

We have changed UNICODE support in 0.2.20 - this should be the cause. I'll take a look at this today. Could you please post config.log here or send it to [email protected]?

Best regards,
Victor

Nikita Matov

Here is config.log

Victor Kirhenshtein

Main problem is to find Linux ODBC driver for MS SQL. Second is to configure unixODBC.  There are some useful links from unixODBC site:
http://www.unixodbc.org/odbcinst.html
http://www.unixodbc.org/config.html

Please note that FreeTDS mosy likely will not work because it doesn't support UNICODE ODBC interface.

Best regards,
Victor