That's ok, I have solved the name clash and C test program works like charm now. 

But what about Haskell Media.Streaming.GStreamer code?

On Mon, Jun 18, 2012 at 5:58 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
On Mon, Jun 18, 2012 at 7:02 AM, Milan Marković <zivotinja@gmail.com> wrote:
Actually, segfault was due to name clash.
When I rename connect to connect_foo it works as expected. http://hpaste.org/70111
So the bug is probably in gtk2hs.

The bug is that connect() is a name used by the sockets API; XOpenDIsplay() is trying to use it to connect to the X11 server socket.  ("man 3 connect")

--
brandon s allbery                                      allbery.b@gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms