Defaul awk version can't build zd1211 kernel moduke from Dapper source

Bug #48855 reported by Ben Bacarisse
4
Affects Status Importance Assigned to Milestone
mawk (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mawk

In a fresh 6.06 install, "make modules" fails to compile the zd1211 module since it does not have POSIX regex support. Installing gawk instead does the trick.

Revision history for this message
Simon Law (sfllaw) wrote :

What errors does mawk spit out? And could you include the C source
files that mawk mentions?

Changed in mawk:
status: Unconfirmed → Needs Info
Revision history for this message
Simon Law (sfllaw) wrote :

Or rather, the failing awk script.

Revision history for this message
Ben Bacarisse (launchpad-bsb) wrote :

It does not give an error. It just does not generate the required output. In the zddevlist.awk script, a series of calls to "match" must succeed or the script generates a #error line for the compiler to find later.

Looking more closely, the problem is simply that mawk does not accept POSIX-style character classes like [:alnum:] in calls to match. I could not find any flag or environment variable that causes mawk to take POSIX character classes. gawk does so by default and thus works.

The script can be re-written to avoid POSIX-style character classes but at the expense of portability to systems with non-contiguous alphabetic character sets and/or locale-specific alphabetic characters (attached -- though this does not seem like the correct solution).

Revision history for this message
Sam Trenholme (strenholme-usenet) wrote :

I have added POSIX character classes to Mawk. See the attached patch.

- Sam

Jim Qode (jimqode)
Changed in mawk:
status: Incomplete → Fix Committed
Przemek K. (azrael)
Changed in mawk (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.