Although I have disabled zeromq (using ./configure --disable-output-uhd --disable-zeromq), I cannot compile the next branch. I fear there are some #if defined(HAVE_ZEROMQ) missing in Events.h and Events.cpp
As I am not a programmer I have no idea if I broke something when excluding everything in Events.cpp. See patch below.
another bug found and fixed
Furthermore, there was a missing #include <string.h> in Utils.cpp, otherwise I get the following error
make[1]: Verzeichnis „/home/andreas/apps/ODR-DabMod“ wird betreten
CXX src/odr_dabmod-Utils.o
src/Utils.cpp: In function ‘time_t get_clock_realtime_seconds()’:
src/Utils.cpp:362:85: error: ‘strerror’ was not declared in this scope; did you mean ‘hstrerror’?
362 | throw std::runtime_error(std::string("Failed to retrieve CLOCK_REALTIME") + strerror(errno));
| ^~~~~~~~
| hstrerror
Compilation
But at least I could compile it near to the end, but not 100%
CXXLD odr-dabmod
/usr/bin/ld: src/odr_dabmod-DabMod.o: warning: relocation against `_ZTV16LogToEventSender' in read-only section `.text'
/usr/bin/ld: src/odr_dabmod-DabMod.o: in function `LogToEventSender::LogToEventSender()':
/home/andreas/apps/ODR-DabMod/src/Events.h:69:(.text+0xe37): undefined reference to `vtable for LogToEventSender'
/usr/bin/ld: src/odr_dabmod-ConfigParser.o: in function `parse_configfile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, mod_settings_t&)':
/home/andreas/apps/ODR-DabMod/src/ConfigParser.cpp:127:(.text+0x14ed): undefined reference to `events'
/usr/bin/ld: /home/andreas/apps/ODR-DabMod/src/ConfigParser.cpp:127:(.text+0x14f2): undefined reference to `EventSender::bind(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:935: odr-dabmod] Fehler 1
make[1]: Verzeichnis „/home/andreas/apps/ODR-DabMod“ wird verlassen
make: *** [Makefile:678: all] Fehler 2
Hint:
After enabling zeromq (or changing to the master branch), everything works fine.
CXXLD odr-dabmod
make[1]: Verzeichnis „/home/andreas/apps/ODR-DabMod“ wird verlassen
Problem
Although I have disabled zeromq (using
./configure --disable-output-uhd --disable-zeromq
), I cannot compile thenext
branch. I fear there are some#if defined(HAVE_ZEROMQ)
missing inEvents.h
andEvents.cpp
As I am not a programmer I have no idea if I broke something when excluding everything in
Events.cpp
. See patch below.another bug found and fixed
Furthermore, there was a missing
#include <string.h>
inUtils.cpp
, otherwise I get the following errorCompilation
But at least I could compile it near to the end, but not 100%
Hint:
After enabling zeromq (or changing to the
master
branch), everything works fine.Patch file (but not 100% ok)
odr-dabmod_andimik.patch.txt