Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 1997 00:17:36 +0930
From:      Mike Smith <mike@smith.net.au>
To:        spork <spork@super-g.com>
Cc:        hackers@FreeBSD.ORG, grog@lemis.com
Subject:   Re: www-sql on FreeBSD (fwd) 
Message-ID:  <199709141447.AAA02254@word.smith.net.au>
In-Reply-To: Your message of "Fri, 12 Sep 1997 16:58:33 -0400." <Pine.BSF.3.96.970912164926.3657B-100000@super-g.inch.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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?

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

> 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




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