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. Compile Error on opensuse leap 15

Compile Error on opensuse leap 15

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 92.7k 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.
  • G
    G
    gkaudewitz
    wrote on last edited by
    #1

    Hello together,

    compiling Your software on a fresh installed Opensuse Leap 15 system I get these errors:

      CXX      libnetxms_la-tp.lo
    tp.cpp: In function ‘void* WorkerThread(void*)’:
    tp.cpp:116:4: error: ‘strlcat’ was not declared in this scope
        strlcat(threadName, "/WRK", 16);
        ^~~~~~~
    tp.cpp:116:4: note: suggested alternative: ‘strncat’
        strlcat(threadName, "/WRK", 16);
        ^~~~~~~
        strncat
    tp.cpp: In function ‘void* MaintenanceThread(void*)’:
    tp.cpp:164:4: error: ‘strlcat’ was not declared in this scope
        strlcat(threadName, "/MNT", 16);
        ^~~~~~~
    tp.cpp:164:4: note: suggested alternative: ‘strncat’
        strlcat(threadName, "/MNT", 16);
        ^~~~~~~
        strncat
    make[3]: *** [Makefile:1204: libnetxms_la-tp.lo] Error 1

    Best regards

    Georg

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

      Hi,

      I just install fresh OpenSUSE Leap 15 system and build went without errors. Could you please send me your config.log and list of installed packages? Also, what version you were trying to install?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • G
        G
        gkaudewitz
        wrote on last edited by
        #3

        Hello Victor,

        many thanks for supporting a Linux derivate that is a little bit exotic.

        I tried it on two differnt Installations of Leap 15 with same result. I used the download link for the stable source of Version 2.2.6. No other version of netxms was installed on the Systems before.

        Bets regards

        Georg


        config.log

        1 Reply Last reply
        0
        • G
          G
          gkaudewitz
          wrote on last edited by
          #4

          Here are the other attachments.


          installedsoftware.txt

          makeerr.txt

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

            This is really weird - I cannot reproduce it on my system. 2.2.6 builds without issues. Your system definitely has more packages installed, but libraries used for tests during configuration phase are the same.

            I'll try to add additional checks to avoid false detection of those two functions. As a workaround you can try to edit config.h after configure run and comment out lines starting with
            #define HAVE_STRLCPY
            #define HAVE_STRLCAT

            and then run make.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • G
              G
              gkaudewitz
              wrote on last edited by
              #6

              Hello Victor,
              I tried Your suggestion and it worked fine for my Leap 15 installation with 2.2.6. Best thanks for that and Your suppport in the forum!

              As I saw 2.2.7 is out I have buildt a new Virtual Maschin (thanks to VMWare!) and compiled 2.2.7 without any errors and the server works fine in an testenvironment. But I got an other problem with the webapp that is not running in the environment with tomcat9 and the provided java stack. Every time I'm trying to access the Webconsole I get Error 404 from the console with the message
              "HTTP Status 404 – Not Found
              Type Status Report
              Message BridgeServlet: /nxmc
              Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
              Apache Tomcat/9.0.5"
              I have not had such problems the last years with the Webapp as of  this I think this depends on a problem with tomcat, but I'm not familar with it. Do You have some advise? Is Your app tomcat 9 ready?

              Best regards
              Georg

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

                Hi,

                it's known issue (https://track.radensolutions.com/issue/NX-1463), not fixed yet. In the meantime you should use Tomcat 8 or Jetty.

                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