> The fact that this fails is > most likely a misconfiguration in the cabal file or a bug in Cabal > itself. Is the gtk2hs-buildtools-0.9 directory anywhere else? For > example under ~/.cabal ?
So "cabal configure -v --prefix=/workspace/ext" reports Using install prefix: C:/workspace/ext but a subsequent "cabal install" does not respect the prefix setting, and instead reports: Using install prefix: C:\Documents and Settings\1341796\Application Data\cabal I suspect this is a known bug/feature in cabal - the "install" target in fact does all three steps of "configure", "build", and "install", thereby wiping any previously configured settings. Pending a bugfix to cabal, the solution is to give all configure-time arguments to the install step (and omit the separate configure and build steps). With this change in the way I call cabal, I can now successfully build pango. Yay! But there is an error when building the gtk package: C:\workspace\ext\bin\gtk2hsC2hs.exe --include=dist\build --include=C:\workspace\ext\ghc-6.12.1\array-0.3.0.0 --include=C:\workspace\ext\ghc-6.12.1\base-4.2.0.0 --include=C:/workspace/ext\cairo-0.10.5\ghc-6.12.1 --include=C:\workspace\ext\ghc-6.12.1\containers-0.3.0.0 --include=C:/workspace/ext\glib-0.10.5\ghc-6.12.1 --include=C:\workspace\ext\ghc-6.12.1\haskell98-1.0.1.1 --include=C:/workspace/ext\mtl-1.1.0.2\ghc-6.12.1 --include=C:/workspace/ext\pango-0.10.5\ghc-6.12.1 --cppopts=-Idist\build\autogen --cppopts=-Idist\build --cppopts=-I. --cppopts=-IC:/msys/1.0/local/include/glib-2.0 --cppopts=-IC:/msys/1.0/local/lib/glib-2.0/include --cppopts=-IC:/msys/1.0/local/include/gtk-2.0 --cppopts=-IC:/msys/1.0/local/lib/gtk-2.0/include --cppopts=-IC:/msys/1.0/local/include/atk-1.0 --cppopts=-IC:/msys/1.0/local/include/cairo --cppopts=-IC:/msys/1.0/local/include/pango-1.0 --cppopts=-IC:/msys/1.0/local/include/freetype2 --cppopts=-IC:/msys/1.0/local/include --cppopts=-IC:/msys/1.0/local/include/libpng14 --cppopts=-DWIN32 --cppopts=-DHAVE_NEW_CONTROL_EXCEPTION --output-dir=dist\build\Graphics\UI\Gtk\Gdk\ --output=PixbufAnimation.hs --precomp=dist\build\precompchs.bin wingtk.h .\Graphics\UI\Gtk\Gdk\PixbufAnimation.chs gtk2hsC2hs.exe: Errors during expansion of binding hooks: .\\Graphics\\UI\\Gtk\\Gdk\\PixbufAnimation.chs:113: (column 20) [ERROR] >>> Unknown identifier! Cannot find a definition for `pixbuf_animation_new_from_file' in the header file. For info, I recall sending some patches for this bug before - perhaps they got unwound in the move to cabalisation. On win32, the function is called "pixbuf_animation_new_from_file_utf8", and there are several other occurrences of the "_utf8" extension required in other places too. Perhaps you can retrieve the relevant patch from the other repo? > Thanks for bearing with us! No problem - I'm just happy to help in making progress. Regards, Malcolm This email and any attachments are confidential and may also be privileged. If you are not the addressee, do not disclose, copy, circulate or in any other way use or rely on the information contained in this email or any attachments. If received in error, notify the sender immediately and delete this email and any attachments from your system. Emails cannot be guaranteed to be secure or error free as the message and any attachments could be intercepted, corrupted, lost, delayed, incomplete or amended. Standard Chartered PLC and its subsidiaries do not accept liability for damage caused by this email or any attachments and may monitor email traffic. Standard Chartered PLC is incorporated in England with limited liability under company number 966425 and has its registered office at 1 Aldermanbury Square, London, EC2V 7SB. Standard Chartered Bank ("SCB") is incorporated in England with limited liability by Royal Charter 1853, under reference ZC18. The Principal Office of SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the United Kingdom, SCB is authorised and regulated by the Financial Services Authority under FSA register number 114276. If you are receiving this email from SCB outside the UK, please click http://www.standardchartered.com/global/email_disclaimer.html to refer to the information on other jurisdictions. ------------------------------------------------------------------------------ _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel