17 Apr 05:02
Ocaml and pthread_atfork()
Hi All, Firstly I apologize if this is noise. I elected to not file a bugzilla as the problem seems to be powerpc specific and with the limited resources for Fedora developers it would seem unfair. I was recently trying to build a "current" libguestfs from the f16 branch[1]. During the build I hit: (extracted from rpmbuild) [tony <at> sneetch ~]$ bash -x tmp/ocaml-test.sh + cd rpmbuild/BUILD/libguestfs-1.16.9/ocaml/ + LD_LIBRARY_PATH=../src/.libs + ocamlfind ocamlc -g -warn-error CDEFLMPSUVYZX -I . -package unix,threads -thread -linkpkg mlguestfs.cma t/guestfs_070_threads.cmo -o t/guestfs_070_threads.bc File "_none_", line 1, characters 0-1: Error: Error on dynamically loaded library: /usr/lib64/ocaml/stublibs/dllthreads.so: /usr/lib64/ocaml/stublibs/dllthreads.so: undefined symbol: pthread_atfork I did a quick bit of googling and found: http://ryanarn.blogspot.com.au/2011/07/curious-case-of-pthreadatfork-on.html which seems to explain what's going on to my naive eye anyway. I've tried a few different CFLAGS/patches to otherlibs/systhreads/Makefile to try and induce pthreads_atfork() to be resolved and linked during the ocaml build. Nothing I try works. Does anyone have any ideas on how to solve this?(Continue reading)
RSS Feed