<?xml version="1.0" encoding="utf-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Getting started with Cairo</title>
	<link>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/</link>
	<description>A GUI Library for Haskell based on Gtk</description>
	<pubDate>Mon,  8 Sep 2008 06:06:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>

	<item>
		<title>by: pepe</title>
		<link>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10968</link>
		<pubDate>Sat, 19 May 2007 16:21:36 +0000</pubDate>
		<guid>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10968</guid>
					<description>Hi alex 

This is great. Adding /opt/local/lib by hand to package.conf did it.  I didn't see the problems that you report, perhaps you didn't launch ghci with "-L/opt/local/lib"? 

Don't forget to include this change in the next release!</description>
		<content:encoded><![CDATA[<p>Hi alex </p>
<p>This is great. Adding /opt/local/lib by hand to package.conf did it.  I didn&#8217;t see the problems that you report, perhaps you didn&#8217;t launch ghci with &#8220;-L/opt/local/lib&#8221;? </p>
<p>Don&#8217;t forget to include this change in the next release!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Axel</title>
		<link>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10856</link>
		<pubDate>Sun, 13 May 2007 13:29:49 +0000</pubDate>
		<guid>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10856</guid>
					<description>Hi Pepe,

yes, I can reproduce this. The reason seems to be that we don't include /opt/local/lib in the package file. Fixing that by hand, I now get a segmentation fault after calling "main" in ghci. GDB says:

linking ... done.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x83f87795
[Switching to process 16916 thread 0x1f03]
0x90002fe0 in strcmp ()
(gdb) bt
#0  0x90002fe0 in strcmp ()
#1  0x00fa5aa1 in FcPatternPosition ()
Cannot access memory at address 0x3

I don't know if we're at fault here or ghc. The program I tested this with compiles and runs with no problems (even without adding the /opt/local/lib path to the package.conf file). The function names suggest that some arguments passed to Gtk are incorrect. Any thoughts, Duncan?</description>
		<content:encoded><![CDATA[<p>Hi Pepe,</p>
<p>yes, I can reproduce this. The reason seems to be that we don&#8217;t include /opt/local/lib in the package file. Fixing that by hand, I now get a segmentation fault after calling &#8220;main&#8221; in ghci. GDB says:</p>
<p>linking &#8230; done.</p>
<p>Program received signal EXC_BAD_ACCESS, Could not access memory.<br />
Reason: KERN_INVALID_ADDRESS at address: 0&#215;83f87795<br />
[Switching to process 16916 thread 0&#215;1f03]<br />
0&#215;90002fe0 in strcmp ()<br />
(gdb) bt<br />
#0  0&#215;90002fe0 in strcmp ()<br />
#1  0&#215;00fa5aa1 in FcPatternPosition ()<br />
Cannot access memory at address 0&#215;3</p>
<p>I don&#8217;t know if we&#8217;re at fault here or ghc. The program I tested this with compiles and runs with no problems (even without adding the /opt/local/lib path to the package.conf file). The function names suggest that some arguments passed to Gtk are incorrect. Any thoughts, Duncan?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: pepe</title>
		<link>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10849</link>
		<pubDate>Sat, 12 May 2007 19:21:31 +0000</pubDate>
		<guid>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10849</guid>
					<description>Hi Duncan &#38; Adam

I also have the libgthread problem here. Os X Intel with a hand built version of Gtk2hs and a hand built GHC 6.7. GTK installed via MacPorts

The file libgthread-2.0.dylib is found at /opt/local/lib, and I launched ghci with "-L/opt/local/lib" to make sure it can find it, but still the same.</description>
		<content:encoded><![CDATA[<p>Hi Duncan &amp; Adam</p>
<p>I also have the libgthread problem here. Os X Intel with a hand built version of Gtk2hs and a hand built GHC 6.7. GTK installed via MacPorts</p>
<p>The file libgthread-2.0.dylib is found at /opt/local/lib, and I launched ghci with &#8220;-L/opt/local/lib&#8221; to make sure it can find it, but still the same.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Duncan</title>
		<link>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10766</link>
		<pubDate>Mon, 07 May 2007 16:34:42 +0000</pubDate>
		<guid>http://haskell.org/gtk2hs/archives/2005/11/10/getting-started-with-cairo/#comment-10766</guid>
					<description>Hi Adam. This sounds like a problem with the port file, try taking this up with the maintainer of the gtk2hs or glib package in Mac Ports. It looks like you are missing the gthread component of glib, or it is somehow mis-configured.</description>
		<content:encoded><![CDATA[<p>Hi Adam. This sounds like a problem with the port file, try taking this up with the maintainer of the gtk2hs or glib package in Mac Ports. It looks like you are missing the gthread component of glib, or it is somehow mis-configured.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
