Axel Simon <axel.si...@in.tum.de> writes:

> On Apr 3, 2010, at 18:28, Andy Stewart wrote:
>
>> Axel Simon <axel.si...@in.tum.de> writes:
>>
>>> Hi Andy,
>>>
>>> On Apr 3, 2010, at 15:51, Andy Stewart wrote:
>>>
>>>> Hi all,
>>>>
>>>> Some Gtk+ functions need GIcon in GIO (gio/System/GIO/Types.chs)
>>>>
>>>> And i found in Makefile.am just have `gtk` in `libHSgtk_a_INTERNALDEPS`
>>>> So i add `gio` in it:
>>>>    libHSgtk_a_INTERNALDEPS         = glib gio
>>>>
>>>> And `make` new code is okay, but when i run `ghci -package gtk`, i got
>>>> below error:
>>>>
>>>> ------------------------------> error start <------------------------------
>>>> GHCi, version 6.12.1: http://www.haskell.org/ghc/  :? for help
>>>> Loading package ghc-prim ... linking ... done.
>>>> Loading package integer-gmp ... 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.5 ... linking ... done.
>>>> Loading package array-0.3.0.0 ... linking ... done.
>>>> Loading package cairo-0.10.1 ... linking ... done.
>>>> Loading package containers-0.3.0.0 ... linking ... done.
>>>> ghc: /usr/local/lib/gtk2hs/HSgtk.o: unknown symbol
>>>> giozm0zi10zi1_SystemziGIOziTypes_zdfGObjectClassIcon_closure'
>>>> Loading package gtk-0.10.1 ... linking ... ghc: unable to load package 
>>>> `gtk-0.10.1'
>>>> ------------------------------> error end   <------------------------------
>>>>
>>>> I'm sure i have add all _stub.o files in Makefile.am
>>>> And above error looks like something wrong when link HSgtk.o ....
>>>> Just add `gio` in `libHSgtk_a_INTERNALDEPS` is not enough?
>>>
>>> It looks like you have not built and installed the most recent changes to 
>>> the gtk package.
>> I have did `make clean` before `make` again.
>> But still have above error.
>
> I wanted to ask if you did a 'cabal install' after you remade the gtk 
> package. It looks like you
> have not installed the latest version of  the gtk package. It might be that 
> you're still missing
> some object  files (maybe some _stub.o files?).
I haven't install your cabal package.
I still use darcs repository install all package.
What's different your gtk cabal package with darcs repository? 

_stub.o, i have check, not missing, neither gtk and gio

I run "zDecodeString
"giozm0zi10zi1_SystemziGIOziTypes_zdfGObjectClassIcon_closure", get
below result:

"gio-0.10.1_System.GIO.Types_$fGObjectClassIcon_closure"

Looks something wrong with gio, I import `Icon and IconClass` in gtk,
but i don't understand above symbol, i have search it, haven't found
that symbol.

Andy idea?

  -- Andy

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Gtk2hs-devel mailing list
Gtk2hs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to