8000 Cage now fails to link (Meson 0.60.2) · Issue #222 · cage-kiosk/cage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cage now fails to link (Meson 0.60.2) #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
n3rdopolis opened this issue Dec 22, 2021 · 2 comments
Closed

Cage now fails to link (Meson 0.60.2) #222

n3rdopolis opened this issue Dec 22, 2021 · 2 comments

Comments

@n3rdopolis
Copy link

Hi

I am not sure how to fix this, I stink at fixing linker errors.
Building cage with
meson --buildtype=plain --prefix=$INSTALLDIR --libdir=$INSTALLDIR/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) -Dwerror=false -Dxwayland=false build

I get this compile output

[1/9] /opt/bin/wayland-scanner server-header //opt/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml cage.p/xdg-shell-protocol.h
[2/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/idle_inhibit_v1.c.o -MF cage.p/idle_inhibit_v1.c.o.d -o cage.p/idle_inhibit_v1.c.o -c ../idle_inhibit_v1.c
[3/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/util.c.o -MF cage.p/util.c.o.d -o cage.p/util.c.o -c ../util.c
[4/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/view.c.o -MF cage.p/view.c.o.d -o cage.p/view.c.o -c ../view.c
[5/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/output.c.o -MF cage.p/output.c.o.d -o cage.p/output.c.o -c ../output.c
[6/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/xdg_shell.c.o -MF cage.p/xdg_shell.c.o.d -o cage.p/xdg_shell.c.o -c ../xdg_shell.c
[7/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/cage.c.o -MF cage.p/cage.c.o.d -o cage.p/cage.c.o -c ../cage.c
[8/9] cc -Icage.p -I. -I.. -I/opt/include/libdrm -I/opt/include/pixman-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c11 -DWLR_USE_UNSTABLE -Wundef -Wno-unused-parameter -Os -Wno-error -MD -MQ cage.p/seat.c.o -MF cage.p/seat.c.o.d -o cage.p/seat.c.o -c ../seat.c
[9/9] cc  -o cage cage.p/cage.c.o cage.p/idle_inhibit_v1.c.o cage.p/output.c.o cage.p/seat.c.o cage.p/util.c.o cage.p/view.c.o cage.p/xdg_shell.c.o -Wl,--as-needed -Wl,--no-undefined -Os -Wno-error -Wl,--start-group /opt/lib/x86_64-linux-gnu/libwayland-server.so /opt/lib/x86_64-linux-gnu/libwlroots.so /opt/lib/x86_64-linux-gnu/libxkbcommon.so -Wl,--end-group
FAILED: cage 
cc  -o cage cage.p/cage.c.o cage.p/idle_inhibit_v1.c.o cage.p/output.c.o cage.p/seat.c.o cage.p/util.c.o cage.p/view.c.o cage.p/xdg_shell.c.o -Wl,--as-needed -Wl,--no-undefined -Os -Wno-error -Wl,--start-group /opt/lib/x86_64-linux-gnu/libwayland-server.so /opt/lib/x86_64-linux-gnu/libwlroots.so /opt/lib/x86_64-linux-gnu/libxkbcommon.so -Wl,--end-group
/usr/bin/ld: cage.p/util.c.o: undefined reference to symbol 'roundf@@GLIBC_2.2.5'
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Let me know what else I need to provide

Thanks

@dimkr
Copy link
Contributor
dimkr commented Dec 22, 2021

dependency('m') is missing and was removed in dfba2d8#diff-30d8f6be6320feeacf686be94f48c70869b52630e01ea625f0f15adc0d57c3e4L43

dimkr added a commit to dimkr/cage that referenced this issue Dec 22, 2021
@Hjdskes
Copy link
Collaborator
Hjdskes commented Dec 22, 2021

Thanks both!

Xtr126 pushed a commit to Xtr126/cage that referenced this issue Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
0