Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2007 22:51:04 +0100
From:      "Markus Hoenicka" <markus.hoenicka@mhoenicka.de>
To:        "Heiko Wundram (Beenic)" <wundram@beenic.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: threading and dlopen()
Message-ID:  <18280.16584.560947.243192@yeti.mininet>
In-Reply-To: <200712182220.43401.wundram@beenic.net>
References:  <18280.11993.211065.843394@yeti.mininet> <200712182220.43401.wundram@beenic.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Heiko Wundram (Beenic) writes:
 > Have you tried compiling your program with
 > 
 > gcc -fpic -pthread ...
 > 
 > ? I don't have any more insight into this problem, at least as I'm not using 
 > dbi and as such am not able to reproduce it, but I'd guess that if your 
 > program doesn't conform to the platform's required thread semantics (which 
 > are turned on by -fpic -pthread) but uses code that does require this, you're 

Thanks for the hint, but that didn't help. I've changed the appropriate
acinclude.m4, Makefile.am, and configure.in files of both libdbi and
libdbi-drivers to make sure that:

- libdbi.so (the lib that dlopen()s the drivers) is built with -fpic -pthread
- libdbifirebird.so (the firebird driver) is built with -fpic -pthread
- test_dbi (linked against libdbi.so) is built with -fpic -pthread

Still no luck, and the test app crashes at the very same point. Any
other suggestions?

regards,
Markus

-- 
Markus Hoenicka
markus.hoenicka@cats.de
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18280.16584.560947.243192>