statusengine / broker

Repository of the Statusengine Event Broker Module written in C++ (development)
GNU General Public License v2.0
8 stars 5 forks source link

librabbitmq-dev always required? #24

Closed nook24 closed 3 years ago

nook24 commented 3 years ago

In https://github.com/statusengine/interface/issues/47 @tinoklauer had some issues building the Statusengine Broker using:

-Drabbitmq=false

which results into:

Error: Could not load module '/opt/statusengine/lib/libstatusengine.so' -> /opt/statusengine/lib/libstatusengine.so: undefined symbol: amqp_empty_bytes

meson setup -Dnagios=true -Dnagios_include_dir=/opt/nagios/include -Drabbitmq=false build

We should check if this is an error in the docs or an error in the broker module.

jabdr commented 3 years ago

In my test there was no link to any rabbitmq lib when rabbitmq was set to false. Could you reproduce it somewhere? Maybe he had built it before with rabbitmq and it was cached? @nook24

tinoklauer commented 3 years ago

Hi,

here the script for reproduce. I change the script from nook24 for Debian 10.

Download script

Testet in Debian 10

you see the error with systemctl status nagios | grep Could or you try to run the file /opt/statusengine/lib/libstatusengine.so --> Speicherzugriffsfehler

thx

jabdr commented 3 years ago

@tinoklauer Thanks for the bug report. It should work with the latest commit as intended.

tinoklauer commented 3 years ago

@jabdr I tested and it works. thx