On 2023/08/16 14:06, Brian Callahan wrote:
> On 8/16/2023 9:43 AM, Stuart Henderson wrote:
> > 
> > also, the comment about why it's using a wrong version of autoconf
> > should have the version bumped to 2.71 (though if there's a problem
> > with AC_PROG_LEX in 2.70/2.71 that should probably be fixed in autoconf..)
> 
> You may want to try using autoconf-2.71. The scripts were last reconf'd
> with 2.71, and I was the one who last reconf'd them, on an OpenBSD
> machine. Worked fine here.

It fails in a ports build with 2.71, and it fails with the bundled
configure script.

Seems that the problem is that ac_cv_prog_lex_root ("checking for
lex output file root... lex.yy" is set by ports infrastructure in
config.cache but that the subsequent "checking for lex library"
depends on the file created in the ac_cv_prog_lex_root check.

[...]
checking for bison... /usr/bin/yacc
checking for flex... (cached) flex
checking for lex output file root... (cached) lex.yy
checking for lex library... cat: lex.yy.c: No such file or directory
cat: lex.yy.c: No such file or directory
cat: lex.yy.c: No such file or directory
not found
configure: WARNING: required lex library not found; giving up on flex
checking for library containing yywrap... -lfl
[...]

This issue is fixed by one or other of the two infrastructure diffs
below. I prefer the first; the 'none needed' setting feels a bit magic.

If anyone is able to add it to a bulk I'd appreciate it (I don't expect
a problem, but since the file is used for every CONFIGURE_STYLE=gnu or
autoconf in the tree, it feels safer to test first).



Index: config.site
===================================================================
RCS file: /cvs/ports/infrastructure/db/config.site,v
retrieving revision 1.31
diff -u -p -r1.31 config.site
--- config.site 31 Oct 2022 21:32:43 -0000      1.31
+++ config.site 16 Aug 2023 14:44:12 -0000
@@ -886,7 +886,6 @@ ac_cv_prog_egrep=${ac_cv_prog_egrep='gre
 ac_cv_prog_f77_g=${ac_cv_prog_f77_g=yes}
 ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
 ac_cv_prog_have_hp2ps=${ac_cv_prog_have_hp2ps=1}
-ac_cv_prog_lex_root=${ac_cv_prog_lex_root=lex.yy}
 ac_cv_prog_lex_yytext_pointer=${ac_cv_prog_lex_yytext_pointer=yes}
 ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
 ac_cv_sizeof_char=${ac_cv_sizeof_char=1}

Index: config.site
===================================================================
RCS file: /cvs/ports/infrastructure/db/config.site,v
retrieving revision 1.31
diff -u -p -r1.31 config.site
--- config.site 31 Oct 2022 21:32:43 -0000      1.31
+++ config.site 16 Aug 2023 14:51:15 -0000
@@ -887,6 +887,7 @@ ac_cv_prog_f77_g=${ac_cv_prog_f77_g=yes}
 ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
 ac_cv_prog_have_hp2ps=${ac_cv_prog_have_hp2ps=1}
 ac_cv_prog_lex_root=${ac_cv_prog_lex_root=lex.yy}
+ac_cv_lib_lex='none needed'
 ac_cv_prog_lex_yytext_pointer=${ac_cv_prog_lex_yytext_pointer=yes}
 ac_cv_prog_make_make_set=${ac_cv_prog_make_make_set=yes}
 ac_cv_sizeof_char=${ac_cv_sizeof_char=1}

Reply via email to