On 25.01.2010, at 17:58, Christian Maeder wrote:
> I was able to install gtk2hs (darcs version) on MacOS 10.5 X (Intel,
> 32bit) using ghc-6.12.1
> 1. We've installed the GTK+ 2.14.3 framework from
Ah, interesting. Is this the most up-to-date binary built for a OS X-
native Gtk? Or is this actually an X11 Gtk?
> 2. Extended the PATH for ./configure in gtk2hs
> export PATH=/Library/Frameworks/GTK+.framework/Resources/bin:$PATH
> 3. ./configure --disable-split-objs
> and "make" and "make install".
> 4. A failure during the first call of autoreconf (that creates
> configure) is caused by a missing file pkg.m4 in /usr/share/aclocal/
> configure.ac:105: error: possibly undefined macro: AC_MSG_ERROR
> If this token and others are legitimate, please use
> See the Autoconf documentation.
> autoreconf: /usr/bin/autoconf failed with exit status: 1
You do need to install autoconf and automake.
> 5. In the script hsc2hs I had to remove $HSC2HS_EXTRA because -m32 is
> not recognised by ghc:
> /home/mac-bkb/intel/ghc/ghc-6.12.1/bin/hsc2hs +RTS -RTS
> -L-optl-lgobject-2.0 -L-optl-lglib-2.0 -L-optl-lintl -L-optl-liconv
> -C-optc-g -C-optc-O2 -C-opta-g -C-opta-O2
> -C'-optc-include' -C'-optcgtk2hs-config.h' -C'-optc-include'
> -C'-optctemplate-hsc-gtk2hs.h' --include glib-object.h
> --cc="/home/mac-bkb/intel/ghc/ghc-6.12.1/bin/ghc" --lflag=-no-hs-main
> ghc: unrecognised flags: -m32
Ok. I'm sure there was a reason why we forced a 32-bit built. It's odd
that this doesn't work anymore.
Does anybody know?
> 6. omitting --disable-split-objs failed with:
> ./mk/link-splitobjs.sh libHScairo.a cairo/Graphics/Rendering/Cairo.o
> Linking libHScairo.a, for larger libs this can take quite some time...
> ranlib libHScairo.a
> ranlib: can't open file: libHScairo.a (No such file or directory)
> make: *** [libHScairo.a] Error 1
> make: *** [all] Error 2
Yes, apparently ghc 6.12 puts split-obj files into different
Thanks for the report,