Help building on Mac OS X

Adam <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Hi there, any help as to what's going wrong for me would be greatly 
appreciated...

I'm trying to build hugs on Mac OS X 10.3.7. The configure script runs ok, 
then when I do 'make' I get the following:

~/Desktop/hugs98-Nov2003/src $ make
gcc -c -g  -O2 hugs.c
gcc -c -g  -O2 edit.c
gcc -c -g  -O2 observe.c
gcc -c -g  -O2 builtin.c
gcc -c -g  compiler.c
gcc -c -g  -O2 errors.c
gcc -c -g  -O2 evaluator.c
gcc -c -g  -O2 ffi.c
gcc -c -g  -O2 goal.c
gcc -c -g  -O2 input.c
gcc -c -g  -O2 machdep.c
/usr/include/dlfcn.h:35: warning: #warning "You are using dlopen(), a legacy 
API. 
Please use the Mach-
O dylib loading APIs if at all possible"
gcc -c -g  -O2 machine.c
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1649: illegal expression, found `&&'
machine.c:1673: illegal statement, missing `identifier' after `goto'
machine.c:1673: syntax error, missing `;' after `*'
machine.c:1677: illegal statement, missing `identifier' after `goto'
machine.c:1677: syntax error, missing `;' after `*'
machine.c:1681: illegal statement, missing `identifier' after `goto'
machine.c:1681: syntax error, missing `;' after `*'
machine.c:1685: illegal statement, missing `identifier' after `goto'
machine.c:1685: syntax error, missing `;' after `*'
machine.c:1689: illegal statement, missing `identifier' after `goto'
machine.c:1689: syntax error, missing `;' after `*'
machine.c:1694: illegal statement, missing `identifier' after `goto'
machine.c:1694: syntax error, missing `;' after `*'
machine.c:1698: illegal statement, missing `identifier' after `goto'
machine.c:1698: syntax error, missing `;' after `*'
machine.c:1707: illegal statement, missing `identifier' after `goto'
machine.c:1707: syntax error, missing `;' after `*'
machine.c:1715: illegal statement, missing `identifier' after `goto'
machine.c:1715: syntax error, missing `;' after `*'
machine.c:1729: illegal statement, missing `identifier' after `goto'
machine.c:1729: syntax error, missing `;' after `*'
machine.c:1738: illegal statement, missing `identifier' after `goto'
machine.c:1738: syntax error, missing `;' after `*'
machine.c:1742: illegal statement, missing `identifier' after `goto'
machine.c:1742: syntax error, missing `;' after `*'
machine.c:1748: illegal statement, missing `identifier' after `goto'
machine.c:1748: syntax error, missing `;' after `*'
machine.c:1756: illegal statement, missing `identifier' after `goto'
machine.c:1756: syntax error, missing `;' after `*'
machine.c:1759: illegal statement, missing `identifier' after `goto'
machine.c:1759: syntax error, missing `;' after `*'
machine.c:1763: illegal statement, missing `identifier' after `goto'
machine.c:1763: syntax error, missing `;' after `*'
machine.c:1771: illegal statement, missing `identifier' after `goto'
machine.c:1771: syntax error, missing `;' after `*'
machine.c:1791: illegal statement, missing `identifier' after `goto'
machine.c:1791: syntax error, missing `;' after `*'
machine.c:1814: illegal statement, missing `identifier' after `goto'
machine.c:1814: syntax error, missing `;' after `*'
cpp-precomp: warning: errors during smart preprocessing, retrying in basic 
mode
gcc -c -g  module.c
gcc -c -g  -O2 opts.c
gcc -c -g  -O2 output.c
gcc -c -g  -O2 plugin.c
gcc -c -g  -O2 script.c
gcc -c -g  static.c
gcc -c -g  -O2 storage.c
gcc -c -g  -O2 strutil.c
gcc -c -g  subst.c
gcc -c -g  type.c
gcc  hugs.o edit.o observe.o builtin.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  -lncurses    -o hugs 
/usr/bin/ld: Undefined symbols:
_doubleFromParts
_part1Double
_part2Double
make: *** [hugs] Error 1


Many thanks, Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.