Skip to content

add native methods from alpine-librdkafka.so#883

Merged
Matt Howlett (mhowlett) merged 1 commit into
confluentinc:masterfrom
zerda:feature/add-alpine-support
Apr 25, 2019
Merged

add native methods from alpine-librdkafka.so#883
Matt Howlett (mhowlett) merged 1 commit into
confluentinc:masterfrom
zerda:feature/add-alpine-support

Conversation

@zerda

Copy link
Copy Markdown
Contributor

Resolved #611

Like CentOS and Debian, the native library needs to be loaded from alpine-librdkafka.so not librdkafka.so.

/app # ldd /app/runtimes/linux-x64/native/librdkafka.so
	ldd (0x7f9189dcd000)
	libm.so.6 => ldd (0x7f9189dcd000)
Error loading shared library libsasl2.so.2: No such file or directory (needed by /app/runtimes/linux-x64/native/librdkafka.so)
	libssl.so.1.0.0 => /lib/libssl.so.1.0.0 (0x7f91897cc000)
	libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 (0x7f91893ad000)
	libz.so.1 => /lib/libz.so.1 (0x7f9189196000)
	libdl.so.2 => ldd (0x7f9189dcd000)
	libpthread.so.0 => ldd (0x7f9189dcd000)
	librt.so.1 => ldd (0x7f9189dcd000)
	libc.so.6 => ldd (0x7f9189dcd000)
Error loading shared library ld-linux-x86-64.so.2: No such file or directory (needed by /app/runtimes/linux-x64/native/librdkafka.so)
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_client_start: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __fprintf_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __printf_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_client_new: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __poll_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_dispose: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __memcpy_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __vsnprintf_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_errstring: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_client_init: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __isnan: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_errdetail: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __syslog_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_getprop: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_listmech: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __snprintf_chk: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: __strndup: symbol not found
Error relocating /app/runtimes/linux-x64/native/librdkafka.so: sasl_client_step: symbol not found

/app # ldd /app/runtimes/linux-x64/native/alpine-librdkafka.so
	ldd (0x7fe763b96000)
	libc.musl-x86_64.so.1 => ldd (0x7fe763b96000)

@ghost

Copy link
Copy Markdown

It looks like SilverFox (@zerda) hasn't signed our Contributor License Agreement, yet.

The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence.
Wikipedia

You can read and sign our full Contributor License Agreement here.

Once you've signed reply with [clabot:check] to prove it.

Appreciation of efforts,

clabot

@zerda

Copy link
Copy Markdown
Contributor Author

[clabot:check]

@ghost

Copy link
Copy Markdown

Confluent Inc. (@confluentinc) It looks like SilverFox (@zerda) just signed our Contributor License Agreement. 👍

Always at your service,

clabot

@mhowlett

Copy link
Copy Markdown
Contributor

ha! that solves the problem of why people are still reporting this issue when I remember testing it - turns out i never merged my branch. thanks - will most likely add before 1.0.

@mhowlett

Copy link
Copy Markdown
Contributor

verified diff with NativeMethods.cs, checks out. thanks!

@mhowlett Matt Howlett (mhowlett) changed the base branch from master to 1.0.x April 25, 2019 18:18
@mhowlett Matt Howlett (mhowlett) changed the base branch from 1.0.x to master April 25, 2019 18:18
@mhowlett Matt Howlett (mhowlett) merged commit dd7f6d0 into confluentinc:master Apr 25, 2019
@justanr

Copy link
Copy Markdown

Looks like this didn't make it into 1.0.0, any chance of a minor version release including it?

Matt Howlett (mhowlett) pushed a commit that referenced this pull request May 31, 2019
* PersistenceStatus not set correctly (#806)

* use IConsumer/IProducer (#878)

* add native methods from alpine-librdkafka.so (#883)

* correct task awaiting with ConfigureAwait(false).

also added ConfigureAwaitChecker.Analyzer package so you will have warnings in future

* revert unnecessary whitespace changes

* removed dependency
Matt Howlett (mhowlett) pushed a commit that referenced this pull request Jun 4, 2019
* PersistenceStatus not set correctly (#806)

* use IConsumer/IProducer (#878)

* add native methods from alpine-librdkafka.so (#883)

* spell check

* ccloud
add multiproducer example

* revert sln
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.

librdkafka fails to load on 2.1-aspnetcore-runtime-alpine

3 participants