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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content