[xml/sgml-pkgs] Bug#590934: libxml2: Segmentation fault, when compiling with -static
Christoph Junghans
junghans at votca.org
Fri Jul 30 09:53:17 UTC 2010
Package: libxml2
Version: 2.6.32.dfsg-5+lenny1
I know static compiling is bad, but from time to time you need it.
Here is the simplest case I can imagine:
$ cat main.c
#include <libxml/parser.h>
int main(int argc, char **argv) {
xmlInitParser();
}
$ gcc -static main.c `xml2-config --libs --cflags` -pthread -lz -lm
$ ./a.out
Segmentation fault
This is a problem with weak symbols in threads.c
A patch can be found here:
https://bugzilla.gnome.org/show_bug.cgi?id=609926
but upstream refused to merge it.
More information about the debian-xml-sgml-pkgs
mailing list