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

Problem when compiling and loading on Alpine with Mosquitto 1.5.5 #18

Open
danielfaust opened this issue Jan 12, 2019 · 0 comments
Open

Comments

@danielfaust
Copy link

I'm trying to use this plugin in an Alpine Docker image but I'm having a problem where I'm getting the message mosquitto_log_printf: symbol not found

/usr/lib # mosquitto -c /mosquitto/config/mosquitto.conf
1547298826: mosquitto version 1.5.5 starting
1547298826: Config loaded from /mosquitto/config/mosquitto.conf.
1547298826: Error: Unable to load auth plugin "/usr/lib/auth_plugin_pyauth.so".
1547298826: Load error: Error relocating /usr/lib/auth_plugin_pyauth.so: mosquitto_log_printf: symbol not found

Here is some further info about the compiled plugin.

/usr/lib # ldd auth_plugin_pyauth.so
ldd (0x7f7476986000)
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x7f74763de000)
libmosquitto.so.1 => /usr/lib/libmosquitto.so.1 (0x7f74761cf000)
libc.musl-x86_64.so.1 => ldd (0x7f7476986000)
libssl.so.45 => /lib/libssl.so.45 (0x7f7475f83000)
libcrypto.so.43 => /lib/libcrypto.so.43 (0x7f7475bd8000)
Error relocating auth_plugin_pyauth.so: mosquitto_log_printf: symbol not found
Error relocating auth_plugin_pyauth.so: mosquitto_client_username: symbol not found
Error relocating auth_plugin_pyauth.so: mosquitto_client_id: symbol not found
/usr/lib #

What could be causing this, and how can I resolve this issue?

I'm compiling it during Docker build, right after compiling Mosquitto. It's only those three symbols which are not found, I would have expected all of the mosquitto_* symbols not getting found, but not just a couple of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant