Need presompiled binaries of Sablotron 0.90 and 0.95 for Index Data's Keystone DLS

Doug White dwhite at gumbysoft.com
Thu Jan 27 11:42:00 PST 2005


On Wed, 26 Jan 2005, Doug White wrote:

> I have a RELENG_5 box I can attempt a re-port on.

I was able to successfully compile Sablot 0.95 manually using the
following script to set up the configure environment and one small patch
to correct a C++ standards violation.  You need to point it at the
location of your expat installation, which is /usr/local if you used a
port or package to install it.

The INSTALL file actually mentions the need to set CPPFLAGS, but you also
need to set LDFLAGS so the expat library check will pass.  This is
standard configure stuff and will pass on to the build environment.

Extract Sablot, apply the patch to src/engine/parser.cpp, run the
run-configure.sh script, then make && make install as usual.  I haven't
tested that the resulting binary can process input since I have no idea
what this does, but the sablot command itself executes without ld errors
or the like.

Here is the run-configure.sh script:

#!/bin/sh

unset CFLAGS
unset CPPFLAGS
unset LDFLAGS

CFLAGS="-I/usr/local/include"
CPPFLAGS="-I/usr/local/include"
LDFLAGS="-L/usr/local/lib"

export CFLAGS CPPFLAGS LDFLAGS

./configure \
        --prefix=/usr/local

Here's the patch (also attached in case whitespace gets munched):

--- parser.cpp	Tue Jun 25 00:51:06 2002
+++ parser-new.cpp	Thu Jan 27 11:35:16 2005
@@ -423,7 +423,7 @@
         if (!(firstTime && rawBuffer[0] == (char) 0xEF &&
             rawBuffer[1] == (char) 0xBB && rawBuffer[2] == (char) 0xBF))
             S.setCurrLine(XML_GetCurrentLineNumber(parser));
-        int code = XML_GetErrorCode(parser);
+        XML_Error code = XML_GetErrorCode(parser);
         Str eCodeStr, eNameStr;
         eCodeStr = code;
         eNameStr = (char*) XML_ErrorString(code);

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite at gumbysoft.com          |  www.FreeBSD.org
-------------- next part --------------
--- parser.cpp	Tue Jun 25 00:51:06 2002
+++ parser-new.cpp	Thu Jan 27 11:35:16 2005
@@ -423,7 +423,7 @@
         if (!(firstTime && rawBuffer[0] == (char) 0xEF && 
             rawBuffer[1] == (char) 0xBB && rawBuffer[2] == (char) 0xBF))
             S.setCurrLine(XML_GetCurrentLineNumber(parser));
-        int code = XML_GetErrorCode(parser); 
+        XML_Error code = XML_GetErrorCode(parser); 
         Str eCodeStr, eNameStr;
         eCodeStr = code;
         eNameStr = (char*) XML_ErrorString(code);


More information about the freebsd-stable mailing list