From owner-freebsd-hackers Sun Sep 14 07:49:58 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA12737 for hackers-outgoing; Sun, 14 Sep 1997 07:49:58 -0700 (PDT) Received: from word.smith.net.au (ppp20.portal.net.au [202.12.71.120]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA12722 for ; Sun, 14 Sep 1997 07:49:50 -0700 (PDT) Received: from word.smith.net.au (localhost.smith.net.au [127.0.0.1]) by word.smith.net.au (8.8.7/8.8.5) with ESMTP id AAA02254; Mon, 15 Sep 1997 00:17:38 +0930 (CST) Message-Id: <199709141447.AAA02254@word.smith.net.au> X-Mailer: exmh version 2.0zeta 7/24/97 To: spork cc: hackers@FreeBSD.ORG, grog@lemis.com Subject: Re: www-sql on FreeBSD (fwd) In-reply-to: Your message of "Fri, 12 Sep 1997 16:58:33 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 15 Sep 1997 00:17:36 +0930 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > The problem is that while mySQL works fine on FBSD, the associated w3-msql > equivalent, www-sql, was developed on Linux, and doesn't compile under > FreeBSD. I mailed the author, and got the reply shown below about > problems with a missing(?!) regex lib or somesuch. More likely, his code is expecting a different regex flavour. Greg, is this something that PUS has some words of wisdom on? > I have only had one conversation with someone else who uses FreeBSD, and > they had the same problem. The problem seems to be that FreeBSD > doesn't have a regex library. This is of course nonsense. FreeBSD has a perfectly good regex library. > I sent him an archive, containing some files that I thought might help. > The expression evaluator used in www-sql is simply the GNU version of the > shell command expr, with its user interface knocked off. In the hope that > it might be of some use, I have included the original `expr.c' as found in > the GNU sh-utils package, and a diff against it to get an `expr.c' that > will work with www-sql. The BSD expr is a yacc grammar with no user interface as such. It should be relatively trivial for someone with even minor hacking skills to rip the salient bits out of op_colon() in /usr/src/bin/expr.y and transplant them into the expr code supplied. HOWEVER last I recall, the gnu shellutils built just fine on FreeBSD. I suspect that the author may have either been overenthusiastic in ripping stuff out, or hasn't included all of the configuration knobs required to get the code to build properly. Have you looked at the function in question to determine if there isn't a compile-time option to tune for the BSD regex interface? You could also pick up the original shellutils package and check to see if its' expr(1) has BSD support. mike