From owner-freebsd-stable@FreeBSD.ORG Thu Jan 27 19:42:00 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84AE516A4CE for ; Thu, 27 Jan 2005 19:42:00 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C28B43D4C for ; Thu, 27 Jan 2005 19:42:00 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 2928472DD4; Thu, 27 Jan 2005 11:42:00 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 23B4F72DCB; Thu, 27 Jan 2005 11:42:00 -0800 (PST) Date: Thu, 27 Jan 2005 11:42:00 -0800 (PST) From: Doug White To: Richard MAHONEY In-Reply-To: <20050126184205.I57836@carver.gumbysoft.com> Message-ID: <20050127111147.Y65402@carver.gumbysoft.com> References: <1106644095.8792.14.camel@localhost> <20050126184205.I57836@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1816630043-1106854920=:65402" cc: FreeBSD Stable Subject: Re: Need presompiled binaries of Sablotron 0.90 and 0.95 for Index Data's Keystone DLS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2005 19:42:00 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1816630043-1106854920=:65402 Content-Type: TEXT/PLAIN; charset=US-ASCII 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@gumbysoft.com | www.FreeBSD.org --0-1816630043-1106854920=:65402 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="parser.cpp.patch" Content-Transfer-Encoding: BASE64 Content-ID: <20050127114200.O65402@carver.gumbysoft.com> Content-Description: Content-Disposition: attachment; filename="parser.cpp.patch" LS0tIHBhcnNlci5jcHAJVHVlIEp1biAyNSAwMDo1MTowNiAyMDAyDQorKysg cGFyc2VyLW5ldy5jcHAJVGh1IEphbiAyNyAxMTozNToxNiAyMDA1DQpAQCAt NDIzLDcgKzQyMyw3IEBADQogICAgICAgICBpZiAoIShmaXJzdFRpbWUgJiYg cmF3QnVmZmVyWzBdID09IChjaGFyKSAweEVGICYmIA0KICAgICAgICAgICAg IHJhd0J1ZmZlclsxXSA9PSAoY2hhcikgMHhCQiAmJiByYXdCdWZmZXJbMl0g PT0gKGNoYXIpIDB4QkYpKQ0KICAgICAgICAgICAgIFMuc2V0Q3VyckxpbmUo WE1MX0dldEN1cnJlbnRMaW5lTnVtYmVyKHBhcnNlcikpOw0KLSAgICAgICAg aW50IGNvZGUgPSBYTUxfR2V0RXJyb3JDb2RlKHBhcnNlcik7IA0KKyAgICAg ICAgWE1MX0Vycm9yIGNvZGUgPSBYTUxfR2V0RXJyb3JDb2RlKHBhcnNlcik7 IA0KICAgICAgICAgU3RyIGVDb2RlU3RyLCBlTmFtZVN0cjsNCiAgICAgICAg IGVDb2RlU3RyID0gY29kZTsNCiAgICAgICAgIGVOYW1lU3RyID0gKGNoYXIq KSBYTUxfRXJyb3JTdHJpbmcoY29kZSk7DQo= --0-1816630043-1106854920=:65402--