Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 1997 09:06:50 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        spork <spork@super-g.com>, hackers@FreeBSD.ORG
Subject:   Re: www-sql on FreeBSD (fwd)
Message-ID:  <19970915090650.51201@lemis.com>
In-Reply-To: <199709141447.AAA02254@word.smith.net.au>; from Mike Smith on Mon, Sep 15, 1997 at 12:17:36AM %2B0930
References:  <Pine.BSF.3.96.970912164926.3657B-100000@super-g.inch.com> <199709141447.AAA02254@word.smith.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 15, 1997 at 12:17:36AM +0930, Mike Smith wrote:
>>
>> 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?

A little.  I think I count four or five different versions.  Henry
Spencer wrote two different ones alone.

> <from the author>
>> 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.

It also doesn't say much for the author.  The correct answer would be
the name of the library he's using.

>> 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.

Certainly I find it hard to believe that this is the correct solution
to the problem.  Either it's one of the many standard regex libraries,
in which case it should require it and link with it, or it isn't, in
which case the source should be supplied with the package.  Having to
gather together bits and pieces just for FreeBSD doesn't sound right.

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970915090650.51201>