Skip to content

Commit

Permalink
Fix build on Debian Stable
Browse files Browse the repository at this point in the history
  • Loading branch information
n3rdopolis authored and emersion committed Nov 28, 2022
1 parent 9ec4541 commit d9e71c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meson.build
Expand Up @@ -47,6 +47,7 @@ fish_comp = dependency('fish', required: false)
libpam = cc.find_library('pam', required: get_option('pam'))
crypt = cc.find_library('crypt', required: not libpam.found())
math = cc.find_library('m')
rt = cc.find_library('rt')

git = find_program('git', required: false)
scdoc = find_program('scdoc', required: get_option('man-pages'))
Expand Down Expand Up @@ -112,6 +113,7 @@ dependencies = [
client_protos,
gdk_pixbuf,
math,
rt,
xkbcommon,
wayland_client,
]
Expand Down

2 comments on commit d9e71c8

@fauust
Copy link

@fauust fauust commented on d9e71c8 Nov 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I just hit this too on Debian 11, thanks!

ninja -C build
ninja: Entering directory `build'
[31/32] Linking target swaylock
FAILED: swaylock
cc  -o swaylock swaylock.p/background-image.c.o swaylock.p/cairo.c.o swaylock.p/comm.c.o swaylock.p/log.c.o swaylock.p/loop.c.o swaylock.p/main.c.o swaylock.p/password.c.o swaylock.p/password-buffer.c.o swaylock.p/pool-buffer.c.o swaylock.p/render.c.o swaylock.p/seat.c.o swaylock.p/unicode.c.o swaylock.p/shadow.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-rpath,/usr/local/lib/x86_64-linux-gnu -Wl,-rpath-link,/usr/local/lib/x86_64-linux-gnu -Wl,--start-group libclient_protos.a /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so -lm /usr/lib/x86_64-linux-gnu/libxkbcommon.so /usr/local/lib/x86_64-linux-gnu/libwayland-client.so -lcrypt -Wl,--end-group
/usr/bin/ld: swaylock.p/pool-buffer.c.o: in function `anonymous_shm_open':
/home/faust/_git/faust/pgm/wayland/swaylock/build/../pool-buffer.c:28: undefined reference to `shm_open'
/usr/bin/ld: /home/faust/_git/faust/pgm/wayland/swaylock/build/../pool-buffer.c:30: undefined reference to `shm_unlink'
collect2: error: ld returned 1 exit status
[32/32] Generating swaylock.1 with a custom command (wrapped by meson to capture output, to feed input)
ninja: build stopped: subcommand failed.

@xondrejk
Copy link

@xondrejk xondrejk commented on d9e71c8 Dec 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sort of for the sake of completeness: this would be not be just Debian Stable (as of today), but (unless I've missed something) anything with glibc prior to c6e7ec2f123bceb323836cc4558f9586959ebf58, i.e. glibc-2.33 and older.

Please sign in to comment.