Debian 11 / Ubuntu 20 (alpha) compile error

quags

Verified User
Joined
Jul 13, 2003
Messages
32
Location
Secaucus, NJ
I'm testing ubuntu 20 and ran into one error in custom build:

218
220757
174.138.181.146

CFLAGS

In file included from src/sljit/sljitLir.h:81,
from src/sljit/sljitLir.c:27,
from src/pcre2_jit_compile.c:79:
src/sljit/sljitConfigInternal.h:219:2: error: #error "-mshstk is needed to compile with -fcf-protection"
219 | #error "-mshstk is needed to compile with -fcf-protection"
| ^~~~~
make[1]: *** [Makefile:2403: src/libpcre2_8_la-pcre2_jit_compile.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/usr/local/directadmin/custombuild/pcre2-10.35'
make: *** [Makefile:1402: all] Error 2


My fix was
#!/bin/sh
export CFLAGS='-mshstk'; ./configure --enable-jit

in libpcre2/configure.libpcre2

Everything else compiled with out an error.
 
Actually this does not appear to be the fix. I had in my env

export CFLAGS='-mshstk';

under the entire custombuild run which was the fix.
 
Back
Top