<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[odbc build for centos/rhel 5.x and ms sql]]></title><description><![CDATA[<p dir="auto">For testing the product I built and compiled the initial binaries using mysql. All works great and extremely happy with the  product and capabilities after demoing for one of our teams. To review and further prove out the product, we are interested in building the libraries to work with MS SQL server and hoping for some advice.</p>
<p dir="auto">In the installation doc, ODBC is supported but read the unixODBC package is needed. One question I asked is... must I compile the source with unixodbc to work with MS SQL server backend?  Or will the product only work with Windows and ms sql server?</p>
<p dir="auto">Additionally, I figured I would attempt to build the files using our DataDirect drivers as these are our firm standard. During the build I receive the following error, see below. </p>
<p dir="auto">make[5]: Entering directory `/logs/tmp/netxms/netxms-1.2.9/src/db/dbdrv/odbc'<br />
  CXX    odbc_la-odbc.lo<br />
odbc.cpp: In function 'void* DrvPrepare(ODBCDRV_CONN*, wchar_t*, DWORD*, wchar_t*)':<br />
odbc.cpp:303: error: cannot convert 'short unsigned int*' to 'char*' in initialization<br />
odbc.cpp: In function 'DWORD DrvQuery(ODBCDRV_CONN*, wchar_t*, wchar_t*)':<br />
odbc.cpp:511: error: cannot convert 'short unsigned int*' to 'char*' in initialization<br />
odbc.cpp: In function 'void* DrvSelect(ODBCDRV_CONN*, wchar_t*, DWORD*, wchar_t*)':<br />
odbc.cpp:639: error: cannot convert 'short unsigned int*' to 'char*' in initialization<br />
odbc.cpp: In function 'void* DrvAsyncSelect(ODBCDRV_CONN*, wchar_t*, DWORD*, wchar_t*)':<br />
odbc.cpp:804: error: cannot convert 'short unsigned int*' to 'char*' in initialization<br />
odbc.cpp: In function 'wchar_t* DrvGetFieldAsync(ODBCDRV_ASYNC_QUERY_RESULT*, int, wchar_t*, int)':<br />
odbc.cpp:935: error: cannot convert 'char*' to 'const short unsigned int*' for argument '1' to 'size_t ucs2_to_ucs4(const short unsigned int*, int, wchar_t*, int)'<br />
make[5]: *** [odbc_la-odbc.lo] Error 1</p>
<p dir="auto">Here is my configure command line argument...<br />
./configure --with-server --with-agent --with-odbc=/tp64/db/DD/7.0.1 --prefix=/opt/netxms-prod CPPFLAGS="-DODBC64 -I/tp64/db/DD/7.0.1/include" LDFLAGS="-L/tp64/db/DD/7.0.1/lib"</p>
<p dir="auto">Any suggestions or possible options to try to get the files built with this driver? Or do I need to use unixodbc?</p>
<p dir="auto">Appreciate your help in advance.</p>
]]></description><link>https://forum.netxms.org/topic/2732/odbc-build-for-centos-rhel-5.x-and-ms-sql</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:08:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/2732.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Nov 2013 19:01:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to odbc build for centos/rhel 5.x and ms sql on Tue, 26 Nov 2013 21:19:54 GMT]]></title><description><![CDATA[<p dir="auto">I need to take a look further if it does and see what I find. thanks for your response and appreciate the help.</p>
]]></description><link>https://forum.netxms.org/post/12021</link><guid isPermaLink="true">https://forum.netxms.org/post/12021</guid><dc:creator><![CDATA[mjcig]]></dc:creator><pubDate>Tue, 26 Nov 2013 21:19:54 GMT</pubDate></item><item><title><![CDATA[Reply to odbc build for centos/rhel 5.x and ms sql on Thu, 21 Nov 2013 14:40:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">We never try to build our ODBC driver with anything other then unixODBC on Linux. However, it should work if ODBC API is implemented correctly. Lines with errors looks like this:</p>
<p dir="auto">SQLWCHAR *temp = UCS2StringFromUCS4String(pwszQuery);</p>
<p dir="auto">from the error it seems that SQLWCHAR in your ODBC SDK defined to char, not unsigned short as expected. Does DataDirect ODBC implementation support wide character ODBC API? Maybe there should be additional defines to enable it?</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/11909</link><guid isPermaLink="true">https://forum.netxms.org/post/11909</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 21 Nov 2013 14:40:59 GMT</pubDate></item></channel></rss>