kevinboone / solunar_ws

A REST-based microservice for calculating sun/moon rise/set times, implemented in C
25 stars 7 forks source link

Error loading shared library libmicrohttpd.so.12 #1

Open giannisalinetti opened 3 years ago

giannisalinetti commented 3 years ago

Description

When the container is executed the following error appear and the container crashes:

Error loading shared library libmicrohttpd.so.12: No such file or directory (needed by /solunar_ws)
Error relocating /solunar_ws: MHD_destroy_response: symbol not found
Error relocating /solunar_ws: MHD_queue_response: symbol not found
Error relocating /solunar_ws: MHD_get_connection_values: symbol not found
Error relocating /solunar_ws: MHD_create_response_from_buffer: symbol not found
Error relocating /solunar_ws: MHD_start_daemon: symbol not found
Error relocating /solunar_ws: MHD_stop_daemon: symbol not found
Error relocating /solunar_ws: MHD_add_response_header: symbol not found

Expected behavior

Container running and exposing webservice on port 8080/TCP.

Environment

The issue was experimented in 2 different scenarios:

How to reproduce the issue

Execute a local build:

$ git clone https://github.com/kevinboone/solunar_ws && cd solunar_ws
$ podman build . -t solunar_ws
$ podman run solunar_ws

FInal considerations

This error prevents readers from testing the example correctly and should be fixed to let users test the example described in the article.

kevinboone commented 3 years ago

Oops. "latest" version of libmicrohttpd has a version number change that causes an upset. Latest commit should fix it. Do let me know if it doesn't.