You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker run -it --user=root docker.io/fluent/fluentd:v1.17-debian-1 /bin/bash
From the container
gem install fluent-plugin-systemd -v 1.1.0
Error message :
Fetching fluent-plugin-systemd-1.1.0.gem
Fetching ffi-1.17.0-x86_64-linux-gnu.gem
Fetching systemd-journal-2.0.0.gem
Successfully installed ffi-1.17.0-x86_64-linux-gnu
Building native extensions. This could take a while...
ERROR: Error installing fluent-plugin-systemd:
ERROR: Failed to build gem native extension.
current directory: /usr/local/bundle/gems/systemd-journal-2.0.0/ext/shim
/usr/local/bin/ruby extconf.rb
checking for whether -fvisibility=hidden is accepted as CFLAGS... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
/usr/local/lib/ruby/3.2.0/mkmf.rb:490:in `try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /usr/local/lib/ruby/3.2.0/mkmf.rb:616:in `block in try_compile'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:563:in `with_werror'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:616:in `try_compile'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:680:in `try_cflags'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:1025:in `block (2 levels) in append_cflags'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:989:in `block in checking_for'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:354:in `block (2 levels) in postpone'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:324:in `open'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:354:in `block in postpone'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:324:in `open'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:350:in `postpone'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:988:in `checking_for'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:1024:in `block in append_cflags'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:1023:in `each'
from /usr/local/lib/ruby/3.2.0/mkmf.rb:1023:in `append_cflags'
from extconf.rb:8:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/bundle/extensions/x86_64-linux/3.2.0/systemd-journal-2.0.0/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/local/bundle/gems/systemd-journal-2.0.0 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/3.2.0/systemd-journal-2.0.0/gem_make.out
A new release of RubyGems is available: 3.4.19 → 3.5.23!
Run `gem update --system 3.5.23` to update your installation.
If i look into mkmf.log cat /usr/local/bundle/extensions/x86_64-linux/3.2.0/systemd-journal-2.0.0/mkmf.log
Steps to reproduce
Running fluentd in a docker container
From the container
Error message :
If i look into mkmf.log
cat /usr/local/bundle/extensions/x86_64-linux/3.2.0/systemd-journal-2.0.0/mkmf.log
I am unsure what is the issue here as it only appears in this new version. Previous version 1.0.5 installs fine.
The text was updated successfully, but these errors were encountered: