# [patch] xslt config.m4: no link to stdc++ for Sablot

- Thread: https://externals.io/message/8902
- Original archive: https://news-web.php.net/php.internals/8902
- Started by Justin Hannus on 2004-04-02T19:57:05+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #8902 — Justin Hannus — 2004-04-02T19:57:05+00:00

URL: https://externals.io/message/8902#8902

I'm not sure if this is true for the latest release but I'm working off
php4.3.4, slackware 9.0

 ext/xslt/config.m4 doesn't add -lstdc++ for Sablot (not sure if its used by
other xslt backends) so I get undefined symbols for '__gxx_personality_v0'
and the like. Patch supplied.



-- --- ./ext/xslt/config.m4.old 2004-04-02 14:36:39.000000000 -0500
+++ ./ext/xslt/config.m4 2004-04-02 14:28:46.000000000 -0500
@@ -75,6 +75,7 @@
     AC_MSG_CHECKING([for Sablotron version])
     old_CPPFLAGS=$CPPFLAGS
     CPPFLAGS="$CPPFLAGS -I$XSLT_DIR/include"
+    PHP_ADD_LIBRARY(stdc++,,XSLT_SHARED_LIBADD)
     AC_TRY_RUN([
 #include <stdlib.h>
 #include <sablot.h>
@@ -162,6 +163,5 @@

   PHP_ADD_INCLUDE($XSLT_DIR/include)
   PHP_ADD_LIBRARY_WITH_PATH($XSLT_LIBNAME, $XSLT_DIR/lib,
XSLT_SHARED_LIBADD)
-
   AC_DEFINE(HAVE_XSLT, 1, [ ])
 fi


---------------------------------------
Justin Hannus
Lead Programmer/Web Development
jhannus@visualconceptsinc.com
www.visualconceptsinc.com
[860] 925.6065 ext.125
[860] 925.6176
