Installation output for g2 [fail]

Installation time: 3s

'/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/bin/chicken-install' -prefix /usr/home/chicken/salmonella/build/salmonella-run-publish/salmonella-repo/repo 2>&1
retrieving ...
checking platform for `g2' ...
checking dependencies for `g2' ...
install order:
("g2")
installing g2: ...
changing current directory to .
  '/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/bin/csi' -bnq -setup-mode -e "(require-library setup-api)" -e "(import setup-api)" -e "(setup-error-handling)" -e "(extension-name-and-version '(\"g2\" \"\"))" -e "(destination-prefix \"/usr/home/chicken/salmonella/build/salmonella-run-publish/salmonella-repo/repo\")" -e "(runtime-prefix \"/usr/home/chicken/salmonella/build/salmonella-run-publish/salmonella-repo/repo\")" 'g2.setup'
X11: no
gd: no
FIG: no
  '/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/bin/csc' -feature compiling-extension -setup-mode    g2.scm -J -s -O2 -d0 -lg2 -X easyffi
g2.c:38:23: warning: implicit declaration of function 'g2_open_EPSF_CLIP' is invalid in C99 [-Wimplicit-function-declaration]
C_r=C_int_to_num(&C_a,g2_open_EPSF_CLIP(t0,t1,t2));
                      ^
g2.c:45:23: warning: implicit declaration of function 'g2_open_EPSF' is invalid in C99 [-Wimplicit-function-declaration]
C_r=C_int_to_num(&C_a,g2_open_EPSF(t0));
                      ^
g2.c:63:1: warning: implicit declaration of function 'g2_filled_para_5' is invalid in C99 [-Wimplicit-function-declaration]
g2_filled_para_5(t0,t1,t2);
^
g2.c:72:1: warning: implicit declaration of function 'g2_filled_para_3' is invalid in C99 [-Wimplicit-function-declaration]
g2_filled_para_3(t0,t1,t2);
^
g2.c:82:1: warning: implicit declaration of function 'g2_filled_raspln' is invalid in C99 [-Wimplicit-function-declaration]
g2_filled_raspln(t0,t1,t2,t3);
^
g2.c:92:1: warning: implicit declaration of function 'g2_filled_b_spline' is invalid in C99 [-Wimplicit-function-declaration]
g2_filled_b_spline(t0,t1,t2,t3);
^
g2.c:102:1: warning: implicit declaration of function 'g2_filled_spline' is invalid in C99 [-Wimplicit-function-declaration]
g2_filled_spline(t0,t1,t2,t3);
^
g2.c:111:1: warning: implicit declaration of function 'g2_para_5' is invalid in C99 [-Wimplicit-function-declaration]
g2_para_5(t0,t1,t2);
^
g2.c:120:1: warning: implicit declaration of function 'g2_para_3' is invalid in C99 [-Wimplicit-function-declaration]
g2_para_3(t0,t1,t2);
^
g2.c:130:1: warning: implicit declaration of function 'g2_raspln' is invalid in C99 [-Wimplicit-function-declaration]
g2_raspln(t0,t1,t2,t3);
^
g2.c:140:1: warning: implicit declaration of function 'g2_b_spline' is invalid in C99 [-Wimplicit-function-declaration]
g2_b_spline(t0,t1,t2,t3);
^
g2.c:150:1: warning: implicit declaration of function 'g2_spline' is invalid in C99 [-Wimplicit-function-declaration]
g2_spline(t0,t1,t2,t3);
^
g2.c:160:1: warning: implicit declaration of function 'g2_query_pointer' is invalid in C99 [-Wimplicit-function-declaration]
g2_query_pointer(t0,t1,t2,t3);
^
13 warnings generated.
/usr/bin/ld: /usr/local/lib/libg2.a(g2_ui_control.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libg2.a: could not read symbols: Bad value
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: shell command terminated with non-zero exit status 256: 'clang' 'g2.o' -o 'g2.so' -shared -L/usr/local/lib/db6 -L/usr/local/lib -lg2 -L/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/lib/  -Wl,-R'/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/lib/' -lchicken -lm -lpthread

Error: shell command failed with nonzero exit status 256:

  '/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/bin/csc' -feature compiling-extension -setup-mode    g2.scm -J -s -O2 -d0 -lg2 -X easyffi


Error: shell command terminated with nonzero exit code
17920
"'/usr/home/chicken/salmonella/build/salmonella-run-publish/chicken/bin/csi' -bn...