Ticket #1175 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

broken on Mac OS X

Reported by: guest Owned by: somebody
Priority: blocker Milestone: 0.11.0
Component: general (Gtk+, Glib) Version: 0.10.1
Keywords: MacOS Cc: jwlato@…

Description

gtk2hs seems to install properly, but fails when trying to actually use it on Mac OS. might be a linking issue, not quite sure.

13:15[1] ~ % ghci -package gtk
GHCi, version 6.10.1: http://www.haskell.org/ghc/  :? for help
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.
Loading package cairo-0.10.1 ... linking ... done.
Loading package syb ... linking ... done.
Loading package array-0.2.0.0 ... linking ... done.
Loading package containers-0.2.0.0 ... linking ... done.
Loading package gtk-0.10.1 ... <command line>: can't load .so/.DLL for: gthread-2.0 (dlopen(libgthread-2.0.dylib, 9): image not found)
13:59 ~ % ls -al /opt/local/lib/libgthread*         
-rwxr-xr-x  2 root  admin  24568 27 Sep 17:16 /opt/local/lib/libgthread-2.0.0.dylib
-rw-r--r--  2 root  admin  15912 27 Sep 17:16 /opt/local/lib/libgthread-2.0.a
lrwxr-xr-x  1 root  admin     22 27 Sep 17:17 /opt/local/lib/libgthread-2.0.dylib -> libgthread-2.0.0.dylib
-rwxr-xr-x  2 root  admin   1099 27 Sep 17:16 /opt/local/lib/libgthread-2.0.la

Change History

Changed 5 years ago by guest

  • priority changed from normal to blocker

Extra info:

$ /usr/bin/file /opt/local/lib/libgthread-2.0.dylib /opt/local/lib/libgthread-2.0.dylib: Mach-O universal binary with 2 architectures /opt/local/lib/libgthread-2.0.dylib (for architecture i386): Mach-O dynamically linked shared library i386 /opt/local/lib/libgthread-2.0.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64

Changed 5 years ago by guest

/usr/bin/file /opt/local/lib/libgthread-2.0.dylib 
/opt/local/lib/libgthread-2.0.dylib: Mach-O universal binary with 2 architectures
/opt/local/lib/libgthread-2.0.dylib (for architecture i386):	Mach-O dynamically linked shared library i386
/opt/local/lib/libgthread-2.0.dylib (for architecture x86_64):	Mach-O 64-bit dynamically linked shared library x86_64

-- wikiformatted output correctly - Axman6

Changed 5 years ago by guest

I believe this is the same problem as discussed in the comments on http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/. That is, the location of libgthread is not included in the package.conf. Adding it to package.conf manually fixes this for me (OSX 10.5, gtk-0.10.1, self compiled).

Changed 5 years ago by guest

  • cc jwlato@… added

Changed 5 years ago by axel

  • status changed from new to closed
  • resolution set to fixed

This works for me for version 0.11.0, so closing.

Note: See TracTickets for help on using tickets.