php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15942 undefined symbol: xsltParseStylesheet*
Submitted: 2002-03-07 16:30 UTC Modified: 2002-04-09 00:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: bigredlinux at yahoo dot com Assigned:
Status: No Feedback Package: XSLT related
PHP Version: HEAD OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bigredlinux at yahoo dot com
New email:
PHP Version: OS:

 

 [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);


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-07 16:31 UTC] bigredlinux at yahoo dot com
Important to note here that all the other domxml functions worked, it was just the xslt functions that had trouble.  Of course when the module couldn't load, nothing worked.
 [2002-03-08 13:58 UTC] jtate@php.net
When did you update the libxslt stuff?  I've just modified the configure script for domxml.  Please get the latest CVS version and retry.  The fix I did may have fixed the problem.
 [2002-03-08 15:14 UTC] bigredlinux at yahoo dot com
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
**/
?>
 [2002-03-08 15:15 UTC] bigredlinux at yahoo dot com
By the way, that was with the latest CVS version.
 [2002-04-09 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 17:01:31 2024 UTC