[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: New version of gtk2hs



Em Dom, 2009-05-10 às 14:28 +0200, Joachim Breitner escreveu:
(...)
> Am Samstag, den 09.05.2009, 17:31 -0300 schrieb Marco Túlio Gontijo e
> Silva:
> > I've made a new version of gtk2hs.  It's available at
> > http://debian.holoscopio.com/gtk2hs .  Joachim, can you upload it
> > please?
(...)
> Unfortunately, the prof packages do not work here. I have them all
> installed, and this works:
> 
> $ cd ./demo/hello
> $ ghc --make World.hs 
> [1 of 1] Compiling Main             ( World.hs, World.o )
> Linking World ...
> 
> but this does not:
> 
> $ ghc -prof --make World.hs
> Linking World ...
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(Gtk.p_o):(.text+0x515): undefined reference to `__stginit_gtkzm0zi10zi0_GraphicsziUIziGtkziModelViewziCellRenderer_p'
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(Gtk.p_o):(.text+0x581): undefined reference to `__stginit_gtkzm0zi10zi0_GraphicsziUIziGtkziModelViewziListStore_p'
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(Box.p_o): In function `s3Sd_info':
> (.text+0x2116): undefined reference to `gtkzm0zi10zi0_GraphicsziUIziGtkziGeneralziEnums_PackNatural_closure'
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(Box.p_o): In function `s3Sd_info':
> (.text+0x2156): undefined reference to `gtkzm0zi10zi0_GraphicsziUIziGtkziGeneralziEnums_PackGrow_closure'
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(Box.p_o): In function `s3Sd_info':
> (.text+0x2164): undefined reference to `gtkzm0zi10zi0_GraphicsziUIziGtkziGeneralziEnums_PackRepel_closure'
> [.. ~600 more such lines ..]
> (.text+0xb81): undefined reference to `gtkzm0zi10zi0_GraphicsziUIziGtkziGeneralziEnums_LeftButton_closure'
> /usr/lib/haskell-packages/ghc6/lib/gtk-0.10.0/libHSgtk_p.a(EventM.p_o): In function `s7eL_info':
> (.text+0xa139): undefined reference to `__stginit_gtkzm0zi10zi0_GraphicsziUIziGtkziGeneralziEnums_p'
> collect2: ld returned 1 exit status
> 
> Can you reproduce that?

Yes.  Sorry, I haven't noticed.  I've tested building an application in
Cabal using --enable-library-profiling instead of
--enable-executable-profiling, and it worked, so I thought it was ok.
Using --enable-executable-profiling or, as you done, using ghc -prof,
gives me this error.

> Any idea what’s wrong?

Not yet.  I'll try to reproduce this with the upstream installation to
see if the problem is in the packaging, and ask in the gtk2hs mailing
list if I can.

Greetings.

-- 
marcot
http://marcot.iaaeee.org/



Reply to: