kburtch / SparForte

Bourne shell, template engine, scripting language reliable, scalable projects. Based a ISO standard proven effective for large, mission-critical projects, SparForte is designed for fast development while, at the same time, providing easier designing, maintenance and bug removal. About 130.000 lines of code.
https://www.sparforte.com
GNU General Public License v2.0
50 stars 6 forks source link

Some more build issues #12

Open specing opened 6 years ago

specing commented 6 years ago

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 commented 6 years ago

make clean

gmake clean -C src
gmake[1]: Entering directory '/tmp/SparForte/src'
gmake -C areadline clean
gmake[2]: Entering directory '/tmp/SparForte/src/areadline'
rm -f *.o *.ali rl GNUmakefile
gmake[2]: Leaving directory '/tmp/SparForte/src/areadline'
gmake -C adacgi-1.6 clean
gmake[2]: Entering directory '/tmp/SparForte/src/adacgi-1.6'
/bin/rm -f demo getdemo minimal search test_get test_cookie \
                   test_encode test_send *.o *.ali *.BAK
gmake[2]: Leaving directory '/tmp/SparForte/src/adacgi-1.6'
gmake -C apq-2.1 clean
gmake[2]: Entering directory '/tmp/SparForte/src/apq-2.1'
Makefile:7: Makeincl: No such file or directory
gmake[2]: *** No rule to make target 'Makeincl'.  Stop.
gmake[2]: Leaving directory '/tmp/SparForte/src/apq-2.1'
gmake[1]: *** [GNUmakefile:197: clean] Error 2
gmake[1]: Leaving directory '/tmp/SparForte/src'
make: *** [GNUmakefile:15: clean] Error 2
kburtch commented 6 years ago

Someone reported the FORTIFY_SOURCE issue with FreeBSD also.