Nothing can link with gtk on Snow Leopard

Mark Spezzano mark.spezzano at chariot.net.au
Thu Nov 11 03:07:32 EST 2010


Hi Axel,

Thanks for the quick reply. 

I have version 2.22.0 of Gtk+

I have version 6.12.3 of ghc

These are the kinds of errors that I get (when attempting to link threadscope and hp2any-manager)

  "_gtk_spin_button_get_value_as_int", referenced from:
      _s3Vj8_info in libHSgtk-0.12.0.a(SpinButton.o)
  "_gtk_separator_tool_item_set_draw", referenced from:
      _s3gNk_info in libHSgtk-0.12.0.a(SeparatorToolItem.o)
      _s3gNk_info in libHSgtk-0.12.0.a(SeparatorToolItem.o)
  "_gtk_print_settings_unset", referenced from:
      _s2MTy_info in libHSgtk-0.12.0.a(PrintSettings.o)
  "_gtk_box_set_spacing", referenced from:
      _s2gu4_info in libHSgtk-0.12.0.a(Box.o)
  "_gtk_window_set_accept_focus", referenced from:
      _s5NwO_info in libHSgtk-0.12.0.a(Window.o)
      _s5NwO_info in libHSgtk-0.12.0.a(Window.o)
  "_gdk_keyval_to_upper", referenced from:
      _s5wVt_info in libHSgtk-0.12.0.a(Keys.o)
  "_gtk_tree_sortable_set_default_sort_func", referenced from:
      _s3qfW_info in libHSgtk-0.12.0.a(TreeSortable.o)
      _s3qfS_info in libHSgtk-0.12.0.a(TreeSortable.o)

Cheers,

Mark

> Mark,
> 
> 
> On 11.11.2010, at 08:27, Mark Spezzano wrote:
> 
>> Hi Axel,
>> 
>> The error "file was build for unsupported file format which is not the architecture being linked (i386)" comes up soon after starting to install gtk via cabal.
>> 
>> gtk is "installed" (at least, it comes up in ghc-pkg as installed) but then when linking threadscope or another gtk-reliant tool it fails during the final linking phase.
>> 
>> It spits out a long list of functions that it can't link to.
>> 
> 
> Before we move this discussion to gtk2hs-devel at lists.sourceforge.net , I'd like to confirm that this is our problem.
> 
> - what version of Gtk+ do you have? (run "pkg-config --modversion gtk+-2.0")
> 
> - are the functions that cannot be linked to part of Gtk+ or of the Haskell gtk package (i.e. send us some of the error messages containing the function names)
> 
> - what ghc are you using ("ghc --version")
> 
> I suspect that the Gtk+ libraries and ghc do not agree on the architecture.
> 
> Cheers,
> Axel
> 
> 
>> Mark
>> 
>> 
>> On 11/11/2010, at 5:40 PM, Axel Simon wrote:
>> 
>>> Hi Mark,
>>> 
>>> On 11.11.2010, at 03:13, Mark Spezzano wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I'm running Mac OS X Snow Leopard. I've done a "sudo cabal install gtk --global" on my system, and it warns me that "file was built for unsupported file format which is not the architecture being linked (i386)". What does this refer to?
>>>> 
>>>> Subsequently, nothing else _links_ properly with gtk.
>>>> 
>>> 
>>> This might be a gtk problem. Does this happen very early or only during linking? Could you check what
>>> 
>>> cabal build -v
>>> 
>>> throws up? (Also: Did you install gtk2hs-buildtools first?)
>>> 
>>> Cheers,
>>> Axel
>>> 
>>>> For example, hp2any-manager (or other tools) all fail during linking with gtk.
>>>> 
>>>> Am I doing something wrong?
>>>> 
>>>> Thanks,
>>>> 
>>>> 
>>>> Mark _______________________________________________
>>>> Libraries mailing list
>>>> Libraries at haskell.org
>>>> http://www.haskell.org/mailman/listinfo/libraries
>>> 
>>> 
>> 
> 
> 



More information about the Libraries mailing list