[MacPorts] #16780: gtk2hs 0.9.13 fails to build

MacPorts noreply at macports.org
Thu Oct 16 12:19:29 PDT 2008


#16780: gtk2hs 0.9.13 fails to build
-----------------------------+----------------------------------------------
  Reporter:  gale at sefer.org  |       Owner:  gwright at macports.org
      Type:  defect          |      Status:  new                 
  Priority:  Normal          |   Milestone:  Port Bugs           
 Component:  ports           |     Version:  1.6.0               
Resolution:                  |    Keywords:                      
      Port:  gtk2hs          |  
-----------------------------+----------------------------------------------

Comment(by n.mayr at icp-beratung.de):

 I "solved" the problem as follows:

 Edit the file
 "/opt/local/var/macports/portdirs/gtk2hs-0.9.13/svgcairo/Graphics/Rendering/Cairo/SVG.chs"
 [[BR]]svgRender :: SVG -> Render ()
 [[BR]]svgRender svg = do
 [[BR]]  cr <- ask
 [[BR]]  liftIO $ {# call unsafe render_cairo #} svg cr

 svgRender :: SVG -> Render ()
 [[BR]]svgRender svg = do
 [[BR]]  cr <- ask
 [[BR]]  liftIO $ {# call unsafe render_cairo #} svg cr
 [[BR]]  return ()

 I am not shure if there are any negative consequences. The positive ones
 are:
 [[BR]]- the package compiles
 [[BR]]- demo programs work (at least the ones I tested)

 Also I had a second problem after I got this package to compile:
 [[BR]]My program uses glade and the appropriate library did non load:
 [[BR]]Loading package array-0.1.0.0 ... linking ... done.
 [[BR]]Loading package bytestring-0.9.0.1.1 ... linking ... done.
 [[BR]]Loading package mtl-1.1.0.1 ... linking ... done.
 [[BR]]Loading package glib-0.9.13 ... linking ... done.
 [[BR]]Loading package cairo-0.9.13 ... linking ... done.
 [[BR]]Loading package containers-0.1.0.2 ... linking ... done.
 [[BR]]Loading package gtk-0.9.13 ... linking ... done.
 [[BR]]Loading package glade-0.9.13 ... can't load .so/.DLL for: glade-2.0
 (dlopen(libglade-2.0.dylib, 10): image not found)

 Solution: Edit "/opt/local/lib/ghc-6.8.3/package.conf"
 [[BR]]The entry for 'pkgName = "glade"'
 [[BR]]Put 'libraryDirs = ["/opt/local/lib/gtk2hs", "/opt/local/lib"]' in
 there
 [[BR]]/opt/local/lib is probably not a good directory for the libglade.
 but for the moment this fixes the problem.

-- 
Ticket URL: <http://trac.macports.org/ticket/16780#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list