Skip to content

Failed to use fluent-bit as dynamic library #7028

@jeongukjae

Description

@jeongukjae

Bug Report

Describe the bug

Cannot build a program with fluent bit dynamic library.

The error log:

In file included from stdout.c:22:
In file included from ../tmp/usr/local/include/fluent-bit/flb_filter.h:26:
In file included from ../tmp/usr/local/include/fluent-bit/flb_regex.h:27:
In file included from ../tmp/usr/local/include/fluent-bit/flb_compat.h:34:
../tmp/usr/local/include/monkey/mk_core.h:33:10: fatal error: 'mk_core/mk_core_info.h' file not found
#include <mk_core/mk_core_info.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~

To Reproduce

  • Steps to reproduce the problem:

Clone and set the working directory to fluent-bit.

  1. brew install libyaml openssl bison (cmake is already installed in my env and version is 3.17.3)
  2. cmake ..
  3. make
  4. make DESTDIR=pwd/../tmp install

And try to build any arbitrary filter plugin to a shared object. (I tried this with filter_stdout)

Expected behavior

Compiled successfully.

Screenshots

Your Environment

  • Version used: tag: v2.0.9
  • Configuration:
  • Environment name and version (e.g. Kubernetes? What version?):
  • Server type and version:
  • Operating System and version: Mac Monterey 12.4
  • Filters and plugins:

Additional context

I think configured files/libraries like the following links are not installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions