Re: [ooc-compiler] make error after libxml2 update on FC1
Brought to you by:
mva
|
From: Stewart G. <sgr...@ii...> - 2004-09-01 01:52:12
|
Hi, I've also had this problem under FC1. It seems to ship with a broken xsltproc. At least, for some files generated by OOC xsltproc will segfault. I think the bug is in libxml. You can verify this using gdb (see below). I was unable to fix this problem, even after reinstalling the libraries from source. One workaround is to disable xsltproc. From memory, you can do this by setting: XSLTPROC=no before you run configure. Actually, I think this issue needs a statement in the installation documentation. Without an XSLT processor, oo2c will not generate documentation for the included modules. If the XSLT processor is there but is broken, it needs to be disabled before oo2c will build. Cheers, Stewart % gdb /usr/bin/xsltproc GNU gdb Red Hat Linux (5.3.90-0.20030710.41rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... (no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run -o oocdoc/html/X11/X11.html /usr/project/stewartg/local/lib/oo2c/rsrc/OOC/xml/interface- description.xsl oocdoc/xml/X11/X11.xml Starting program: /usr/bin/xsltproc -o oocdoc/html/X11/X11.html /usr/project/stewartg/local/lib/oo2c/rsrc/OOC/xml/interface- description.xsl oocdoc/xml/X11/X11.xml [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 9372)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 9372)] 0x44d6f582 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 (gdb) backtrace #0 0x44d6f582 in pthread_mutex_lock () from /lib/i686/libpthread.so.0 #1 0x44b3db3d in free () from /lib/i686/libc.so.6 #2 0x45997c4c in xmlFreeNodeList () from /usr/lib/libxml2.so.2 #3 0x45997b80 in xmlFreeNodeList () from /usr/lib/libxml2.so.2 #4 0x45997b80 in xmlFreeNodeList () from /usr/lib/libxml2.so.2 #5 0x4599544d in xmlFreeDoc () from /usr/lib/libxml2.so.2 #6 0x001233a8 in xsltFreeStylesheet (sheet=0x80581a8) at xslt.c:484 #7 0x08049f92 in main () (gdb) > After I updated libxml2 package on Fedora Core 1, I could not make and > install oo2c_32-2.1.4. > However, with the previous versions of libxml2 and oo2c everyting was > fine. > > The libxml2 packages were updated to: > libxml2-2.6.6-3.i386.rpm > libxml2-devel-2.6.6-3.i386.rpm > libxml2-python-2.6.6-3.i386.rpm > > $ ./configure : gives no error. > $ make : gives the following error at the end. > > Thanks for any help, > > Necati. > > > ***** Make error *** > .... > /Builder/ParserProtocol.o lib/obj/XML/UnicodeCodec/UTF8.o > lib/obj/XML/EntityResolver.o lib/obj/XML/Builder/Namespaces.o > lib/obj/XML/Regexp.o lib/obj/XML/UnicodeCodec/UTF16.o > lib/obj/XML/Parser.o lib/obj/XML/Builder/Validation.o > lib/obj/XML/UnicodeCodec/ASCII.o lib/obj/XML/UnicodeCodec/Latin1.o > lib/obj/XML/UnicodeCodec/ImportAll.o lib/obj/XML/Basic/Element.o > lib/obj/XML/Basic/Parser.o lib/obj/XML/Basic/DataType.o > lib/obj/libxml.o lib/obj/Codec.o lib/obj/Codec/Ascii.o > lib/obj/Codec/Latin1.o lib/obj/liboo2c.o > ranlib lib/obj/.libs/liboo2c.a > creating lib/obj/liboo2c.la > (cd lib/obj/.libs && rm -f liboo2c.la && ln -s ../liboo2c.la > liboo2c.la) > + lib/oocdoc/xml/RT0.xml > /usr/bin/xsltproc -o lib/oocdoc/html/RT0.html > /home/necati/oo2c_32-2.1.4/rsrc/OOC/xml/interface-description.xsl > lib/oocdoc/xml/RT0.xml > make: *** [lib/obj/liboo2c.la] Error 1 > > ****************** > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > ooc-compiler mailing list > ooc...@li... > https://lists.sourceforge.net/lists/listinfo/ooc-compiler > |