Compile Error on opensuse leap 15

Started by gkaudewitz, July 09, 2018, 01:11:00 PM

Previous topic - Next topic

gkaudewitz

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

Victor Kirhenshtein

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

gkaudewitz

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

gkaudewitz

Here are the other attachments.

Victor Kirhenshtein

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

gkaudewitz

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

Victor Kirhenshtein

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