From: Vladimir T. <vtz...@gm...> - 2011-08-18 21:04:36
|
On Thu, Aug 18, 2011 at 1:05 AM, Sam Steingold <sd...@gn...> wrote: > I don't remember what your platform is. > where is errno declared on your box? it is: Linux vtz 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux and errno is declared as expected in: /usr/include/errno.h > note that <errno.h> is included before unix.d which defines OS_errno > which expands to errno on unix when, apparently, triggers your error. > could you please investigate? (by starting with a fresh configure in a > separate directory) <errno.h> is not included at all (grep-ed for it). if I include it in lispbibl.d before "unix.c" the build proceeds until: gcc -I/home/vtz/clisp/hg/src -I/home/vtz/clisp/hg/s/gllib -I/home/vtz/clisp/hg/src/gllib -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 -c misc.c ../src/misc.d: In function ‘C_get_env’: ../src/misc.d:211: error: ‘environ’ undeclared (first use in this function) ../src/misc.d:211: error: (Each undeclared identifier is reported only once ../src/misc.d:211: error: for each function it appears in.) ../src/misc.d: In function ‘C_process_id’: ../src/misc.d:393: warning: implicit declaration of function ‘getpid’ looks like <unistd.h> is not included as well. if I include it in lispbibl.d (together with <errno.h> before "unix.c") build proceeds until: gcc -I/home/vtz/clisp/hg/src -I/home/vtz/clisp/hg/s/gllib -I/home/vtz/clisp/hg/src/gllib -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 -fPIC -DPIC -I/home/vtz/clisp/hg/s/linkkit -c modules.c 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 -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 |