On Mon, 2009-11-16 at 23:26 +0800, Andy Stewart wrote:
> Hi Axel,
> 
> Andy Stewart <lazycat.mana...@gmail.com> writes:
> 
> >>> ------------------------------> 2 error start 
> >>> <------------------------------
> >>> Loading package ghc-prim ... linking ... done.
> >>> Loading package integer ... linking ... done.
> >>> Loading package base ... linking ... done.
> >>> Loading package mtl-1.1.0.2 ... linking ... done.
> >>> Loading package glib-0.10.1 ... linking ... done.
> >>> Loading package bytestring-0.9.1.4 ... linking ... done.
> >>> ghc: /usr/local/lib/gtk2hs/HScairo.o: unknown symbol
> >>> arrayzm0zi2zi0zi0_DataziArrayziBase_zddmunsafeNewArrayzu_closure'
> >>> Loading package cairo-0.10.1 ... linking ... ghc: unable to load package 
> >>> `cairo-0.10.1'
> >>> ------------------------------> 2 error end   
> >>> <------------------------------
> >>> 
> >>> You forgot add something in Makefile.am ?
> >>
> >> I think 'make clean' or 'make distclean' will help here.
> > I have run `runhaskell Setup clean` before i recompile my project.
> > But i still got above problem.

Ups, sorry. I mean 'make clean' followed by 'make'. If you've updated
the Makefile but the Vte.chs.pp file has not changed, it is not going to
be rebuilt and thus the _stub file is not going to be linked into the
libHSvte library.

Can you try this first?

> > We got similar problem when we binding VTE library.
> > ghc: /usr/local/lib/gtk2hs/HSvte.o: unknown symbol 
> > `GraphicsziUIziGtkziVteziVte_d4Hk'
> > Loading package vte-0.10.1 ... linking ... ghc: unable to load package 
> > `vte-0.10.1'
> >
> > You told me:
> >
> >        Ah, this could be because there's a dynamic call back in Vte.chs.pp 
> > and
> >        the Makefile doesn't contain the stub.o file that is being generated 
> > for
> >        that. Add the following lines to Makefile.am :
> >        
> >        libHSvte_a_LIBADD  =                           \
> >               vte/Graphics/UI/Gtk/Vte/Vte_stub.o

These lines are in the darcs repro. At least my Makefile.am has it and
it is up-to-date.

> > So we have same problem with HScairo.o ?

There are no calls from C to Haskell in Cairo AFAIK. Thus, there is no
_stub file that has to be linked in.

> Haven't you got same problem?
> I'm sure i have re-download newest version code and `make` again.

As I said above, do a 'make clean' first.

Cheers,
Axel.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to