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. [PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function)

[PATCH] sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function)

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 29.8k 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.
  • ?
    ?
    possamai
    wrote on last edited by
    #1

    Trying to build NetXMS-1.2.11 on FreeBSD 9.2 I'm runing into an error message..
    I configured like this: ./configure --with-openssl --with-mysql --with-server --with-snmp --with-agent --prefix=/usr/local/netxms

    Then when I try to 'make' it ends in error.
    I have sqlite3 installed.

    Making all in sqlite
      CC    libnxsqlite_la-sqlite3.lo
    sqlite3.c:23531: error: 'fchmod' undeclared here (not in a function)
    *** [libnxsqlite_la-sqlite3.lo] Error code 1

    I fixed it by adding #include <sys/stat.h> to netxms-1.2.11/src/sqlite/sqlite3.c
    It's probably not the best place to put it but at least it works 🙂
    Maybe it can be added to the next version so FreeBSD it can be compiled on FreeBSD without the need to google 😛

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

      Can you please check that latest SQLite amalgamation (http://www.sqlite.org/2013/sqlite-amalgamation-3080200.zip) compiles on FreeBSD 9.2? If yes, I'll just replace current version with latest one.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • ?
        ?
        possamai
        wrote on last edited by
        #3

        I could..... but I'm not really sure how..
        "gcc sqlite3.c shell.c -o sqlite" compiles without error but I'm not sure if that's how I'm suposed to compile it.

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

          Yes, it's what I was interested in. Thank you!

          Best regards,
          Victor

          1 Reply Last reply
          0
          • ?
            ?
            possamai
            wrote on last edited by
            #5

            you're welcome. 😎

            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