[File] Build error with most recent git

Christos Zoulas christos at zoulas.com
Sun Jun 16 14:53:32 UTC 2024


Deleted, thanks.

christos

> On Jun 16, 2024, at 10:27 AM, Michał Górny <mgorny at gentoo.org> wrote:
> 
> Hi,
> 
> The most recent git version doesn't seem to build for me anymore:
> 
> $ make
> make  all-recursive
> make[1]: Entering directory '/home/mgorny/git/file'
> Making all in src
> make[2]: Entering directory '/home/mgorny/git/file/src'
> make  all-am
> make[3]: Entering directory '/home/mgorny/git/file/src'
>  CC       seccomp.o
> seccomp.c: In function ‘enable_sandbox_basic’:
> seccomp.c:160:9: error: ‘memory’ undeclared (first use in this function)
>  160 |         memory
>      |         ^~~~~~
> seccomp.c:160:9: note: each undeclared identifier is reported only once for each function it appears in
> seccomp.c:160:15: error: expected ‘;’ before ‘if’
>  160 |         memory
>      |               ^
>      |               ;
>  161 |         // applying filter...
>  162 |         if (seccomp_load(ctx) == -1)
>      |         ~~     
> make[3]: *** [Makefile:558: seccomp.o] Error 1
> make[3]: Leaving directory '/home/mgorny/git/file/src'
> make[2]: *** [Makefile:383: all] Error 2
> make[2]: Leaving directory '/home/mgorny/git/file/src'
> make[1]: *** [Makefile:465: all-recursive] Error 1
> make[1]: Leaving directory '/home/mgorny/git/file'
> make: *** [Makefile:374: all] Error 2
> 
> 
> It seems to have been introduced in:
> 
> +FILE_RCSID("@(#)$File: seccomp.c,v 1.27 2024/05/14 13:46:09 christos Exp $")
> 
> ...and the bare "memory" statement (no semicolon) looks weird.
> 
> -- 
> Best regards,
> Michał Górny
> 
> -- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file



More information about the File mailing list