Brendan,
   I found a fix for the build failures of the fink ocaml package
in 10.4 unstable under Leopard. The failure occurs at...

gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_power -DSYS_rhapsody  
-O -Wall
-DDARWIN_VERSION_6  -D_FILE_OFFSET_BITS=64 -D_REENTRANT -I/sw/include  -c -o 
signals_asm.o signals_asm.c
In file included from signals_asm.c:28:
signals_osdep.h: In function 'context_gpr_p':
signals_osdep.h:181: error: dereferencing pointer to incomplete type
signals_osdep.h:185: error: dereferencing pointer to incomplete type
signals_asm.c: In function 'caml_init_signals':
signals_asm.c:241: error: storage size of 'stk' isn't known
signals_asm.c:241: warning: unused variable 'stk'
make[1]: *** [signals_asm.o] Error 1
make: *** [runtimeopt] Error 2
### execution of make failed, exit code 2
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-ocaml-3.10-1
(Reading database ... 13521 files and directories currently installed.)
Removing fink-buildlock-ocaml-3.10-1 ...
Failed: phase compiling: ocaml-3.10-1 failed

The problem can be avoided by setting MACOSX_DEPLOYMENT_TARGET to 10.4
in ocaml.info. I will upload some revised ocaml packaging to fink tracking.
The changes amount to...

--- /sw/fink/10.5/unstable/main/finkinfo/languages/ocaml.info   2007-06-03 
23:22:19.000000000 -0400
+++ ocaml.info  2007-06-22 13:00:50.000000000 -0400
@@ -1,16 +1,17 @@
 Package: ocaml
 Version: 3.10
-Revision: 1
+Revision: 1000
 Description: Latest implementation of Caml dialect of ML
 BuildDepends: tcltk-dev, x11-dev, libncurses5 (>= 5.4-20041023-1006)
 Depends: tcltk, x11, libncurses5-shlibs (>= 5.4-20041023-1006)
 DescPort: Uses custom configure script.
 SetMAKEFLAGS: -j1
 NoSetMAKEFLAGS: true
-Source: http://caml.inria.fr/pub/distrib/%n-3.10/%n-3.10.0.tar.bz2
-Source2: http://caml.inria.fr/pub/distrib/%n-3.10/%n-3.10-refman.pdf
-Source3: http://caml.inria.fr/pub/distrib/%n-3.10/%n-3.10-refman.html.tar.gz
-Source4: http://caml.inria.fr/pub/distrib/%n-3.10/%n-3.10-refman.info.tar.gz
+SetMACOSX_DEPLOYMENT_TARGET: 10.4
+Source: http://caml.inria.fr/pub/distrib/%n-%v/%n-%v.0.tar.bz2
+Source2: http://caml.inria.fr/pub/distrib/%n-%v/%n-%v-refman.pdf
+Source3: http://caml.inria.fr/pub/distrib/%n-%v/%n-%v-refman.html.tar.gz
+Source4: http://caml.inria.fr/pub/distrib/%n-%v/%n-%v-refman.info.tar.gz
 Source-MD5: 5b14fe7ef863ab8295c9b7d428d5e93c
 Source2-MD5: c3e00bc2c4aad3f538b4bcefade98908
 Source3-MD5: 663b31c8ea364a531aa325a5b06a2763

The revision number should be converted to the thousands since it now
explicitly builds ocaml for MACOSX_DEPLOYMENT_TARGET of 10.4.
                  Jack
ps I also fixed the complaints about the version number in the source file
entries while I was revising the packaging.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to