I cloned repo just yesterday
and now this issue is not fixed

so i decide to use   xenomai-3.0.6.tar.bz2  and successfully install it
/usr/xenomai/sbin# ./version 
Xenomai/cobalt v3.0.6

xeno-config --verbose
        --ccld="/usr/xenomai/bin/wrap-link.sh gcc"

but the same errors get when compile rtdm modules and  add #include 
<rtdm/rtdm.h> in my *.c

I need help cause ready to give up

make -C /usr/src/linux-headers-4.9.51-xenomai/ M=/home/yeti/develop/rtdm_hello 
make[1]: Entering directory '/usr/src/linux-headers-4.9.51-xenomai'
  CC [M]  /home/yeti/develop/rtdm_hello/rtdm_hello.o
In file included from include/xenomai/rtdm/fd.h:27:0,
                 from include/xenomai/rtdm/rtdm.h:28,
                 from /home/yeti/develop/rtdm_hello/rtdm_hello.c:3:
./include/asm-generic/xenomai/syscall.h:24:34: fatal error: 
asm/xenomai/features.h: No such file or directory
compilation terminated.
scripts/Makefile.build:299: recipe for target 
'/home/yeti/develop/rtdm_hello/rtdm_hello.o' failed
make[2]: *** [/home/yeti/develop/rtdm_hello/rtdm_hello.o] Error 1
Makefile:1493: recipe for target '_module_/home/yeti/develop/rtdm_hello' failed
make[1]: *** [_module_/home/yeti/develop/rtdm_hello] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.9.51-xenomai'
Makefile:3: recipe for target 'all' failed
make: *** [all] Error 2

----- Original Message -----
From: "Philippe Gerum" <r...@xenomai.org>
To: "Шевченко Тарас Григорьевич" <shevchenko.ta...@triolcorp.com.ua>, "xenomai" 
Sent: Saturday, March 10, 2018 12:08:11 PM
Subject: Re: [Xenomai] -Werror=format-security

On 03/10/2018 10:16 AM, Шевченко Тарас Григорьевич wrote:
> Now my new attempt 
> git clone [ https://git.xenomai.org/xenomai-3.git | 
> https://git.xenomai.org/xenomai-3.git ] 
> git checkout stable-3.0.x 
> cd xenomai-3 
> ./script/bootstrap 
> ./configure --with-pic --with-core=cobalt --enable-smp --disable-tls 
> --enable-dlopen-libs 
> make -j4 
> and get error 
> make[3]: Entering directory '/usr/src/xenomai-3/testsuite/smokey/dlopen' 
> CC libdlopen_a-dlopen.o 
> CC libalchemy_test_la-libalchemy-test.lo 
> CC libposix_test_la-libposix-test.lo 
> CC dlopentest-dlopentest.o 
> dlopentest.c: In function ‘my_dlopen’: 
> dlopentest.c:46:4: error: format not a string literal and no format arguments 
> [-Werror=format-security] 
> error(1, errno, dlerror()); 
> ^ 
> cc1: all warnings being treated as errors 
> Makefile:671: recipe for target 'dlopentest-dlopentest.o' failed 
> should I disable some options gcc or make changes in code ? 

Your compiler seems to have -Wformat-security enabled by default. Either
drop --enable-dlopen-libs unless you actually need this, or pull the
latest changes from the repository where this issue is now fixed.

Whenever you may have a solution to the issue being reported, do not
hesitate to send a patch fixing it along with such report. If
maintainers don't agree with the change, well, no big deal, they will
simply enter a discussion, explaining the issue they might have with the
suggested fix. Or they should just merge the fix if they are fine with it.

In either cases, bugs are being fixed, knowledge is being shared, this
will always be a win.


Xenomai mailing list

Reply via email to