short, use flex.
* fsinfo/fsi_lex.l, amd/conf_tok.l: allocate more output slots so
lex scanners don't run out of mem.
circumstances the kernel might "forget" about that flag and start using
unprivileged ports, causing the same EPERM error above.
+(14) Solaris
+
+The line "%option" in *.l files may cause Solaris /usr/ccs/bin/lex to abort
+with the error "missing translation value." This is a bug in Solaris lex.
+Use GNU Flex instead. You can download ready-made flex binaries from
+www.sunfreeware.com.
Erez & Ion
+2003-07-13 Erez Zadok <ezk@filer.fsl.cs.sunysb.edu>
+
+ * BUGS: Document buggy behavior of Solaris /usr/ccs/bin/lex. In
+ short, use flex.
+
+2003-07-13 Erez Zadok <ezk@a-hpux11.fsl.cs.sunysb.edu>
+
+ * fsinfo/fsi_lex.l, amd/conf_tok.l: allocate more output slots so
+ lex scanners don't run out of mem.
+
2003-07-13 Ion Badulescu <lionut@gonzales.badula.org>
* amd/amfs_generic.c (amfs_lookup_mntfs): ditto as below for the
* SUCH DAMAGE.
*
*
- * $Id: conf_tok.l,v 1.9 2003/07/13 19:11:19 ezk Exp $
+ * $Id: conf_tok.l,v 1.10 2003/07/14 02:15:05 ezk Exp $
*
*/
# ifndef ECHO
# define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
# endif /* not ECHO */
-int ayylineno = 0;
#endif /* FLEX_SCANNER */
+int ayylineno = 0;
+
int yylex(void);
/*
* some systems such as DU-4.x have a different GNU flex in /usr/bin
%}
+/* This option causes Solaris lex to fail. See BUGS file */
/* no need to use yyunput() */
%option nounput
+/* allocate more output slots so lex scanners don't run out of mem */
+%o 1024
+
DIGIT [0-9]
ALPHA [A-Za-z]
ALPHANUM [A-Za-z0-9]
* SUCH DAMAGE.
*
*
- * $Id: fsi_lex.l,v 1.10 2003/07/13 19:11:19 ezk Exp $
+ * $Id: fsi_lex.l,v 1.11 2003/07/14 02:15:06 ezk Exp $
*
*/
* TODO: Needs rewriting.
*/
-#ifdef FLEX_SCANNER
static int ayylineno;
+
+#ifdef FLEX_SCANNER
# define INIT_STATE { \
switch ((yy_start - 1) / 2) { \
case 0: \
%}
+/* This option causes Solaris lex to fail. See BUGS file */
/* no need to use yyunput() */
%option nounput
+/* allocate more output slots so lex scanners don't run out of mem */
+%o 1024
+
%start F Q
%%