fluent-bit: [1.6.10] cmake fails to create `monkey/mk_info.h`, compilation fails
Bug Report
Describe the bug
cmake fails to create monkey/mk_info.h and as a result, the compilation fails.
To Reproduce git checkout 1.6 cd build cmake … make
Expected behavior
cmake would generate .h header files from .h.in files, and then make would politely build fluent-bit
Screenshots
[ 82%] Built target flb-plugin-in_collectd
Scanning dependencies of target flb-plugin-in_http
[ 83%] Building C object plugins/in_http/CMakeFiles/flb-plugin-in_http.dir/http.c.o
In file included from /Users/girgen/repos/fluent-bit/plugins/in_http/http.c:26:
In file included from /Users/girgen/repos/fluent-bit/plugins/in_http/http.h:28:
In file included from /Users/girgen/repos/fluent-bit/lib/monkey/include/monkey/monkey.h:43:
In file included from /Users/girgen/repos/fluent-bit/lib/monkey/include/monkey/mk_server.h:24:
In file included from /Users/girgen/repos/fluent-bit/lib/monkey/include/monkey/mk_socket.h:31:
/Users/girgen/repos/fluent-bit/lib/monkey/include/monkey/mk_config.h:26:10: fatal error: 'monkey/mk_info.h' file not found
#include <monkey/mk_info.h>
^~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [plugins/in_http/CMakeFiles/flb-plugin-in_http.dir/http.c.o] Error 1
make[1]: *** [plugins/in_http/CMakeFiles/flb-plugin-in_http.dir/all] Error 2
make: *** [all] Error 2
Your Environment
- Version used: 1.6.10
- Configuration: BSD (FreeBSD and Mac OS both fail)
- Environment name and version (e.g. Kubernetes? What version?): FreeBSD (all versions), Mac OS X
- Server type and version: FreeBSD
- Operating System and version: FreeBSD
- Filters and plugins: n/a
Additional context Note that 1.6.9 does build as does master. The issue is specific to version 1.6.10.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 15 (3 by maintainers)
Commits related to this issue
- enable in-http plugin in-http plugin was disable due to a workaround of https://github.com/fluent/fluent-bit/issues/2930 but no longer need it — committed to shogo82148/fluent-bit-rpm by shogo82148 3 years ago
- https://github.com/fluent/fluent-bit/issues/2930 fixed — committed to sumitd2/build-scripts by sumitd2 a year ago
- Fluent bit 1.6.10 (#3176) * fluent-bit v1.6.10 * https://github.com/fluent/fluent-bit/issues/2930 fixed * Update fluent-bit_v1.6.10_ubi8.7.sh * Update fluent-bit_v1.6.10_ubi8.7.sh * Updat... — committed to ppc64le/build-scripts by sumitd2 a year ago
The workaround is to disable
in_httpplugin. It is enabled on v1.6.10.Tried editing onigmo.make as specified, there were two “set” lines in an if/else, modified both of them from lib to lib64.
Then it make clean and re-cmake (no http) and it bombed out again with a similar error for backtrace/backtrace-prefix
make clean, cmake … ,etc. again, and modified CMakeLists.txt similarly, changing lib to lib64 on or about line 624 set_target_properties(libbacktrace PROPERTIES IMPORTED_LOCATION “${CMAKE_CURRENT_BINARY_DIR}/backtrace-prefix/lib/libbacktrace.a”) under
LibBacktrace (friendly stacktrace support)
=========================================
After that, I was able to complete the build and even sudo make install.
Was able to cd into /usr/local and run fluent-bit -i cpu -o stdout and got reasonable output.
Hardly a complete test of all features, but definitely progress. Kirk B.
Not a