Bug 862 - [Chameleon-HelpViewer]xslt_set_encoding() cannot be found
: [Chameleon-HelpViewer]xslt_set_encoding() cannot be found
Status: RESOLVED INVALID
: Chameleon
Core
: 1.99
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-11-21 15:22 by
Modified: 2005-01-11 08:04 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-11-21 15:22:26
Background info:

I tried to make the HelpViewer works on Linux but there is a problem when
creating the xslt module.

Problem:

The configure program cannot find the SablotSetEncoding function.  But I checked
with a grep "SablotSetEncoding *" command in /usr/local/lib directory and I can
see that this function is present in the library.  

Now I let the professionals play.

Steps that I followed in my attempts:

1.  Installed the iconv library "libiconv-1.9.1" with the following commands:

  ./configure
  make
  sudo make install

2.  Installed sablot library "Sablot-1.0.1" with the following commands:

  ./configure --with-xslt-sablot=/usr/local --with-expat-dir=/usr
--with-iconv-dir=/usr/local

  make
  sudo make install

3.  Created the xslt module with the following commands:

  /usr/local/php439/bin/phpize in ext/xslt
  
  ./configure --enable-xslt  --with-xslt-sablot=/usr/local --with-expat-dir=/usr
--with-iconv-dir=/usr/local --with-php-config=/usr/local/php439/bin/php-config
--with-zlib-dir=/usr/local/include

  make
  cp ext/xslt/modules/xslt.so /usr/local/php439/lib/php/extensions/php_xslt.so

Note:  I used the expat that comes with Fedora Core 2 "expat-devel-1.95.7-1.1",
"expat-1.95.7-1.1".


Fedora Core 2
Chameleon CVS 20041117
---------------------
Error:

Fatal error: Call to undefined function: xslt_set_encoding() in
/home/nsavard/proj/chameleon_cvs/htdocs/help/details.phtml on line 77

------------
xslt configure output:

checking for SablotSetEncoding in -lsablot... no
------- Comment #1 From 2004-11-22 10:36:13 -------
Assign to bill
------- Comment #2 From 2004-11-25 21:50:04 -------
I have no good ideas to add to this unfortunately.  This highlights the
requirement for the helpviewer to be distributed with a pre-generated HTML
version of the documents.
------- Comment #3 From 2005-01-11 08:04:51 -------
Guillaume solved this for me with FGS.  In order for the set_encoding function
to be available to PHP, it has to be available in Sablotron.  From all the
documentation, this was supposed to happen if you built Sablotron with libiconv
support, but I think the problems happened because of linking to libstdc++ (or
not, as the case may be).  Please follow up with Guillaume on this.  Marking as
invalid because this is not a Chameleon bug.