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 <> wrote:
On Mon, Jun 18, 2012 at 7:02 AM, Milan Marković <> wrote:
Actually, segfault was due to name clash.
When I rename connect to connect_foo it works as expected.
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                            
wandering unix systems administrator (available)     (412) 475-9364 vm/sms