Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for Fedora 41+ openssl-devel-engine #556

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

agrare
Copy link
Member

@agrare agrare commented Dec 4, 2024

Fix errors installing the rdkfaka gem while compiling the librdkafka library due to missing openssl/engine.h header file.

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext
/home/agrare/.rubies/ruby-3.1.4/bin/ruby -I/home/agrare/.rubies/ruby-3.1.4/lib/ruby/3.1.0 -rrubygems
/home/agrare/.gem/ruby/3.1.4/gems/rake-13.2.1/exe/rake
RUBYARCHDIR\=/home/agrare/.gem/ruby/3.1.4/extensions/x86_64-linux/3.1.0-static/rdkafka-0.19.0
RUBYLIBDIR\=/home/agrare/.gem/ruby/3.1.4/extensions/x86_64-linux/3.1.0-static/rdkafka-0.19.0
Extracting librdkafka_2.5.3.tar.gz into tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3... OK
Running git apply with /home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/dist/patches/rdkafka_sticky_assignor.c.patch... OK
Running 'configure' for librdkafka 2.5.3... OK
Running 'compile' for librdkafka 2.5.3... ERROR. Please review logs to see what happened:
----- contents of '/home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext/tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3/compile.log' -----
make[1]: Entering directory
'/home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext/tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3/librdkafka-2.5.3/src'
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -DWITH_GZFILEOP   -DWITH_GZFILEOP -c rdkafka.c
-o rdkafka.o
In file included from rdkafka_int.h:116,
                 from rdkafka.c:43:
rdkafka_conf.h:40:10: fatal error: openssl/engine.h: No such file or directory
   40 | #include <openssl/engine.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.

Fix errors installing the rdkfaka gem while compiling the librdkafka
library due to missing openssl/engine.h header file.

```
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext
/home/agrare/.rubies/ruby-3.1.4/bin/ruby -I/home/agrare/.rubies/ruby-3.1.4/lib/ruby/3.1.0 -rrubygems
/home/agrare/.gem/ruby/3.1.4/gems/rake-13.2.1/exe/rake
RUBYARCHDIR\=/home/agrare/.gem/ruby/3.1.4/extensions/x86_64-linux/3.1.0-static/rdkafka-0.19.0
RUBYLIBDIR\=/home/agrare/.gem/ruby/3.1.4/extensions/x86_64-linux/3.1.0-static/rdkafka-0.19.0
Extracting librdkafka_2.5.3.tar.gz into tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3... OK
Running git apply with /home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/dist/patches/rdkafka_sticky_assignor.c.patch... OK
Running 'configure' for librdkafka 2.5.3... OK
Running 'compile' for librdkafka 2.5.3... ERROR. Please review logs to see what happened:
----- contents of '/home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext/tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3/compile.log' -----
make[1]: Entering directory
'/home/agrare/.gem/ruby/3.1.4/gems/rdkafka-0.19.0/ext/tmp/x86_64-redhat-linux/ports/librdkafka/2.5.3/librdkafka-2.5.3/src'
gcc -MD -MP -g -O2 -fPIC -Wall -Wsign-compare -Wfloat-equal -Wpointer-arith -Wcast-align -I. -DWITH_GZFILEOP   -DWITH_GZFILEOP -c rdkafka.c
-o rdkafka.o
In file included from rdkafka_int.h:116,
                 from rdkafka.c:43:
rdkafka_conf.h:40:10: fatal error: openssl/engine.h: No such file or directory
   40 | #include <openssl/engine.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
```
@agrare agrare force-pushed the add_doc_openssl_engine_rdkafka branch from 2fafa88 to 1195862 Compare December 4, 2024 17:02
@Fryguy Fryguy self-assigned this Dec 4, 2024
@bdunne bdunne merged commit 04c3972 into ManageIQ:master Feb 26, 2025
1 check passed
@agrare agrare deleted the add_doc_openssl_engine_rdkafka branch February 26, 2025 21:01
github-actions bot pushed a commit to ManageIQ/manageiq.github.io that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants