This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ 4.1.1 and static linking - SEGV -- SUMMARY
- From: Thomas Aeby <aeby at graeff dot com>
- To: Java GCJ Mailing List <java at gcc dot gnu dot org>
- Cc: David Daney <ddaney at avtrex dot com>
- Date: Thu, 17 Aug 2006 13:56:02 +0200
- Subject: Re: GCJ 4.1.1 and static linking - SEGV -- SUMMARY
- References: <1155741448.7153.372.camel@localhost>
On Wed, 2006-08-16 at 17:17 +0200, Thomas Aeby wrote:
> gcj -g -static --main=test -Wl,--whole-archive -lnss_files_p -lnss_dns_p -lresolv -lpthread -ldl -Wl,--no-whole-archive test.java
> # ./a.out
> Segmentation fault
I have tracked this down to the Boehm-GC trying to find the
pthread_create() function via dlvsym() which of course does not return
a pointer to pthread_create() if libpthread is linked statically - and
makes Boehm-GC crash.
A more detailed description with a workaround has been filed as a bug
report:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28760
Best regards and many thanks for your help,
Tom
--
----------------------------------------------------------------------------
Thomas Aeby, Kirchweg 52, 1735 Giffers, Switzerland, Tel: (+41)264180040
Internet: aeby@graeff.com PGP public key available
----------------------------------------------------------------------------