[Ecls-list] building on OpenBSD again..
martin at magusdata.com
martin at magusdata.com
Thu Aug 9 23:24:12 UTC 2007
Am having problems building on OpenBSD right now with the following
build script (and have tried building both with included and system
boehm-gc and gmp). I do have a working ECL from August 1st so
something has changed since then affecting the build.
#!/bin/ksh
CFLAGS="-I/usr/local/include/ -I/usr/local/include/gc/"
LDFLAGS="-L/usr/local/lib/"
export CFLAGS LDFLAGS
./configure --enable-boehm=system --prefix=/usr/local/
Switching to directory `build' to continue configuration.
checking build system type... pentium4-unknown-openbsd4.2
checking host system type... pentium4-unknown-openbsd4.2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ld flags when building shared libraries... -shared -L/usr/local/lib/
checking for required libraries...
checking for architecture... PENTIUM4
checking for software type... openbsd4.2
checking for __thread local data... yes
checking for install-info... /usr/bin/install-info
checking for getpwnam in -lsun... no
checking for library containing strerror... none required
checking for GC_malloc in -lgc... yes
checking if we need to copy GC private headers ... checking for __gmpz_init in -lgmp..
. yes
checking for __gmpz_init in -lgmp... (cached) yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/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 for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.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/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking fenv.h usability... no
checking fenv.h presence... no
checking for fenv.h... no
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking ulimit.h usability... no
checking ulimit.h presence... no
checking for ulimit.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for working volatile... yes
checking for ptrdiff_t... yes
checking for long long int... yes
checking whether byte ordering is bigendian... no
checking character sequence for end of line... lf
checking for _longjmp... yes
checking whether we can dynamically build calls to C functions... yes
checking for code to detect FP exceptions... x86
checking whether stack growns downwards... yes
checking appropiate type for fixnums... int
checking whether closedir returns void... no
checking for error_at_line... no
checking for pid_t... 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 whether gcc needs -traditional... no
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for sys/select.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking types of arguments for select... int,fd_set *,struct timeval *
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for working strtod... yes
checking for floor... yes
checking for getcwd... yes
checking for gethostbyaddr... yes
checking for gethostbyname... yes
checking for getpagesize... (cached) yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for putenv... yes
checking for socket... yes
checking for sqrt... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking for nanosleep... yes
checking for alarm... yes
checking for times... yes
checking for isnanf... yes
checking for select... yes
checking for setenv... yes
checking for putenv... (cached) yes
checking for lstat... yes
checking for mkstemp... yes
checking for sigprocmask... yes
checking for isatty... yes
checking for feenableexcept... no
checking for tzset... yes
checking for gettimeofday... yes
checking for getrusage... yes
checking for expf... yes
checking for logf... yes
checking for sqrtf... yes
checking for cosf... yes
checking for sinf... yes
checking for tanf... yes
checking for sinhf... yes
checking for coshf... yes
checking for tanhf... yes
checking for floorf... yes
checking for ceilf... yes
checking for fabsf... yes
checking for frexpf... yes
checking for ldexpf... yes
checking gc.h usability... yes
checking gc.h presence... no
configure: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: gc.h: proceeding with the compiler's result
checking for gc.h... yes
configure: creating ./config.status
config.status: creating bare.lsp
config.status: creating lsp/load.lsp
config.status: creating clos/load.lsp
config.status: creating cmp/load.lsp
config.status: creating ../Makefile
config.status: WARNING: ../Makefile.in seems to ignore the --datarootdir setting
config.status: creating Makefile
config.status: creating c/Makefile
config.status: creating doc/Makefile
config.status: WARNING: /home/mk/Project/src/ecl/src/doc/Makefile.in seems to ignore the --datarootdir setting
config.status: creating doc/ecl.man
config.status: creating doc/ecl-config.man
config.status: creating ecl/configpre.h
config.status: creating bin/ecl-config.pre
config.status: creating lsp/config.pre
config.status: creating compile.pre
config.status: creating cmp/cmpdefs.pre
config.status: creating ecl/config.h
config.status: ecl/config.h is unchanged
Configuration complete. To build ECL, issue make in this directory.
$ make
cd build; make
if (echo c | grep gmp); then cd gmp && make install && cd .. && mv include/gmp.h ecl/ && rmdir include && mv ./libgmp.a ./libeclgmp.a; fi
test -d ecl/gc || mkdir ecl/gc
test -d ecl/gc/private || mkdir ecl/gc/private
if (echo c | grep gc); then cd gc && make install && cd .. && cp -rf /home/mk/Project/src/ecl/src/gc/include/gc_mark.h ecl/gc/ && cp -rf /home/mk/Project/src/ecl/src/gc/include/private/*.h ecl/gc/private/ && mv libgc.a libeclgc.a; fi
sed -e 's, at ecldir\\@,/usr/local//lib/ecl/,g' < lsp/config.pre > lsp/config.lsp
sed -e 's, at ecldir\\@,"/usr/local//lib/ecl/",g' -e 's, at libdir\\@,"/usr/local//lib/",g' -e 's, at includedir\\@,"/usr/local//include/",g' < cmp/cmpdefs.pre > cmp/cmpdefs.lsp
cd c; make
cat /home/mk/Project/src/ecl/src/c/symbols_list.h | sed -e 's%{\([A-Z ]*.*".*"\),[^,]*,[ ]*NULL,.*}%{\1,NULL}%g' -e 's%{\([A-Z ]*.*".*"\),[^,]*,[ ]*\([^,]*\),.*}%{\1,"\2"}%g' -e 's%{NULL.*%{NULL,NULL}};%' > /home/mk/Project/src/ecl/src/c/symbols_list2.h
if test -f ../CROSS-DPP; then touch dpp; else gcc -I/usr/local/include/ -I/usr/local/include/gc/ -fPIC -fstrict-aliasing -Dopenbsd -I/home/mk/Project/src/ecl/src/c -I/home/mk/Project/src/ecl/build -I./ /home/mk/Project/src/ecl/src/c/dpp.c -o ./dpp ; fi
/tmp//ccf18192.o(.text+0x22dd): In function `main':
: warning: strcpy() is almost always misused, please use strlcpy()
if test -f ../CROSS-DPP ; then ../CROSS-DPP /home/mk/Project/src/ecl/src/c/main.d main.c ; else ./dpp /home/mk/Project/src/ecl/src/c/main.d main.c ; fi
dpp: /home/mk/Project/src/ecl/src/c/main.d -> main.c
Unknown symbol: mp::*current-process*
Unknown symbol: mp::+load-compile-lock+
Unknown symbol: mp::+load-compile-lock+
Unknown symbol: si::load-binary
Unknown symbol: si::load-binary
Unknown symbol: si::*record-source-pathname-p*
Unknown symbol: SI::*RELATIVE-PACKAGE-NAMES*
Unknown symbol: si::setenv
gcc -c -I. -I/home/mk/Project/src/ecl/build -I/home/mk/Project/src/ecl/src/c -I../ecl/gc -I/usr/local/include/ -I/usr/local/include/gc/ -fPIC -fstrict-aliasing -Dopenbsd -o main.o main.c
/home/mk/Project/src/ecl/src/c/main.d: In function `cl_boot':
/home/mk/Project/src/ecl/src/c/main.d:391: error: `unknown' undeclared (first use in this function)
/home/mk/Project/src/ecl/src/c/main.d:391: error: (Each undeclared identifier is reported only once
/home/mk/Project/src/ecl/src/c/main.d:391: error: for each function it appears in.)
/home/mk/Project/src/ecl/src/c/main.d: In function `si_setenv':
/home/mk/Project/src/ecl/src/c/main.d:562: error: `unknown' undeclared (first use in this function)
*** Error code 1
Stop in /home/mk/Project/src/ecl/build/c.
*** Error code 1
Stop in /home/mk/Project/src/ecl/build (line 99 of Makefile).
*** Error code 1
Stop in /home/mk/Project/src/ecl (line 69 of Makefile).
!DSPAM:1890,46bba21e77691654985389!
More information about the ecl-devel
mailing list