flex returns: error: identifier "yy_current_buffer" is undefined

Solution Unverified - Updated -

Issue

  • Some lex code that used to work ok on RHEL 5, now errors out on RHEL 6 with the following message:
foo.fl(101): error: identifier "yy_current_buffer" is undefined
                tmpBuff = yy_current_buffer;
  • We notice that yy_current_buffer does not exist any longer in RHEL 6.

Environment

  • Red Hat Enterprise Linux 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.