EscapeMe icon indicating copy to clipboard operation
EscapeMe copied to clipboard

Compilation error

Open Wenzel opened this issue 6 years ago • 0 comments

Hi,

I'm trying to compile the challenge on Fedora 29:

make[3]: Leaving directory '/home/wenzel/tmp/EscapeMe/bin/libc/misc'
ld -shared -pie -nostdlib -E --version-script=export.map --whole-archive io/io.a libio/libio.a stdio/stdio.a stdlib/stdlib.a malloc/malloc.a string/string.a assert/assert.a misc/misc.a -o libc.so
ld: warning: cannot find entry symbol _start; defaulting to 0000000000001000
ar cqT _libc.a io/io.a libio/libio.a stdio/stdio.a stdlib/stdlib.a malloc/malloc.a string/string.a assert/assert.a misc/misc.a
echo "create libc.a\naddlib _libc.a\nsave\nend" | ar -M
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_us): No such file or directory
Syntax error in archive script, line 1
rm -f _libc.a
make -C test
make[3]: Entering directory '/home/wenzel/tmp/EscapeMe/bin/libc/test'
nasm -f elf64 start.s -o start.o
cc -Wall -fno-stack-protector -fno-PIE -nostdlib -no-pie start.o print.c -L.. -lc -o print-shared.elf
/usr/bin/ld: warning: type and size of dynamic symbol `exit' are not defined
execstack -c print-shared.elf
cc -Wall -fno-stack-protector -fno-PIE -nostdlib -no-pie start.o rw.c -L.. -lc -o rw-shared.elf
/usr/bin/ld: warning: type and size of dynamic symbol `exit' are not defined
execstack -c rw-shared.elf
cc -Wall -fno-stack-protector -fno-PIE -nostdlib -no-pie start.o memory.c -L.. -lc -o memory-shared.elf
/usr/bin/ld: warning: type and size of dynamic symbol `exit' are not defined
execstack -c memory-shared.elf
cc -Wall -fno-stack-protector -fno-PIE -nostdlib -no-pie start.o malloc.c -L.. -lc -o malloc-shared.elf
/usr/bin/ld: warning: type and size of dynamic symbol `exit' are not defined
execstack -c malloc-shared.elf
make[3]: *** No rule to make target 'print-static.elf', needed by 'all'.  Stop.
rm start.o
make[3]: Leaving directory '/home/wenzel/tmp/EscapeMe/bin/libc/test'
make[2]: *** [Makefile:16: all] Error 2
make[2]: Leaving directory '/home/wenzel/tmp/EscapeMe/bin/libc'
make[1]: *** [Makefile:22: libc/libc.a] Error 2
make[1]: Leaving directory '/home/wenzel/tmp/EscapeMe/bin'
make: *** [Makefile:41: bin/memo-static.elf] Error 2

make[3]: *** No rule to make target 'print-static.elf', needed by 'all'. Stop.

Can you give some details ?

Thanks.

Wenzel avatar Dec 22 '18 14:12 Wenzel