View Issue Details

IDProjectCategoryView StatusLast Update
0000473fileGeneralpublic2023-12-20 21:18
Reporterwbx Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
Product Version5.45 
Summary0000473: compile error with musl 1.2.4
DescriptionHi,

following compile error is triggered when using musl 1.2.4:
/home/browa22-ext/file/output/host/bin/mips-buildroot-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -DMAGIC='"/usr/share/misc/magic"' -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wsign-compare -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wunused-parameter -Wformat=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Ofast -g0 -static -c -o seccomp.o seccomp.c
In file included from seccomp.c:34:
seccomp.c: In function ‘enable_sandbox_full’:
seccomp.c:50:52: error: ‘__SNR_fstatat’ undeclared (first use in this function)
   50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \
      | ^~~~~~~~
seccomp.c:185:9: note: in expansion of macro ‘ALLOW_RULE’
  185 | ALLOW_RULE(fstatat64);
      | ^~~~~~~~~~
seccomp.c:50:52: note: each undeclared identifier is reported only once for each function it appears in
   50 | if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(call), 0) == -1) \
      | ^~~~~~~~
seccomp.c:185:9: note: in expansion of macro ‘ALLOW_RULE’
  185 | ALLOW_RULE(fstatat64);
      | ^~~~~~~~~~
make[4]: *** [Makefile:562: seccomp.o] Error 1
Steps To ReproduceCross-Compile file with Buildroot.
TagsNo tags attached.

Activities

polluks

2023-09-19 14:23

reporter   ~0003977

FYI https://bugs.gentoo.org/789336

christos

2023-12-20 21:18

manager   ~0003987

Isn't musl supposed to be compatible with glibc? Maybe file a bug with them?

Issue History

Date Modified Username Field Change
2023-08-21 09:37 wbx New Issue
2023-09-19 14:23 polluks Note Added: 0003977
2023-12-20 21:17 christos Assigned To => christos
2023-12-20 21:17 christos Status new => assigned
2023-12-20 21:18 christos Status assigned => feedback
2023-12-20 21:18 christos Note Added: 0003987