make fails - no flex

make fails - no flex

am 20.05.2002 22:24:18 von George

My apache make fails with:
Error: Cannot load flex.

I never heard of flex. Is this just a fancy lex? Can i substitute lex for
flex in the makefile? I'm on HPUX11.0.
Else can i download flex from somewhere?

Also the spot in the makefile where flex is called is referred to in comment
as "Developer Area" - does this mean i can just comment it all out?

-george
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

Re: make fails - no flex

am 20.05.2002 22:37:13 von Cliff Woolley

On Mon, 20 May 2002, Petryczka, George wrote:

> My apache make fails with:
> Error: Cannot load flex.
>
> I never heard of flex. Is this just a fancy lex? Can i substitute lex for

> flex in the makefile? I'm on HPUX11.0.
> Else can i download flex from somewhere?

fast lex. It's GNU's lex. But you shouldn't need it. In the mod_ssl
build directory, do the following:

touch ssl_expr_parse.c
touch ssl_expr_parse.h
touch ssl_expr_scan.h

And then it shouldn't try to use flex anymore. What version of
mod_ssl and Apache is this, by the way?

--Cliff

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

RE: make fails - no flex

am 20.05.2002 23:13:35 von George

Cliff,
This was attempted with mod_ssl 2.8.8-1.3.24 and apache 1.3.24.

Won't touching those files cause some component not to be built?
And thanks.
-george


-----Original Message-----
From: Cliff Woolley [mailto:jwoolley@apache.org]
Sent: Monday, May 20, 2002 4:37 PM
To: 'modssl-users@modssl.org'
Subject: Re: make fails - no flex


On Mon, 20 May 2002, Petryczka, George wrote:

> My apache make fails with:
> Error: Cannot load flex.
>
> I never heard of flex. Is this just a fancy lex? Can i substitute lex
for

> flex in the makefile? I'm on HPUX11.0.
> Else can i download flex from somewhere?

fast lex. It's GNU's lex. But you shouldn't need it. In the mod_ssl
build directory, do the following:

touch ssl_expr_parse.c
touch ssl_expr_parse.h
touch ssl_expr_scan.h

And then it shouldn't try to use flex anymore. What version of
mod_ssl and Apache is this, by the way?

--Cliff

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

RE: make fails - no flex

am 20.05.2002 23:18:34 von George

Actually i just tried touching the three files and i still get that same
error. I'll try downloading a flex if i can find it. Would lex work
though?

-----Original Message-----
From: Petryczka, George [mailto:george@smartserv.com]
Sent: Monday, May 20, 2002 5:14 PM
To: 'modssl-users@modssl.org'
Subject: RE: make fails - no flex


Cliff,
This was attempted with mod_ssl 2.8.8-1.3.24 and apache 1.3.24.

Won't touching those files cause some component not to be built?
And thanks.
-george


-----Original Message-----
From: Cliff Woolley [mailto:jwoolley@apache.org]
Sent: Monday, May 20, 2002 4:37 PM
To: 'modssl-users@modssl.org'
Subject: Re: make fails - no flex


On Mon, 20 May 2002, Petryczka, George wrote:

> My apache make fails with:
> Error: Cannot load flex.
>
> I never heard of flex. Is this just a fancy lex? Can i substitute lex
for

> flex in the makefile? I'm on HPUX11.0.
> Else can i download flex from somewhere?

fast lex. It's GNU's lex. But you shouldn't need it. In the mod_ssl
build directory, do the following:

touch ssl_expr_parse.c
touch ssl_expr_parse.h
touch ssl_expr_scan.h

And then it shouldn't try to use flex anymore. What version of
mod_ssl and Apache is this, by the way?

--Cliff

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

RE: make fails - no flex

am 20.05.2002 23:25:54 von Cliff Woolley

On Mon, 20 May 2002, Petryczka, George wrote:

> Won't touching those files cause some component not to be built?
> And thanks.

Nope. They're generated files distributed along with mod_ssl. If somehow
their timestamps get to be older than the .y and .l files they came from,
the Makefile will want to regenerate them using flex and yacc. But you
shouldn't need to regenerate them. Touching them to update their
timestamps will harm nothing; the next time you run make, it will see that
the .c and .h files are up to date, but it will recognize that the
corresponding .o files are out of date and just compile the two files.
Done.

--Cliff

____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

RE: make fails - no flex

am 20.05.2002 23:28:06 von Cliff Woolley

On Mon, 20 May 2002, Petryczka, George wrote:

> Actually i just tried touching the three files and i still get that same
> error. I'll try downloading a flex if i can find it. Would lex work
> though?

>> touch ssl_expr_parse.c
>> touch ssl_expr_parse.h
>> touch ssl_expr_scan.h

Crap, my fault... that last one should have been

touch ssl_expr_scan.c

There is no ssl_expr_scan.h.

--Cliff


(To answer your question, flex is found at
http://www.gnu.org/software/flex/flex.html , though like I said you
shouldn't need it. And no, regular lex probably won't work, as flex has
some GNU extensions over regular lex, and ssl_expr_scan.l *might* actually
use them.)

------------------------------------------------------------ --
Cliff Woolley
cliffwoolley@yahoo.com
Charlottesville, VA


____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org

Re: make fails - no flex

am 21.05.2002 00:13:09 von Joe Orton

On Mon, May 20, 2002 at 05:28:06PM -0400, Cliff Woolley wrote:
> >> touch ssl_expr_parse.c
> >> touch ssl_expr_parse.h
> >> touch ssl_expr_scan.h
>
> Crap, my fault... that last one should have been
>
> touch ssl_expr_scan.c
>
> There is no ssl_expr_scan.h.

HP-UX make can be tricky here though because it will try to regenerate a
target if it has exactly the same mtime as a dependency, unlike other
makes. Naively combining all of the above into a single 'touch'
invocation (or typing fast ;) would guarantee that lex is still run,
because ssl_expr_scan.c depends on ssl_expr_parse.h.

I think this should guarantee no flex/yacc invocations:

touch ssl_expr_parse.[ch] ssl_expr_scan.l
sleep 1
touch ssl_expr_scan.c

Ralf if you're listening, it would be good to do something like that for
the tarballs, since the timestamps are all the same by default at the
moment, so it always breaks on HP-UX.

joe
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org