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

Most upvoted comments

The workaround is to disable in_http plugin. It is enabled on v1.6.10.

cmake .. -DFLB_IN_HTTP=no 
make

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