Hi: I don't have Debian on ppc, but I do have Mac OS X, and I was able to successfully compile and run perl4caml on this platform. I needed a couple of patches to make it work, which are attached below -- basically they amount to commenting out the #define off64_t and #include <crypt.h> at the start of perl_c.c, although these still seem to be required for Perl 5.8.2 on i386. I tested with Perl 5.8.1 from Fink, and OCaml 3.08.1 from GODI. I don't think the ppc and sparc problems can be endianness- or arch-related anyway. I have a Debian/sparc machine at home which I'll try it out on next. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ >>> http://www.team-notepad.com/ - collaboration tools for teams <<< Merjis Ltd. http://www.merjis.com/ - improving website return on investment http://youunlimited.co.uk/ - Personal improvement courses
Index: Makefile =================================================================== RCS file: /var/lib/cvs/merjis/test/perl4caml/Makefile,v retrieving revision 1.26 diff -u -r1.26 Makefile --- Makefile 1 Dec 2004 12:41:29 -0000 1.26 +++ Makefile 11 Dec 2004 13:37:33 -0000 @@ -23,11 +23,6 @@ SED := sed -# XXX Hack required by ocamlopt, and sometimes ocamlc. -# To work out what this should be, try: -# `perl -MExtUtils::Embed -e ldopts' -DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a - OCAMLDOCFLAGS := -html -stars -sort $(OCAMLCINCS) WRAPPERS := \ Index: Makefile.config =================================================================== RCS file: /var/lib/cvs/merjis/test/perl4caml/Makefile.config,v retrieving revision 1.18 diff -u -r1.18 Makefile.config --- Makefile.config 25 Nov 2004 21:32:28 -0000 1.18 +++ Makefile.config 11 Dec 2004 13:37:33 -0000 @@ -28,6 +28,16 @@ EXTRA_CFLAGS := #EXTRA_CFLAGS := -DPERL4CAML_REFCOUNTING_EXPERIMENTAL=1 +#EXTRA_CFLAGS := -I/Users/rich/OCaml/lib/ocaml/std-lib -DPERL4CAML_NO_CRYPT_H \ + -DPERL4CAML_NO_OFF64_T + +# DYNALOADER_HACK +# XXX Hack required by ocamlopt, and sometimes ocamlc. +# To work out what this should be, try: +# `perl -MExtUtils::Embed -e ldopts' + +DYNALOADER_HACK := /usr/lib/perl/5.8/auto/DynaLoader/DynaLoader.a +#DYNALOADER_HACK := /System/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a # PACKAGE and VERSION Index: perl_c.c =================================================================== RCS file: /var/lib/cvs/merjis/test/perl4caml/perl_c.c,v retrieving revision 1.17 diff -u -r1.17 perl_c.c --- perl_c.c 25 Nov 2004 22:16:17 -0000 1.17 +++ perl_c.c 11 Dec 2004 13:37:34 -0000 @@ -16,14 +16,18 @@ #include <caml/memory.h> #include <caml/mlvalues.h> +#ifndef PERL4CAML_NO_OFF64_T /* XXX This was required to avoid an error on my machine when loading the Perl * headers. Not clear why this is missing. */ #define off64_t __off64_t +#endif +#ifndef PERL4CAML_NO_CRYPT_H /* XXX This is required by Perl >= 5.8.2. */ #define __USE_GNU #include <crypt.h> +#endif #include <EXTERN.h> #include <perl.h>
Attachment:
signature.asc
Description: Digital signature