Bug 2325048 - Libwebsockets is not working if glib event loop option is specified
Summary: Libwebsockets is not working if glib event loop option is specified
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libwebsockets
Version: 41
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Fabian Affolter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-10 22:33 UTC by Lluc
Modified: 2025-07-21 11:12 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-07-21 11:12:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lluc 2024-11-10 22:33:11 UTC
Description of problem:
Libwebsockets is not working if glib event loop option is specified.

Version-Release number of selected component (if applicable):
4.3.2-8

How reproducible:
Always

Steps to Reproduce:
1. Install libwebsockets and libwebsockets-devel using dnf
2. Write a program that initializes libwebsockets requiring the use of glib's event loop:
```c
    struct lws_context_creation_info info;
    memset(&info, 0, sizeof info);
    info.options = LWS_SERVER_OPTION_GLIB;
    ws_data.context = lws_create_context(&info);

```
3. Compile and run the program

Actual results:
I see this program output:
```
[2024/11/10 21:35:02:1240] E: lws_create_context: failed to load evlib_glib
```
And then websocket context initialization fails. 

Expected results:
Websocket context initialization should work.

Additional info:
I have checked that all libwebsockets libs are in the correct folder, including libwebsockets-evlib_glib.so:
```bash
$ ls /usr/local/lib | grep libwebsockets
libwebsockets.a
libwebsockets-evlib_event.so
libwebsockets-evlib_ev.so
libwebsockets-evlib_glib.so
libwebsockets-evlib_uv.so
libwebsockets.so
libwebsockets.so.19

```

Comment 1 Fabian Affolter 2024-11-13 08:29:33 UTC
At first glances this looks like an upstream issue and not a packaging bug.

Please check https://libwebsockets.org/mailman/listinfo/libwebsockets (sorry, I can't find libwebsockets's issue tracker).

Comment 2 Fedora Admin user for bugzilla script actions 2025-07-08 01:08:58 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Fedora Admin user for bugzilla script actions 2025-07-10 00:57:39 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 4 Peter Robinson 2025-07-21 11:12:10 UTC
> $ ls /usr/local/lib | grep libwebsockets
> libwebsockets.a
> libwebsockets-evlib_event.so
> libwebsockets-evlib_ev.so
> libwebsockets-evlib_glib.so
> libwebsockets-evlib_uv.so
> libwebsockets.so
> libwebsockets.so.19

Given it's installed in /usr/local, and we don't ship either the static libs or build the glib event plugin this looks like a custom build from upstream so please report the bug there.


Note You need to log in before you can comment on or make changes to this bug.