[MacPorts] #16780: gtk2hs 0.9.13 fails to build
#16780: gtk2hs 0.9.13 fails to build ----------------------------+----------------------------------------------- Reporter: gale@sefer.org | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: gtk2hs ----------------------------+----------------------------------------------- During port upgrade gtk2hs with an up-to-date ports tree, I get: {{{ svgcairo/Graphics/Rendering/Cairo/SVG.chs:201:2: Couldn't match expected type `()' against inferred type `CInt' Expected type: Render () Inferred type: Render CInt In the expression: liftIO $ (\ (SVG arg1) (Cairo arg2) -> withForeignPtr arg1 $ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2) svg cr In the expression: do cr <- ask liftIO $ (\ (SVG arg1) (Cairo arg2) -> withForeignPtr arg1 $ \ argPtr1 -> rsvg_handle_render_cairo argPtr1 arg2) svg cr }}} -- Ticket URL: <http://trac.macports.org/ticket/16780> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16780: gtk2hs 0.9.13 fails to build -----------------------------+---------------------------------------------- Reporter: gale@sefer.org | Owner: gwright@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: gtk2hs | -----------------------------+---------------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => gwright@macports.org -- Ticket URL: <http://trac.macports.org/ticket/16780#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16780: gtk2hs 0.9.13 fails to build -----------------------------+---------------------------------------------- Reporter: gale@sefer.org | Owner: gwright@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@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
#16780: gtk2hs 0.9.13 fails to build ----------------------------+----------------------------------------------- Reporter: gale@… | Owner: gwright@… Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | Port: gtk2hs ----------------------------+----------------------------------------------- Comment(by jbolden1517@…): CC me -- Ticket URL: <http://trac.macports.org/ticket/16780#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#16780: gtk2hs 0.9.13 fails to build -----------------------------+---------------------------------------------- Reporter: gale@… | Owner: gwright@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: gtk2hs | -----------------------------+---------------------------------------------- Changes (by gwright@…): * status: new => closed * resolution: => fixed Comment: This has been fixed for some time. Current gtk2hs is 0.10.1. -- Ticket URL: <http://trac.macports.org/ticket/16780#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts