[systemd-devel] [PATCH] fix SECCOMP_CFLAGS usage

Cristian Rodríguez crrodriguez at opensuse.org
Fri Feb 21 17:54:53 PST 2014


El 18/02/14 11:27, Zbigniew Jędrzejewski-Szmek escribió:
> On Tue, Feb 18, 2014 at 10:56:36AM -0300, Cristian Rodríguez wrote:
>> SECCOMP_CFLAGS must be in the global CFLAGS as <seccomp.h> is
>> included in core/execute.h. when seccomp.h is not in the standard
>> path.(i.e openSUSE has it in /usr/include/pkg/libseccomp/, precisely to
>> catch this kind of bugs) compiling systemd fails.
>> ---
>>   Makefile.am | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index 79c49e6..18df645 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -196,6 +196,7 @@ AM_CPPFLAGS = \
>>   	-I $(top_srcdir)/src/libsystemd/sd-bus \
>>   	-I $(top_srcdir)/src/libsystemd/sd-event \
>>   	-I $(top_srcdir)/src/libsystemd/sd-rtnl \
>> +	$(SECCOMP_CFLAGS) \
>>   	$(OUR_CPPFLAGS)
>>
> Applied.
>
> Zbyszek
>

This is broken again...

In file included from ./src/core/unit.h:40:0,
                  from src/shared/condition-util.c:35:
./src/core/execute.h:37:21: fatal error: seccomp.h: No such file or 
directory
  #include <seccomp.h>
                      ^
compilation terminated.


Broken by e9642be2cce7f5e90406980092a6f71f504a16af



More information about the systemd-devel mailing list