Closed GoogleCodeExporter closed 9 years ago
I was able to install HOC on Leopard using ghc-6.8.2 by making the following
small
changes:
1. use the SDK from 10.4 (it seems that the parser can't handle 10.5's headers
yet)
2. explicitly call "-package unix" when building the Foundation and AppKit
packages.
(This issue appears to be caused by a recent change to use System.Posix.DynamicLinker.)
Index: AppKit/Makefile.in
===================================================================
--- AppKit/Makefile.in (revision 286)
+++ AppKit/Makefile.in (working copy)
@@ -58,6 +58,7 @@
-hidir build/imports \
-package-conf ../inplace.conf \
-fglasgow-exts -fth \
+ -package unix
$(EXTRA_GHCFLAGS)
test ! -r GNUstepGUI.hs || \
$(GHC) --make GNUstepGUI.hs \
Index: Foundation/Makefile.in
===================================================================
--- Foundation/Makefile.in (revision 286)
+++ Foundation/Makefile.in (working copy)
@@ -57,6 +57,7 @@
-hidir build/imports \
-package-conf ../inplace.conf \
-fglasgow-exts -fth\
+ -package unix\
$(EXTRA_GHCFLAGS)
test ! -r GNUstepBase.hs || \
Index: InterfaceGenerator/Headers.hs
===================================================================
--- InterfaceGenerator/Headers.hs (revision 286)
+++ InterfaceGenerator/Headers.hs (working copy)
@@ -44,7 +44,7 @@
headersForFramework framework =
if System.Info.os == "darwin"
- then headersIn ("/System/Library/Frameworks/" ++ framework ++
".framework/Headers/") framework
+ then headersIn
("/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/"
++ framework ++ ".framework/Headers/") framework
else headersIn ("/usr/lib/GNUstep/System/Library/Headers/" ++ framework ++
"/") framework
translateObjCImport imp = haskellizeModuleName $
Original comment by judah.ja...@gmail.com
on 2 Apr 2008 at 6:08
Attachments:
Thanks, I used your patch as a basis for basic Leopard support; r287 has your
fix and a few more tidbits.
Original comment by andre.p...@gmail.com
on 22 Apr 2008 at 1:16
Original issue reported on code.google.com by
jm.gaill...@googlemail.com
on 19 Feb 2008 at 10:57