Hi, A couple of hours ago I posted here about a problem with php and sablotron. I have solved the problem, but I am posting here my (may be a bit dirty) solution - someone may save a couple of long hours. The problem was that php-4.4.2, for no obvious reason, does not detect that sablotron is properly compied with encoding. The result is that xslt_set_enconding() wrapper function is not compiled in php. This detections is made at configure time: php checks if two code sniplets containing SablotSetEncoding and SablotGetOptions can be compiled and linked against libsablot. If php finds one of the functions it defines in php_config.h HAVE_SABLOT_SET_CONFIG and HAVE_SABLOT_GET_OPTIONS macros respectively.
I have verified carefully that sablotron has his SablotSetEncoding and SablotGetOptions compiled in, existing as symbols in libsablot.so and usable. So the next time I tried to emerged php I started it with: CPPFLAGS="-DHAVE_SABLOT_SET_ENCODING=1 -DHAVE_SABLOT_GET_OPTIONS=1" \ emerge php The configure script did not detect the functions properly again, but the compiler was forsed to compile xslt_set_encoding() and xslt_get_options() php functions. I confess that this solution is far from being clean, but still it works and may do a good job as a workarround, especially when your vacation has already started. -- gentoo-user@gentoo.org mailing list