Has anyone be able to compile YAP on Mountain Lion?  I tried both the development version from the website and the one cloned from sourceforge.  For the sourceforge one I end with:


/usr/bin/ranlib: file: libYap.a(analyst.o) has no symbols
/usr/bin/ranlib: file: libYap.a(dlmalloc.o) has no symbols
/usr/bin/ranlib: file: libYap.a(myddas_mysql.o) has no symbols
/usr/bin/ranlib: file: libYap.a(myddas_statistics.o) has no symbols
/usr/bin/ranlib: file: libYap.a(myddas_top_level.o) has no symbols
/usr/bin/ranlib: file: libYap.a(myddas_wkb2prolog.o) has no symbols
/usr/bin/ranlib: file: libYap.a(tracer.o) has no symbols
/usr/bin/ranlib: file: libYap.a(ypstdio.o) has no symbols
/usr/bin/ranlib: file: libYap.a(pl-nt.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_dld.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_dyld.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_none.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_aout.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_aix.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_dll.o) has no symbols
/usr/bin/ranlib: file: libYap.a(load_shl.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.memory.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.copy_engine.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.cow_engine.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.sba_engine.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.thread_engine.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.scheduler.o) has no symbols
/usr/bin/ranlib: file: libYap.a(or.cut.o) has no symbols
/usr/bin/ranlib: file: libYap.a(eamamasm.o) has no symbols
/usr/bin/ranlib: file: libYap.a(eam_showcode.o) has no symbols
/usr/bin/ranlib: file: libYap.a(eamindex.o) has no symbols
/usr/bin/ranlib: file: libYap.a(eam_am.o) has no symbols
ranlib libYap.a
ranlib: file: libYap.a(analyst.o) has no symbols
ranlib: file: libYap.a(dlmalloc.o) has no symbols
ranlib: file: libYap.a(myddas_mysql.o) has no symbols
ranlib: file: libYap.a(myddas_statistics.o) has no symbols
ranlib: file: libYap.a(myddas_top_level.o) has no symbols
ranlib: file: libYap.a(myddas_wkb2prolog.o) has no symbols
ranlib: file: libYap.a(tracer.o) has no symbols
ranlib: file: libYap.a(ypstdio.o) has no symbols
ranlib: file: libYap.a(pl-nt.o) has no symbols
ranlib: file: libYap.a(load_dld.o) has no symbols
ranlib: file: libYap.a(load_dyld.o) has no symbols
ranlib: file: libYap.a(load_none.o) has no symbols
ranlib: file: libYap.a(load_aout.o) has no symbols
ranlib: file: libYap.a(load_aix.o) has no symbols
ranlib: file: libYap.a(load_dll.o) has no symbols
ranlib: file: libYap.a(load_shl.o) has no symbols
ranlib: file: libYap.a(or.memory.o) has no symbols
ranlib: file: libYap.a(or.copy_engine.o) has no symbols
ranlib: file: libYap.a(or.cow_engine.o) has no symbols
ranlib: file: libYap.a(or.sba_engine.o) has no symbols
ranlib: file: libYap.a(or.thread_engine.o) has no symbols
ranlib: file: libYap.a(or.scheduler.o) has no symbols
ranlib: file: libYap.a(or.cut.o) has no symbols
ranlib: file: libYap.a(eamamasm.o) has no symbols
ranlib: file: libYap.a(eam_showcode.o) has no symbols
ranlib: file: libYap.a(eamindex.o) has no symbols
ranlib: file: libYap.a(eam_am.o) has no symbols
gcc -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2 -DBP_FREE -O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -DCUT_C=1  -DMYDDAS_ODBC -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DTABLING=1 -DHAVE_CONFIG_H -D_YAP_NOT_INSTALLED_=1 -I. -I../H -I../include  -I../os -I../OPTYap -I../BEAM -I../MYDDAS  -o yap yap.o libYap.a -lodbc -lgmp -lreadline -lncurses -lresolv -lstdc++ -lm  -framework CoreFoundation
Undefined symbols for architecture x86_64:
  "_rl_begin_undo_group", referenced from:
      _prolog_complete in libYap.a(pl-rl.o)
  "_rl_delete", referenced from:
      _prolog_complete in libYap.a(pl-rl.o)
  "_rl_end_undo_group", referenced from:
      _prolog_complete in libYap.a(pl-rl.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: ***  Error 1


For the one downloaded from the website I have:


gcc -fstrict-aliasing -freorder-blocks -fsched-interblock -Wall -Wstrict-aliasing=2 -c -DBP_FREE -O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -DCUT_C=1  -DMYDDAS_ODBC -DCOROUTINING=1 -DRATIONAL_TREES=1 -DDEPTH_LIMIT=1 -DTABLING=1 -DHAVE_CONFIG_H -D_YAP_NOT_INSTALLED_=1 -I. -I../H -I../include  -I../os -I../OPTYap -I../BEAM -I../MYDDAS ../C/gprof.c -o gprof.o
In file included from ../H/absmi.h:158,
                 from ../C/gprof.c:110:
../OPTYap/tab.macros.h: In function ‘get_insert_subgoal_frame_addr’:
../OPTYap/tab.macros.h:758: warning: dereferencing type-punned pointer will break strict-aliasing rules
../C/gprof.c: In function ‘LeftRotate’:
../C/gprof.c:215: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:215: error: expected ‘)’ before numeric constant
../C/gprof.c: In function ‘RightRotate’:
../C/gprof.c:272: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:272: error: expected ‘)’ before numeric constant
../C/gprof.c: In function ‘TreeInsertHelp’:
../C/gprof.c:327: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:327: error: expected ‘)’ before numeric constant
../C/gprof.c: In function ‘RBExactQuery’:
../C/gprof.c:449: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:449: error: expected ‘)’ before numeric constant
../C/gprof.c: In function ‘TreeSuccessor’:
../C/gprof.c:586: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:586: error: expected ‘)’ before numeric constant
../C/gprof.c: In function ‘RBDelete’:
../C/gprof.c:626: error: expected identifier or ‘(’ before ‘void’
../C/gprof.c:626: error: expected ‘)’ before numeric constant
make: ***  Error 1