Skip to content

Instantly share code, notes, and snippets.

@elieux
Created October 21, 2014 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elieux/46479a096dd9581cf70c to your computer and use it in GitHub Desktop.
Save elieux/46479a096dd9581cf70c to your computer and use it in GitHub Desktop.
DOMjudge build without jsoncpp
root@srva10gk:~/domjudge# cd submit
root@srva10gk:~/domjudge/submit# make build
g++ -g -O2 -Wall -fstack-protector -fPIE -D_FORTIFY_SOURCE=2 -DREVISION="\"g301eb9d\"" -I../lib -I../etc -c -o submit.o submit.cc
submit.cc:15:2: error: #error "libcURL or libJSONcpp not available."
submit.cc:30:31: fatal error: jsoncpp/json/json.h: No such file or directory
compilation terminated.
make: *** [submit.o] Error 1
root@srva10gk:~/domjudge# ./configure --prefix=/opt/domjudge- --with-domjudge-user=domjudge- --with-runuser=domjudge-run-
checking whether configure should try to set CFLAGS... yes
checking whether configure should try to set CXXFLAGS... yes
checking whether configure should try to set LDFLAGS... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether C compiler accepts -Wall... yes
checking whether C compiler accepts -fstack-protector... yes
checking whether C compiler accepts -fPIE... yes
checking whether C compiler accepts -D_FORTIFY_SOURCE=2... yes
checking whether the linker accepts -fPIE... yes
checking whether the linker accepts -pie... yes
checking whether the linker accepts -Wl,-z,relro... yes
checking whether the linker accepts -Wl,-z,now... yes
checking domjudge-user... domjudge-
checking webserver-group... www-data (detected)
checking runuser... domjudge-run-
checking for cgroup_init in -lcgroup... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C++ preprocessor... g++ -E
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for magic_open in -lmagic... no
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking jsoncpp/json/json.h usability... no
checking jsoncpp/json/json.h presence... no
checking for jsoncpp/json/json.h... no
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for curl-config... /usr/bin/curl-config
checking for curl (7.26.0) >= 7.9.7... yes
checking curl/curl.h usability... yes
checking curl/curl.h presence... yes
checking for curl/curl.h... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for boostlib >= 1.33.1... yes
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex-mt... yes
checking gmpxx.h usability... yes
checking gmpxx.h presence... yes
checking for gmpxx.h... yes
checking for abs in -lgmpxx... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking magic.h usability... no
checking magic.h presence... no
checking for magic.h... no
checking libcgroup.h usability... no
checking libcgroup.h presence... no
checking for libcgroup.h... no
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for error_at_line... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working strtod... yes
checking for atexit... yes
checking for dup2... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for memset... yes
checking for mkdir... yes
checking for realpath... yes
checking for setenv... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
configure: creating ./config.status
config.status: creating paths.mk
config.status: creating etc/config.h
Summary:
* project.............: DOMjudge 4.0.3
* prefix..............: /opt/domjudge-
* CPPFLAGS............:
* CFLAGS..............: -g -O2 -Wall -fstack-protector -fPIE -D_FORTIFY_SOURCE=2
* CXXFLAGS............: -g -O2 -Wall -fstack-protector -fPIE -D_FORTIFY_SOURCE=2
* LDFLAGS.............: -fPIE -pie -Wl,-z,relro -Wl,-z,now
* default user........: domjudge-
* runguard user.......: domjudge-run-
* webserver group.....: www-data
* use Linux cgroups...: no
* submitclient........: enabled, cURL version: 7.26.0
* checktestdata.......: enabled
* documentation.......: /opt/domjudge-/doc
* domserver...........: /opt/domjudge-/domserver
- bin..............: /opt/domjudge-/domserver/bin
- etc..............: /opt/domjudge-/domserver/etc
- lib..............: /opt/domjudge-/domserver/lib
- libext...........: /opt/domjudge-/domserver/lib/ext
- libwww...........: /opt/domjudge-/domserver/lib/www
- libsubmit........: /opt/domjudge-/domserver/lib/submit
- log..............: /opt/domjudge-/domserver/log
- run..............: /opt/domjudge-/domserver/run
- sql..............: /opt/domjudge-/domserver/sql
- submit...........: /opt/domjudge-/domserver/submissions
- tmp..............: /opt/domjudge-/domserver/tmp
- www..............: /opt/domjudge-/domserver/www
* judgehost...........: /opt/domjudge-/judgehost
- bin..............: /opt/domjudge-/judgehost/bin
- etc..............: /opt/domjudge-/judgehost/etc
- lib..............: /opt/domjudge-/judgehost/lib
- libext...........: /opt/domjudge-/judgehost/lib/ext
- libjudge.........: /opt/domjudge-/judgehost/lib/judge
- log..............: /opt/domjudge-/judgehost/log
- run..............: /opt/domjudge-/judgehost/run
- tmp..............: /opt/domjudge-/judgehost/tmp
- judge............: /opt/domjudge-/judgehost/judgings
Now you might want to run some of:
make domserver judgehost docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment