CentOS Make Errors - agent_tunnel.h

Started by webeck5, April 08, 2018, 01:00:11 AM

Previous topic - Next topic

webeck5

During make process in a centos installation, I have run into this error;

----------------------------------------------------------------------------------------------------
In file included from agent.cpp:24:0:
../../../src/server/include/agent_tunnel.h:89:4: error: 'SSL_CTX' does not name a type
    SSL_CTX *m_context;
    ^
../../../src/server/include/agent_tunnel.h:90:4: error: 'SSL' does not name a type
    SSL *m_ssl;
    ^
../../../src/server/include/agent_tunnel.h:123:24: error: expected ')' before '*' token
    AgentTunnel(SSL_CTX *context, SSL *ssl, SOCKET sock, const InetAddress& addr, UINT32 nodeId, UINT32 zoneUIN);
                        ^
../../../src/server/include/agent_tunnel.h:154:28: error: 'SSL_CTX' was not declared in this scope
bool SetupServerTlsContext(SSL_CTX *context);
                            ^
../../../src/server/include/agent_tunnel.h:154:37: error: 'context' was not declared in this scope
bool SetupServerTlsContext(SSL_CTX *context);
                                     ^
make[4]: *** [libnxcore_la-agent.lo] Error 1
-------------------------------------------------------------------------------------------------------------

Configure ran clean using the following;

sh ./configure --with-server --with-mysql --with-agent --disable-encryption --disable-ssh --disable-mqtt --without-openssl

Please advise if you would need the config.log.... Thanks

Victor Kirhenshtein

Hi,

what version you are trying to build?

Best regards,
Victor

webeck5

Victor,

     I knew I should have added that .... Netxms 2.2.4 on Centos 7.

Victor Kirhenshtein

Hi,

I overlook that you are trying to build server, not agent. Building server without encryption support is no longer supported. You should install openssl development package and re-run configure without options --disable-encryption and --without-openssl. We have updated configure scxript for next release so it will display meaningful error message in that case.

Best regards,
Victor

webeck5

Victor,

    Understand, Thanks .... I will add openssl. Initially I built this on Windows, to remote CentOS server with Maria db (using the mysql driver) and it worked fine. Before going production fully on CentOS server I wanted to run through the build process and familiarize myself better with the process. During this build I ran across needing several devel libraries. Is there any documentation which defines the libraries required for the options allowed?

     I will consider this issue resolved. Thanks again ...

Regards,
Wayne

Victor Kirhenshtein

Probably it's not documented, but list is quite short actually. You definitely need openssl, for SSH support you need libssh, libmosquitto for MQTT support, libcurl for Jira integration and some SMS drivers, and JDK for Java subagents.

Best regards,
Victor