Bug #2297 Problem compiling mysql 5.0.0
Submitted: 6 Jan 2004 11:29 Modified: 16 Jan 2004 7:32
Reporter: Pierre Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S2 (Serious)
Version:5.0.0-alpha OS:Linux (GNU/Linux)
Assigned to: Lenz Grimmer CPU Architecture:Any

[6 Jan 2004 11:29] Pierre
Description:
[...]
Making all in cmd-line-utils
gmake[2]: Entering directory `/tmp/mysql-5.0.0-alpha/cmd-line-utils'
Making all in libedit
gmake[3]: Entering directory `/tmp/mysql-5.0.0-alpha/cmd-line-utils/libedit'
sh ./makelist -h ./vi.c > vi.h.tmp && \
mv vi.h.tmp vi.h
./makelist: /usr/bin/awk: No such file or directory
gmake[3]: *** [vi.h] Error 127
gmake[3]: Leaving directory `/tmp/mysql-5.0.0-alpha/cmd-line-utils/libedit'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/tmp/mysql-5.0.0-alpha/cmd-line-utils'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/tmp/mysql-5.0.0-alpha'
gmake: *** [all] Error 2

How to repeat:
compile mysql on a system where awk is not in /usr/bin

Suggested fix:
Add a check to configure to detect where is awk (It is in /bin on my system).
[6 Jan 2004 15:54] Dean Ellis
Verified with 5.0...  Seems to hardcoded in makelist for 4.1, also.
[15 Jan 2004 8:43] Lenz Grimmer
Yes, we should better use the value found by autoconf here - we already
use AC_PROG_AWK in configure.in
[16 Jan 2004 7:32] Lenz Grimmer
This has now been fixed for the next releases (4.1.2 and 5.0.1):

ChangeSet@1.1705.1.1, 2004-01-16 16:22:59+01:00, lenz@kallisto.local
   - Fixed BUG#2297: cmd-line-utils/libedit/makelist used a hard-coded
     call to /usr/bin/awk - replaced this with the proper autoconf variable
     instead (makelist is now generated out of makelist.sh during the compile
     phase)