[Hugs-bugs] Failure to build hugs98-May2006 on Mac OS X 10.4.6

Binil Thomas binil.thomas at gmail.com
Tue May 16 01:59:38 EDT 2006


Hi,

I tried building hugs sources on Mac OS X 10.4.6, and am running into
issues. The build fails with an undefined symbol.

hugs98-plus-May2006$ ./configure
checking build system type... powerpc-apple-darwin8.6.0
checking host system type... powerpc-apple-darwin8.6.0
checking target system type... powerpc-apple-darwin8.6.0
checking for bison... bison -y
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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for ld... ld
checking for perl... perl
checking whether make sets $(MAKE)... yes
checking for hp2ps... 1
checking for docbook2html... no
checking for db2html... no
checking for docbook2dvi... no
checking for db2dvi... no
checking for docbook2pdf... no
checking for db2pdf... no
checking for docbook2ps... no
checking for db2ps... no
checking for diff... /usr/bin/diff
checking whether to use "diff -c1" or "diff -C 1"... /usr/bin/diff -C 1
checking for dlopen in -ldl... yes
checking for shl_load in -ldld... no
checking for atan in -lm... yes
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for string.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sgtty.h usability... yes
checking sgtty.h presence... yes
checking for sgtty.h... yes
checking termio.h usability... no
checking termio.h presence... no
checking for termio.h... no
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking console.h usability... no
checking console.h presence... no
checking for console.h... no
checking Files.h usability... no
checking Files.h presence... no
checking for Files.h... no
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking stat.h usability... no
checking stat.h presence... no
checking for stat.h... no
checking direct.h usability... no
checking direct.h presence... no
checking for direct.h... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking values.h usability... no
checking values.h presence... no
checking for values.h... no
checking dos.h usability... no
checking dos.h presence... no
checking for dos.h... no
checking conio.h usability... no
checking conio.h presence... no
checking for conio.h... no
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking std.h usability... no
checking std.h presence... no
checking for std.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking alloc.h usability... no
checking alloc.h presence... no
checking for alloc.h... no
checking for valloc... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking whether wchar_t is ISO 10646 (Unicode)... no
checking for locale-based character encoding... no
checking for library containing wcrtomb... none required
checking for WinExec... no
checking for GetModuleFileName... no
checking for atan... yes
checking for strcasecmp... yes
checking for _stricmp... no
checking for stricmp... no
checking for strcmpi... no
checking for strcmp... yes
checking for rindex... yes
checking for strrchr... yes
checking for realpath... yes
checking for _fullpath... no
checking for macsystem... no
checking for fseek... yes
checking for ftell... yes
checking for vsnprintf... yes
checking for _vsnprintf... no
checking for snprintf... yes
checking for _snprintf... no
checking for popen... yes
checking for _popen... no
checking for pclose... yes
checking for _pclose... no
checking for sigprocmask... yes
checking for getrusage... yes
checking for times... yes
checking for isatty... yes
checking for fstat... yes
checking for select... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for time... yes
checking for localtime... yes
checking for gmtime... yes
checking for mktime... yes
checking for dup... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for sys/time.h... (cached) yes
checking whether timezone is declared... yes
checking whether _timezone is declared... no
checking whether altzone is declared... no
checking for working alloca.h... yes
checking for alloca... yes
checking for _alloca... no
checking for stime... no
checking for poly... no
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking for arrays of jmp_bufs... yes
checking labels as values... yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking return type of signal handlers... void
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes
checking for int... yes
checking size of int... 4
checking for float... yes
checking size of float... 4
checking for double... yes
checking size of double... 8
checking for int*... yes
checking size of int*... 4
building large hugs
checking if '/LD' builds loadable libraries...
checking if '/LD /ML /nologo' builds loadable libraries...
checking if '-shared -fPIC' builds loadable libraries...
checking if '-flat_namespace -bundle -undefined suppress' builds loadable
libraries... -flat_namespace -bundle -undefined suppress
checking if '-bundle' builds loadable libraries... (cached) -flat_namespace
-bundle -undefined suppress
checking if '-r' builds loadable libraries... (cached) -flat_namespace
-bundle -undefined suppress
checking for LoadLibrary... no
checking for dlopen... yes
configure: creating ./config.status
config.status: creating MkDefs
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating docs/users_guide/Makefile
config.status: creating demos/Makefile
config.status: creating src/platform.h
config.status: creating docs/hugs.1
config.status: creating src/config.h
config.status: creating src/options.h
configure: configuring in libraries
configure: running /bin/sh './configure' --prefix=/usr/local
--cache-file=/dev/null --srcdir=.
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 ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking whether gcc needs -traditional... no
checking how to run the C preprocessor... gcc -E
checking for a traditional C preprocessor... gcc -E -traditional-cpp
checking whether make sets $(MAKE)... yes
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/stat.h... (cached) yes
checking sys/timers.h usability... no
checking sys/timers.h presence... no
checking for sys/timers.h... no
checking for sys/types.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking utime.h usability... yes
checking utime.h presence... yes
checking for utime.h... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking winsock.h usability... no
checking winsock.h presence... no
checking for winsock.h... no
checking whether time.h and sys/time.h may both be included... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/times.h usability... yes
checking sys/times.h presence... yes
checking for sys/times.h... yes
checking for getclock... no
checking for getrusage... yes
checking for gettimeofday... yes
checking for time... yes
checking for times... yes
checking for long long... yes
checking for char... yes
checking size of char... 1
checking for double... yes
checking size of double... 8
checking for float... yes
checking size of float... 4
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... (cached) yes
checking size of long long... 8
checking for short... yes
checking size of short... 2
checking for unsigned char... yes
checking size of unsigned char... 1
checking for unsigned int... yes
checking size of unsigned int... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for unsigned short... yes
checking size of unsigned short... 2
checking for void *... yes
checking size of void *... 4
checking for char... (cached) yes
checking alignment of char... 1
checking for double... (cached) yes
checking alignment of double... 4
checking for float... (cached) yes
checking alignment of float... 4
checking for int... (cached) yes
checking alignment of int... 4
checking for long... (cached) yes
checking alignment of long... 4
checking for long long... (cached) yes
checking alignment of long long... 4
checking for short... (cached) yes
checking alignment of short... 2
checking for unsigned char... (cached) yes
checking alignment of unsigned char... 1
checking for unsigned int... (cached) yes
checking alignment of unsigned int... 4
checking for unsigned long... (cached) yes
checking alignment of unsigned long... 4
checking for unsigned long long... (cached) yes
checking alignment of unsigned long long... 4
checking for unsigned short... (cached) yes
checking alignment of unsigned short... 2
checking for void *... (cached) yes
checking alignment of void *... 4
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tools/config
config.status: creating include/ghcconfig.h
config.status: executing ultra-evil commands

************************************************
*** NOW DO: make ; make install
************************************************
hugs98-plus-May2006$ make
cd src; make all
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 hugs.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 edit.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 observe.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 builtin.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 char.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  compiler.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 errors.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 evaluator.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 ffi.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 goal.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 input.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 machdep.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 machine.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  module.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 opts.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 output.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 plugin.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 script.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  static.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 storage.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  -O2 strutil.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  subst.c
gcc -c -DNDEBUG=1 -g -no-cpp-precomp  type.c
gcc -flat_namespace   hugs.o edit.o observe.o builtin.o char.o compiler.o
errors.o evaluator.o ffi.o goal.o input.o machdep.o machine.o module.o
opts.o output.o plugin.o script.o static.o storage.o strutil.o subst.o
type.o version.o  -lreadline -lncurses -lm -ldl  -o hugs
ld: Undefined symbols:
_mallocBytesRWX
make[1]: *** [hugs] Error 1
make: *** [all] Error 2

Thanks,
Binil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/hugs-bugs/attachments/20060516/1c1e0e84/attachment-0001.htm


More information about the Hugs-Bugs mailing list