[GH-ISSUE #90] Compilation error without HAVE_SECCOMP #52

Closed
opened 2026-05-05 04:54:19 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @Duncaen on GitHub (Oct 23, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/90

In firejail/main.c is a function call to errno_highest_nr() from firejail/errno.c but the function is not defined if HAVE_SECCOMP is not set.

armv7l-linux-musleabihf-gcc    -Wl,--as-needed -Wl,-z,relro  -specs=/void-packages/common/environment/configure/gccspecs/hardened-ld -Wl,-z,relro -Wl,-z,now -L/usr/armv7l-linux-musleabihf/usr
/lib -pie -Wl,-z,relro -Wl,-z,now -lpthread -o firejail fs.o fs_whitelist.o fs_trace.o no_sandbox.o util.o fs_hostname.o sandbox.o errno.o bandwidth.o fs_var.o cpu.o veth.o profile.o cgroup.o
 list.o network_main.o rlimit.o fs_dev.o caps.o restricted_shell.o fs_bin.o env.o output.o join.o network.o fs_home.o main.o netfilter.o usage.o arp.o seccomp.o shutdown.o fs_etc.o pulseaudio
.o syscall.o ../lib/libnetlink.o ../lib/common.o
main.o: In function `main':
/builddir/firejail-0.9.32/src/firejail/main.c:399: undefined reference to `errno_highest_nr'
Originally created by @Duncaen on GitHub (Oct 23, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/90 In `firejail/main.c` is a function call to `errno_highest_nr()` from `firejail/errno.c` but the function is not defined if `HAVE_SECCOMP` is not set. ``` armv7l-linux-musleabihf-gcc -Wl,--as-needed -Wl,-z,relro -specs=/void-packages/common/environment/configure/gccspecs/hardened-ld -Wl,-z,relro -Wl,-z,now -L/usr/armv7l-linux-musleabihf/usr /lib -pie -Wl,-z,relro -Wl,-z,now -lpthread -o firejail fs.o fs_whitelist.o fs_trace.o no_sandbox.o util.o fs_hostname.o sandbox.o errno.o bandwidth.o fs_var.o cpu.o veth.o profile.o cgroup.o list.o network_main.o rlimit.o fs_dev.o caps.o restricted_shell.o fs_bin.o env.o output.o join.o network.o fs_home.o main.o netfilter.o usage.o arp.o seccomp.o shutdown.o fs_etc.o pulseaudio .o syscall.o ../lib/libnetlink.o ../lib/common.o main.o: In function `main': /builddir/firejail-0.9.32/src/firejail/main.c:399: undefined reference to `errno_highest_nr' ```
gitea-mirror 2026-05-05 04:54:19 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Oct 24, 2015):

Fixed, thanks.

<!-- gh-comment-id:150812472 --> @netblue30 commented on GitHub (Oct 24, 2015): Fixed, thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#52
No description provided.