NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 19 forks source link

Name conflict between "lib/pqueue.h" and "openssl/pqueue.h" when compiling NDOUtils with "--enable-ssl" configuration option #58

Closed sawolf closed 4 years ago

sawolf commented 5 years ago

Copying from https://github.com/NagiosEnterprises/nagioscore/issues/706:

This is a build time issue that primarily affects NDOUtils' use of OpenSSL. When setting the --enable-ssl flag, the OpenSSL libraries pull in a pqueue library which contains conflicting function signatures in OpenSSL v1.0.2k as installed on RHEL7. I would open this in the NDOUtils but it looks like pqueue.h is a core library of Nagios Core.

Steps to reproduce:

Configure NDOUtils add-on with --enable-ssl omitted Attempt to build Install OpenSSL 1.0.2k development libraries and headers Configure NDOUtils add-on with --enable-ssl set Attempt to build Expected Behavior: NDOUtils builds successfully under both conditions with no type conflicts

Actual Behavior: NDOUtils builds successfully with no SSL, but build aborts when SSL enabled due to type conflicts

Build log is included below. build-log-no-ssl.txt build-log-ssl-enabled.txt

sawolf commented 4 years ago

No longer relevant - NDO 3 uses mysql_options to set SSL settings, so we don't use OpenSSL itself.