apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: make_export.awk
Date Sat, 16 Dec 2000 20:27:07 GMT
On Sat, Dec 16, 2000 at 10:09:24AM -0800, rbb@covalent.net wrote:
> On Sat, 16 Dec 2000, Sascha Schumann wrote:
> >     I had too much free time today, so I created make_export.awk.
> >     During that I noticed that I either lack some awk knowledge
> >     or that the awk's expression mechanism lacks a useful feature
> >     (backreferencing). I've worked around that by using two sub's
> >     in the respective block.
> 
> I dislike this idea.  I realize (now) that awk is available on Windows,
> but Perl is already required to build Apache on Windows, and all of a

That was a recent requirement, and it could *easily* use awk, sed, or even a
20 line C program. All it does is s/@@ServerRoot@@/value/ over the files.

> sudden we are going to add the requirement of awk too.  Why?  We already
> require Perl on every platform when building Apache, but we do not
> currently require awk.

I'd rather see all awk than Perl.

Consider my RedHat 6.1 system: awk is installed in /bin, while perl is
installed in /usr/bin. The point is that awk is always there as part of a
system.

Apache uses AWK to build modules.c and exports.c, so end users need awk. It
appears config.status uses awk in certain situations. The build system only
seems to use perl for mkdep.perl (which we commented out and don't actually
use), and for generating the exports file.

>...
> >     The script is a direct port of the Perl script, we just leave
> >     the file handling to awk. I've tested it with gawk and mawk
> >     and it behaves fine.
> > 
> >     Are these functions supposed to be exported?
> 
> Yes, all of these are supposed to be exported, and they are by the Perl
> version.  At least they are on my machine.

Exported here, too.

>...
> > --- apr.exports.perl	Fri Dec 15 17:52:38 2000
> > +++ apr.exports	Sat Dec 16 18:45:44 2000
> > @@ -96,2 +96,9 @@
> >  apr_MD5Encode
> > +apr_MD5Init
> > +APR_HAS_XLATE
> > +	apr_MD5SetXlate
> > +/APR_HAS_XLATE
> > +apr_MD5Update
> > +apr_MD5Final
> > +apr_MD5Encode
> >  APR_HAS_MMAP
> > @@ -260,2 +267,6 @@
> >  apr_strftime
> > +apr_get_home_directory
> > +apr_get_uuid
> > +apr_format_uuid
> > +apr_parse_uuid
> >  apr_get_home_directory

Hmm. Have you noticed apr_MD5Encode and apr_get_home_directory are in there
twice? Is it possible that you're getting doubles? Maybe you have a backup
copy of apr_uuid.h and apr_md5.h in your include directory, and it's picking
them up?

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message