KxSystems / rkdb

R client for kdb+
https://code.kx.com/q/interfaces
Apache License 2.0
41 stars 29 forks source link

Ubuntu hardening patch #75

Open vgrechin opened 4 months ago

vgrechin commented 4 months ago

Fixes the error on Ubuntu 22.04

gcc -I"/usr/share/R/include" -DNDEBUG      -D_GNU_SOURCE -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-Kaw86j/r-base-4.4.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -c rkdb.c -o rkdb.o
rkdb.c: In function ‘kx_r_open_connection’:
rkdb.c:84:5: error: format not a string literal and no format arguments [-Werror=format-security]
   84 |     error(strerror(errno));
      |     ^~~~~
cc1: some warnings being treated as errors
make: *** [/usr/lib/R/etc/Makeconf:195: rkdb.o] Error 1
ERROR: compilation failed for package ‘rkdb’