Re: Crash when using the graphviz library

2011-05-23 Thread Ted Unangst
On Thu, May 19, 2011 at 3:30 PM, Reto Schneider wrote: > On 05/19/2011 05:03 PM, Stuart Henderson wrote: >> glib2 is now built with threads enabled so anything directly or indirectly >> pulling this in (in this case via gtk+2) must either also be built with >> threads, >> or must be run with LD_P

Re: Crash when using the graphviz library

2011-05-23 Thread Reto Schneider
On 05/19/2011 09:30 PM, Reto Schneider wrote: > On 05/19/2011 05:03 PM, Stuart Henderson wrote: >> glib2 is now built with threads enabled so anything directly or indirectly >> pulling this in (in this case via gtk+2) must either also be built with >> threads, >> or must be run with LD_PRELOAD=/us

Re: Crash when using the graphviz library

2011-05-19 Thread Reto Schneider
On 05/19/2011 05:03 PM, Stuart Henderson wrote: > glib2 is now built with threads enabled so anything directly or indirectly > pulling this in (in this case via gtk+2) must either also be built with > threads, > or must be run with LD_PRELOAD=/usr/lib/libpthread.so Sorry for my ignorance, but wha

Re: Crash when using the graphviz library

2011-05-19 Thread Stuart Henderson
On 2011-05-19, Bret S. Lambert wrote: >> >> Compile it (like shown in the example Makefile on page 39): >> $ gcc -o sample sample.c `pkg-config --libs --cflags libgvc` > > You need to link it with the pthreads library by passing -lpthread. gcc-local(1) says this should be -pthread >> The workar

Re: Crash when using the graphviz library

2011-05-19 Thread Bret S. Lambert
On Thu, May 19, 2011 at 02:32:39PM +0200, Reto Schneider wrote: > Hi > > I have a fresh installation of openBSD 4.9-release where the sample code of > the graphviz library > fails. It also fails on openBSD 4.8 but works perfectly on > 4.7/Ubuntu/Debian/FreeBSD/etc. > > How to get the error: >

Crash when using the graphviz library

2011-05-19 Thread Reto Schneider
Hi I have a fresh installation of openBSD 4.9-release where the sample code of the graphviz library fails. It also fails on openBSD 4.8 but works perfectly on 4.7/Ubuntu/Debian/FreeBSD/etc. How to get the error: Install graphviz: # export PKG_PATH="http://mirror.switch.ch/ftp/pub/OpenBSD/4.9/