From: Vladimir T. <vtz...@gm...> - 2011-07-27 20:37:48
|
Sam, There is typo in your last changes: /home/vtz/clisp/hg/modules/syscalls/calls.c:690:3: error: invalid preprocessing directive #defene After fixing it the build ends with (all this on i386 debian): gcc -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -fPIC -DPIC -Wl,--export-dynamic modules.o readline.o -lreadline -lncurses regexi.o calls.o bogomips.o -lm -lcrypt gettext.o lisp.a -lreadline -lncurses -ldl -lavcall -lcallback -lsigsegv libgnu.a -o lisp.run calls.o: In function `C_subr_posix_stat_vfs': /home/vtz/clisp/hg/modules/syscalls/calls.c:2427: undefined reference to `ANSIC_error' calls.o: In function `C_subr_posix_file_stat': /home/vtz/clisp/hg/modules/syscalls/calls.c:2001: undefined reference to `ANSIC_error' calls.o: In function `C_subr_posix_mkdtemp': /home/vtz/clisp/hg/modules/syscalls/calls.c:2312: undefined reference to `ANSIC_error' calls.o: In function `C_subr_posix_domainname': /home/vtz/clisp/hg/modules/syscalls/calls.c:1936: undefined reference to `ANSIC_error' calls.o: In function `C_subr_posix_groups': /home/vtz/clisp/hg/modules/syscalls/calls.c:1885: undefined reference to `ANSIC_error' calls.o:/home/vtz/clisp/hg/modules/syscalls/calls.c:1451: more undefined references to `ANSIC_error' follow collect2: ld returned 1 exit status ./clisp-link: failed in /home/vtz/clisp/hg/s/base make: *** [base] Error 1 And few more warnings while compiling calls.c: gcc -I/home/vtz/clisp/hg/s/gllib -I/home/vtz/clisp/hg/s -g -O2 -W -Wswitch -Wcomment -Wpointer-arith -Wimplicit -Wreturn-type -Wmissing-declarations -Wno-sign-compare -Wno-format-nonliteral -O2 -fexpensive-optimizations -falign-functions=4 -DENABLE_UNICODE -DDYNAMIC_FFI -DDYNAMIC_MODULES -I. -fPIC -DPIC -I/home/vtz/clisp/hg/s/linkkit \ -c calls.m.c -o calls.o In file included from /home/vtz/clisp/hg/modules/syscalls/calls.c:21: config.h:422:1: warning: "SIZEOF_OFF_T" redefined In file included from /home/vtz/clisp/hg/modules/syscalls/calls.c:20: /home/vtz/clisp/hg/s/clisp.h:1661:1: warning: this is the location of the previous definition In file included from /home/vtz/clisp/hg/modules/syscalls/calls.c:21: config.h:428:1: warning: "SIZEOF_RLIM_T" redefined In file included from /home/vtz/clisp/hg/modules/syscalls/calls.c:20: /home/vtz/clisp/hg/s/clisp.h:1664:1: warning: this is the location of the previous definition /home/vtz/clisp/hg/modules/syscalls/calls.c: In function ‘C_subr_posix_string_time’: /home/vtz/clisp/hg/modules/syscalls/calls.c:607: warning: implicit declaration of function ‘ANSIC_error’ /home/vtz/clisp/hg/modules/syscalls/calls.c: In function ‘C_subr_posix__25sethostid’: /home/vtz/clisp/hg/modules/syscalls/calls.c:1921: warning: ignoring return value of ‘sethostid’, declared with attribute warn_unused_result gcc -c /home/vtz/clisp/hg/modules/syscalls/bogomips.c -o bogomips.o Vladimir |