PDA

View Full Version : Problems building RLDev


2006-05-07, 10:44
Hi, I'm trying to build RLDev on Mac OSX 10.4.5. I install godi and the packages specified in the INSTALL into a folder in /usr/local/, and I added the relevant bin/ and sbin/ to my PATH.


*** omake: reading OMakefiles
*** omake: finished reading OMakefiles (0.2 sec)
- build kprl /Users/XXXX/Desktop/rldev-1.39/bin/kprl
+ ocamlfind ocamlopt -package "bigarray,unix,extlib,ulex" -warn-error Asxyz -I . -I ../common -o /Users/elliot/Desktop/rldev-1.39/bin/kprl ../common/optpp.cmxa ../common/rlcmp.cmxa ../common/rlkfn.cmxa ../common/appconfig.cmxa app.cmx disassembler.cmx archiver.cmx main.cmx ../common/rlprims.a -linkpkg -cclib -lstdc++
/usr/bin/ld: Undefined symbols:
__Unwind_Resume
collect2: ld returned 1 exit status
Error during linking
*** omake: 201/446 targets are up to date
*** omake: failed (5.1 sec, 0/38 scans, 1/89 rules, 1/391 digests)
*** omake: targets were not rebuilt because of errors:
/Users/XXXX/Desktop/rldev-1.39/bin/kprl


Does anyone know how to solve this build issue? Or, barring that, could someone please put up statically linked Mac OSX binaries?

Here are the versions of the packages I'm using (as reported by godi_console):

godi-extlib 1.4
godi-ocaml 3.09.1
godi-omake 0.9.6.9#1
godi-ulex 0.8
godi-xml-light 2.2#1

Any help would be much appreciated.

Haeleth
2006-05-07, 11:51
Apparently the technique I'm using to link in some C++ code doesn't work on OS X. :(

Try the following patch:
--- src/OMakefile
+++ src/OMakefile
@@ -17,7 +17,7 @@
# Place - Suite 330, Boston, MA 02111-1307, USA.
#

-OCAMLFLAGS = -warn-error Asxyz
+OCAMLFLAGS = -warn-error Asxyz -cc g++
USE_OCAMLFIND = true

if $(defined-env DEBUG)
@@ -50,9 +50,6 @@
INCLUDES += $(dir common)
OCAML_LIBS = $(file $(addprefix common/,optpp rlcmp rlkfn appconfig))
OCAML_CLIBS = $(file common/rlprims)
-if $(not $(equal $(OSTYPE), Win32))
- OCAML_LINK_FLAGS += -cclib -lstdc++
- export

# build programs

2006-05-07, 18:50
That patch fixed that linking problem, but there's one more issue: OSX doesn't have a version of libpng with the header files. You have to install it through fink/ports/compile it yourself.

Anyway, I now have a working RLdev install. Thank you very much!

Haeleth
2006-05-08, 04:27
Glad to hear it's all working. I'll try to remember to add the patch (and document the libpng requirement) in the next update.