hit-moodle/moodle-local_onlinejudge — Issue #36: sandbox cannot make
Author: zgjava
Created: 2012-03-06 14:25:09+00:00
State: open

[root@localhost cli]# sudo -u apache php judged.php
Judge daemon successfully created. PID = 15263

in CentOS, I would like to use sandbox judge engine, then cd MOODLE_PATH/local/onlinejudge/judge/sandbox/sand/ && make
[root@localhost sand]# make
cc -m32 -Wall -ansi -std=gnu99 -g0 -O3 --static -o stdin_test testcase/stdin.c
在包含自 /usr/include/features.h：352 的文件中，
从 /usr/include/stdio.h：28，
从 testcase/stdin.c：1:
/usr/include/gnu/stubs.h:7:27: 错误：gnu/stubs-32.h：没有那个文件或目录
make: *** [stdin_test] 错误 1

[root@localhost sand]# uname -a
Linux localhost 2.6.18-238.12.1.el5 #1 SMP Tue May 31 13:22:04 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost sand]# cc -v
使用内建 specs。
目标：x86_64-redhat-linux
配置为：../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
线程模型：posix
gcc 版本 4.1.2 20080704 (Red Hat 4.1.2-50)

[root@localhost sand]# make clean
make -C libsandbox clean
make[1]: Entering directory `/usr/local/apache/htdocs/moodle/local/onlinejudge/judge/sandbox/sand/libsandbox'
rm -rf doc
rm -f src/platform.o src/sandbox.o src/symbols.o libsandbox.a libsandbox.so \
libsandbox.so.0.2.18
make[1]: Leaving directory `/usr/local/apache/htdocs/moodle/local/onlinejudge/judge/sandbox/sand/libsandbox'
rm -f *.o *_test detector 223 policy.c
rm -f sand

[root@localhost sand]# make
cc -m32 -Wall -ansi -std=gnu99 -g0 -O3 --static -o stdin_test testcase/stdin.c
在包含自 /usr/include/features.h：352 的文件中，
从 /usr/include/stdio.h：28，
从 testcase/stdin.c：1:
/usr/include/gnu/stubs.h:7:27: 错误：gnu/stubs-32.h：没有那个文件或目录
make: *** [stdin_test] 错误 1

why?