diff -Naur a/parser.c b/parser.c
--- a/parser.c	2013-11-19 10:19:26.000000000 +0530
+++ b/parser.c	2013-11-19 10:21:51.000000000 +0530
@@ -14687,6 +14687,7 @@
  * use in multithreaded programs.
  */
 
+__attribute__((constructor))
 void
 xmlInitParser(void) {
     if (xmlParserInitialized != 0)
