SparForte icon indicating copy to clipboard operation
SparForte copied to clipboard

Some more build issues

Open specing opened this issue 6 years ago • 2 comments

gmake

gmake -C src
gmake[1]: Entering directory '/tmp/SparForte/src'

---------------------------------------------------------------
  Compiling C Wrappers on Kernel and OS Library Functions
  To Make SparForte Portable
---------------------------------------------------------------

gcc  -I./adacgi-1.6/  -I./pegasock/  -I/usr/include/SDL -D_GNU_SOURCE=1  -I./areadline/ -Wall -Werror -fstack-check -fstack-protector -O1 -D_FORTIFY_SOURCE=2 -c c_os.c
<command-line>:0:0: error: "_FORTIFY_SOURCE" redefined [-Werror]
<built-in>: note: this is the location of the previous definition
cc1: all warnings being treated as errors
gmake[1]: *** [GNUmakefile:133: c_os.o] Error 1
gmake[1]: Leaving directory '/tmp/SparForte/src'
gmake: *** [GNUmakefile:12: all] Error 2

on 2eb28f7a4d6c8cf7157b2010078d3cf3c6774de0 + patch in #11

Issue resolved by

sed -i -e "s/-D_FORTIFY_SOURCE=2 //" src/bdb/GNUmakefile
sed -i -e "s/-D_FORTIFY_SOURCE=2 //" src/pegasock/Makefile
sed -i -e "s/-D_FORTIFY_SOURCE=2 //" src/GNUmakefile

This is due to gcc from ada-overlay on Gentoo being hardened.

specing avatar Apr 22 '18 22:04 specing