rust-rdkafka icon indicating copy to clipboard operation
rust-rdkafka copied to clipboard

Attempting to build with gssapi-vendored still requires a system install of cyrus ssl

Open santidhammo opened this issue 1 year ago • 0 comments

The following Cargo.toml still requires a system install of the dependencies of cyrus-ssl

[package]
name = "foo"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rdkafka = { version = "0.29.0", features = ["ssl-vendored", "gssapi-vendored", "libz-static", "curl-static"] }

I would think that gssapi-vendored would prevent this requirement

Rust version:

rustc 1.65.0 (897e37553 2022-11-02)

Cargo version:

cargo 1.65.0 (4bc8f24d3 2022-10-20)

Running on:

Linux fedora 6.1.8-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jan 24 20:32:16 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

The error received:

/usr/bin/ld: cannot find -lsasl: Bestand of map bestaat niet
 collect2: fout: ld gaf exit-status 1 terug
 source: 
 #include <stddef.h>
 #include <sasl/sasl.h>

 ###########################################################
 ### Installing the following packages might help:       ###
 ###########################################################
 sudo yum install -y  cyrus-sasl

What is worse, is that the suggestion is even in error, I don't know if this is part of the dependent library, in that case it might be posted upstream, as it should be "sudo dnf install -y cyrus-sasl-devel". On Redhat based systems it is always *-devel when requiring source/header files, and dnf is a decade old already.

santidhammo avatar Feb 08 '23 21:02 santidhammo