|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-03-07 16:30 UTC] bigredlinux at yahoo dot com
php: relocation error: /usr/lib/php4/domxml.so: undefined symbol: xsltParseStylesheet*
I downloaded the snapshot and did the following
./configure --with-dom=shared --with-dom-xslt --with-dom-exslt
(I had libxslt and libxslt-devel 1.0.12 and the corresponding libxml2)
Then I copied the domxml.so to my extensions and tried to use one of the domxml_xslt_stylesheet_* functions and received the above error. I had previously build the module just after the libxslt functions were added (around CVS version 1.102) and it worked fine.
In addition to this error, the following lines from the C file cause the module not to load when left in the source code.
Line 1236:
xmlSetGenericErrorFunc(xmlGenericErrorContext, (xmlGenericErrorFunc)domxml_error);
if HAVE_DOMXSLT
xsltSetGenericErrorFunc(xsltGenericErrorContext, (xmlGenericErrorFunc)domxml_error);
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 18:00:01 2025 UTC |
Here is some information to help the developers understand this bug. <?php if (!function_exists('xmldoc')) { dl('domxml.so'); } /** Test run of libxslt php functions **/ $xsl = '<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:copy-of select="*"/> </xsl:template> </xsl:stylesheet>'; $xml = '<doc><node/></doc>'; $xmlObj = xmldoc($xml); $xslObj = domxml_xslt_stylesheet($xsl); $output = $xslObj->process($xmlObj,array()); echo $output->dump_mem(); /** Error I receive: <br> <b>Warning</b>: Unable to load dynamic library '/usr/lib/php4/domxml.so' - /usr/lib/php4/domxml.so: undefined symbol: xsltGenericErrorContext in <b>/home/dallen/testing/xsl/sample.php</b> on line <b>2</b><br> xsltproc -V Using libxml 20416, libxslt 10012 and libexslt 704 xsltproc was compiled against libxml 20416, libxslt 10012 and libexslt 704 libxslt 10012 was compiled against libxml 20415libexslt 704 was compiled against libxml 20415 **/ ?>