Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot config.m4 From: Lars Torben Wilson (torben <email protected>)
Date: 10/10/00

Sterling Hughes writes:
> Here's the method I found to work when building Sablotron:
>
> Install the latest version of Expat, as per the instructions on
> http://www.php.net/manual/ref.xml.php
>
> Then simply link against the external expat libraries when compiling Sablotron
> and poof, it should all work...
>
> I believe Chuck analyzed the problem correctly, if you don't link against the
> external libraries then you need to add -lxmlparse -lxmltok, however, I don't
> know whether the solution was correct....
>
>
> Sterling

Just for another data point, I found that installing the binaries for
Sablotron and using --with-sablot worked only after doing this:

Index: config.m4
===================================================================
RCS file: /repository/php4/ext/sablot/config.m4,v
retrieving revision 1.6
diff -u -r1.6 config.m4
--- config.m4 2000/10/09 18:32:37 1.6
+++ config.m4 2000/10/10 23:35:01
@@ -26,6 +26,8 @@
 
   PHP_SUBST(SABLOT_SHARED_LIBADD)
   AC_ADD_LIBRARY_WITH_PATH(sablot, $SABLOT_DIR/lib, SABLOT_SHARED_LIBADD)
+ AC_ADD_LIBRARY(xmlparse)
+ AC_ADD_LIBRARY(xmltok)
   
   AC_DEFINE(HAVE_SABLOT,1,[ ])

After this, everything compiled and linked fine; I'm not nearly good
enough with the build system to say whether this information will
actually be useful or whether there is some reason that this isn't a
good general solution--though, if it were a good general solution, I'd
suspect that someone who actually knows what they are doing would have
done it. :) For me, it was just a hack to get the damn thing
installed. BTW, my configure line:

./configure \
  --with-java \
  --with-mysql=/usr/local/mysql \
  --with-gd \
  --with-apxs=/usr/local/apache/bin/apxs \
  --with-xml \
  --with-zlib=/usr/local \
  --with-curl=/usr/local \
  --with-sablot \
  --enable-versioning \
  --enable-track-vars \
  --enable-sysvshm \
  --enable-sysvsem \
  --enable-sockets \
  --disable-debug

-- 
+----------------------------------------------------------------+
|Torben Wilson <torben <email protected>>                     Netmill iTech|
|http://www.coastnet.com/~torben            http://www.netmill.fi|
|Ph: 1 250 383-9735                             torben <email protected>|
+----------------------------------------------------------------+

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>