Skip to content
This repository was archived by the owner on Jan 26, 2024. It is now read-only.

dwl build fails on musl #1

Closed
sdsddsd1 opened this issue May 1, 2020 · 0 comments
Closed

dwl build fails on musl #1

sdsddsd1 opened this issue May 1, 2020 · 0 comments
Labels
A: bug Something isn't working B: resolved

Comments

@sdsddsd1
Copy link

sdsddsd1 commented May 1, 2020

Hi,
I am on a musl based distro.
The build fails witht the following:

/downloads/dwl$ ➜  make
cc -O3 -pipe -march=native -Werror -I. -DWLR_USE_UNSTABLE -I/usr/include/libdrm -I/usr/include/pixman-1      -c -o dwl.o dwl.c
In file included from dwl.c:11:
/usr/include/sys/signal.h:1:2: error: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Werror=cpp]
    1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h>
      |  ^~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: dwl.o] Error 1

Greetings.

Edit: This can be fixed by changing #include <sys/signal.h> to #include <signal.h> in dwl.c

@djpohly djpohly closed this as completed in d0df4d0 May 2, 2020
@djpohly djpohly added A: bug Something isn't working B: resolved labels Jul 26, 2020
Stivvo referenced this issue in Stivvo/dwl Sep 2, 2020
djpohly pushed a commit that referenced this issue Dec 25, 2020
Frewacom referenced this issue in engstrand-config/dwl-guile Dec 10, 2021
update deprecated xkb function name
maxhbr pushed a commit to maxhbr/mydwl that referenced this issue Sep 29, 2023
link2xt added a commit to link2xt/dwl that referenced this issue Nov 19, 2023
…NULL

Passing NULL to wlr_keyboard_set_keymap results in a segfault.
Example:

  Thread 1 "dwl" received signal SIGSEGV, Segmentation fault.
  0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0
  (gdb) bt
  #0  0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0
  djpohly#1  0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11
  djpohly#2  0x000055555555bc54 in createkeyboard ()
  djpohly#3  0x000055555555c283 in inputdevice ()
  djpohly#4  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  djpohly#5  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  djpohly#6  0x00007ffff7edb52c in  () at /usr/lib/libwlroots.so.11
  djpohly#7  0x00007ffff7ee44b6 in  () at /usr/lib/libwlroots.so.11
  djpohly#8  0x000055555555fe66 in main ()
sevz17 pushed a commit that referenced this issue Nov 19, 2023
…NULL

Passing NULL to wlr_keyboard_set_keymap results in a segfault.
Example:

  Thread 1 "dwl" received signal SIGSEGV, Segmentation fault.
  0x00007ffff7e49b64 in xkb_keymap_ref () from /usr/lib/libxkbcommon.so.0
  (gdb) bt
  #0  0x00007ffff7e49b64 in xkb_keymap_ref () at /usr/lib/libxkbcommon.so.0
  #1  0x00007ffff7f06389 in wlr_keyboard_set_keymap () at /usr/lib/libwlroots.so.11
  #2  0x000055555555bc54 in createkeyboard ()
  #3  0x000055555555c283 in inputdevice ()
  #4  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  #5  0x00007ffff7e8101e in wl_signal_emit_mutable () at /usr/lib/libwayland-server.so.0
  #6  0x00007ffff7edb52c in  () at /usr/lib/libwlroots.so.11
  #7  0x00007ffff7ee44b6 in  () at /usr/lib/libwlroots.so.11
  #8  0x000055555555fe66 in main ()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: bug Something isn't working B: resolved
Projects
None yet
Development

No branches or pull requests

2 participants