Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. NetXMS 0.2.20 compilation

NetXMS 0.2.20 compilation

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 23.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X
    X
    Nikita Matov
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • X
        X
        Nikita Matov
        wrote on last edited by
        #3

        Here is config.log


        config.log

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups