Bug #15734 Debian compile failure with default mawk installed
Submitted: 14 Dec 2005 12:09 Modified: 19 Jan 2006 21:40
Reporter: Kristian Nielsen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:4.1 and up OS:Linux (Debian GNU/Linux)
Assigned to: Kristian Nielsen CPU Architecture:Any

[14 Dec 2005 12:09] Kristian Nielsen
Description:
It is not possible to build from BitKeeper tree in a default Debian install with BDB enabled.

The reason is the use of undefined awk behaviour in the BDB configure stuff that works with gawk but not with mawk. Default debian install has mawk.

How to repeat:
Build with BDB enabled from BitKeeper source with mawk selected in /etc/alternatives/awk.

Suggested fix:
Change substr(..., 0, ...) to substr(..., 1, ...) in bdb/dist/gen_rec.awk
[14 Dec 2005 12:11] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/150
[15 Dec 2005 11:38] Kristian Nielsen
Fixed in 5.0.18 and 5.1.4-alpha.

For documentation: Note that it is already documented in the manual that building on Debian with mawk does not work.

Will not be fixed in <=4.1.
[19 Jan 2006 21:40] Mike Hillyer
Note added to changelogs:

<listitem>
        <para>
          Server could not be built on default Debian systems with BDB
          enabled. (Bug #15734)
        </para>
      </listitem>