Re: [chrony-dev] Patches for s390/s390x and ppc64le support

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


>>> On 3/24/2016 at 02:47 AM, Miroslav Lichvar <mlichvar@xxxxxxxxxx> wrote: 
-snip-
> I was thinking something like this:
> 
> --- a/sys_linux.c
> +++ b/sys_linux.c
> @@ -50,6 +50,7 @@
>  #ifdef FEAT_SCFILTER
>  #include <sys/prctl.h>
>  #include <seccomp.h>
> +#include <termios.h>
>  #ifdef FEAT_PHC
>  #include <linux/ptp_clock.h>
>  #endif

All the architectures compiled with this patch.  I haven't had a chance to do any actual testing, however.

> What error message do you get without the header? If it's related to the RTC
> support, the line should be moved couple lines down so the header is 
> included
> when both FEAT_SCFILTER and FEAT_RTC are defined.

I was getting this:
gcc -O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wall -fpic -DPIC -I/usr/include/pkg/libseccomp  -Wmissing-prototypes -Wall -pthread  -c sys_linux.c
In file included from /usr/include/asm/ioctl.h:11:0,
                 from /usr/include/asm/ioctls.h:4,
                 from /usr/include/bits/ioctls.h:23,
                 from /usr/include/sys/ioctl.h:26,
                 from sysincl.h:50,
                 from sys_linux.c:32:
sys_linux.c: In function 'SYS_Linux_EnableSystemCallFilter':
sys_linux.c:501:15: error: invalid application of 'sizeof' to incomplete type 'struct termios'
     FIONREAD, TCGETS,
               ^
Makefile:117: recipe for target 'sys_linux.o' failed
make: *** [sys_linux.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.yFgvUE (%build)


Mark Post


--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/