Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some more build issues #12

Open
specing opened this issue Apr 22, 2018 · 2 comments
Open

Some more build issues #12

specing opened this issue Apr 22, 2018 · 2 comments

Comments

@specing
Copy link

specing commented Apr 22, 2018

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 2eb28f7 + 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
Copy link
Author

specing commented Apr 22, 2018

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
Copy link
Owner

kburtch commented Apr 28, 2018

Someone reported the FORTIFY_SOURCE issue with FreeBSD also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants