Hello,

When I build gtk2hs, I am getting linker errors...
$GHC_DEV/bin/ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.11.20081118

$GHC_DEV/bin/ghc-pkg list
/home/donnie/UK/masters/thesis/parallel_profiling_ghc/ghc_dev/lib/ghc-6.11.20081118/./package.conf:
Cabal-1.5.5, array-0.2.0.0, base-3.0.3.0, base-4.0.0.0,
binary-0.4.4, bytestring-0.9.1.4, cairo-0.9.13, containers-0.2.0.0,
directory-1.0.0.2, ffi-1.0, filepath-1.1.0.1, (ghc-6.11.20081118),
ghc-prim-0.1.0.0, glade-0.9.13, glib-0.9.13, gtk-0.9.13,
gtkglext-0.9.13, haddock-2.3.0, haskell98-1.0.1.0, hpc-0.5.0.2,
integer-0.1.0.0, mtl-1.1.0.2, old-locale-1.0.0.1, old-time-1.0.0.1,
packedstring-0.1.0.1, parallel-1.1.0.0, pretty-1.0.1.0,
process-1.0.1.1, random-1.0.0.1, rts-1.0, soegtk-0.9.13,
svgcairo-0.9.13, syb-0.1.0.0, template-haskell-2.3.0.0,
time-1.1.2.2, unix-2.3.1.0

-- Excerpt from config.log for gtk2hs, I can send the entire config.log if you want.
configure:5299: checking for GLIB
configure:5307: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0 gobject-2.0 >= 2.0.0"
configure:5310: $? = 0
configure:5325: $PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.0.0 gobject-2.0 >= 2.0.0"
configure:5328: $? = 0
configure:5424: result: yes
configure:5464: checking for GTK
configure:5472: $PKG_CONFIG --exists --print-errors "pango >= 1.0.0 gdk-2.0 >= 2.0.0 gdk-pixbuf-2.0 >= 0.12.0 gtk+-2.0 >= 2.0.0 gthread-2.0 >= 2.0.0"
configure:5475: $? = 0
configure:5490: $PKG_CONFIG --exists --print-errors "pango >= 1.0.0 gdk-2.0 >= 2.0.0 gdk-pixbuf-2.0 >= 0.12.0 gtk+-2.0 >= 2.0.0 gthread-2.0 >= 2.0.0"
configure:5493: $? = 0
configure:5653: result: yes
configure:5658: checking whether to build gtk package
configure:5660: result: yes

-- Window.hs
import Graphics.UI.Gtk

main :: IO ()
main = do
initGUI
window <- windowNew
widgetShowAll window
mainGUI

-- GHC build of Window.hs, Linker errors.
$GHC_DEV/bin/ghc --make Window.hs -o Window.exe
[1 of 1] Compiling Main ( Window.hs, Window.o )
Linking Window.exe ...
Window.o: In function `r2Py_info':
(.text+0x46): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziAbstractziWidget_widgetShowAll_closure'
Window.o: In function `r2Py_info':
(.text+0x4d): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziTypes_zdf548_closure'
Window.o: In function `s2PH_info':
(.text+0xc7): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziGeneralziGeneral_mainGUI_closure'
Window.o: In function `s2PJ_info':
(.text+0x149): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziWindowsziWindow_windowNew_closure'
Window.o: In function `s2PJ_info':
(.text+0x1bf): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziGeneralziGeneral_initGUI_closure'
Window.o: In function `s2PJ_info':
(.text+0x261): undefined reference to `__stginit_gtkzm0zi9zi13_GraphicsziUIziGtk_'
Window.o: In function `r2Py_srt':
(.data+0x0): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziAbstractziWidget_widgetShowAll_closure'
Window.o: In function `r2Py_srt':
(.data+0x4): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziTypes_zdf548_closure'
Window.o: In function `s2PJ_srt':
(.data+0x18): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziGeneralziGeneral_mainGUI_closure'
Window.o: In function `s2PJ_srt':
(.data+0x1c): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziWindowsziWindow_windowNew_closure'
Window.o: In function `Main_main_srt':
(.data+0x38): undefined reference to `gtkzm0zi9zi13_GraphicsziUIziGtkziGeneralziGeneral_initGUI_closure'
collect2: ld returned 1 exit status
-- Installed Debian packages
ii  libgtk2.0-dev                        2.12.11-4                            Development files for the GTK+ library
ii  libglib2.0-dev                       2.16.6-1                             Development files for the GLib library

Any help would be greatly appreciated.
Thank you.
__
Donnie Jones