justin-lavelle created an issue (kamailio/kamailio#4616)

### Description

`auth_ephemeral` fails to load in Kamailio `6.1.0` (Docker build based on 
`bookworm` from `kamailio/kamailio-docker` 6.1.0 branch), while the same 
configuration works in Kamailio `6.0.1` through `6.0.5`.

Built Kamailio 6.1.0 Docker image from `bookworm` in 
`https://github.com/kamailio/kamailio-docker`.
Enabled `auth_ephemeral` in config with:

```shell
loadmodule "auth_ephemeral.so"
modparam("auth_ephemeral", "secret", KAM_AUTH_EPHEMERAL_SECRET)
modparam("auth_ephemeral", "sha_algorithm", 0)
```

Kamailio fails at startup with undefined symbol error for `EVP_sha512` when 
loading `auth_ephemeral.so`. If I remove `auth_ephemeral` config/module lines, 
Kamailio 6.1.0 starts normally.

This might be related to an old issue 
https://github.com/kamailio/kamailio/issues/1473

### Troubleshooting

#### Reproduction

1. Use the `bookworm` setup from Kamailio Docker 6.1.0 branch.
2. Build/start Kamailio 6.1.0 container.
3. Add to config:
   - `loadmodule "auth_ephemeral.so"`
   - `modparam("auth_ephemeral", "secret", KAM_AUTH_EPHEMERAL_SECRET)`
   - `modparam("auth_ephemeral", "sha_algorithm", 0)`
4. Start Kamailio.
5. Observe module load failure.
6. Remove `auth_ephemeral` lines and restart; Kamailio starts successfully.

#### Debugging Data

No core dump available yet (failure happens during module loading at startup).


#### Log Messages

```shell
0(8) ERROR: <core> [core/sr_module.c:613]: ksr_load_module(): could not open 
module </usr/lib/x86_64-linux-gnu/kamailio/modules/auth_ephemeral.so>: 
/usr/lib/x86_64-linux-gnu/kamailio/modules/auth_ephemeral.so: undefined symbol: 
EVP_sha512
0(8) CRITICAL: <core> [core/cfg.y:4105]: yyerror_at(): parse error in config 
file /etc/kamailio/kamailio.cfg, line 338, column 12-30: failed to load module
```

### Additional Information

```shell
version: kamailio 6.1.0 (x86_64/Linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, Q_MALLOC, 
F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, DBG_QM_MALLOC, DBG_F_MALLOC, 
DBG_TLSF_MALLOC, USE_FUTEX, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, 
USE_DST_BLOCKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
MAX_RECV_BUFFER_SIZE 262144, MAX_SEND_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, 
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll.
id: unknown
compiled with gcc 12.2.0
```


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4616
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to