Bug #9120 mysql-5.0.2-alpha
Submitted: 11 Mar 2005 5:21 Modified: 16 Mar 2005 19:46
Reporter: li yuan Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:mysql-5.0.2-alpha OS:Windows (win 2000/5.00.2195 /SP4)
Assigned to: Jim Winstead CPU Architecture:Any

[11 Mar 2005 5:21] li yuan
Description:
OS:Microsoft windows 2000/5.00.2195 /Servic Pack4/Chinese Version
MySql version :mysql-5.0.2-alpha
Compile Software :Cygwin
Error Type:make error
Details:
"fill_help_tables.sh > fill_help_tables-t
/usr/bin/chmod +x fill_help_tables-t
/usr/bin/mv fill_help_tables-t fill_help_tables
./fill_help_tables < ../Docs/manual.texi > fill_help_tables.sql
/bin/bash: ./fill_help_tables: no: bad interpreter: No such file or directory
make[2]: *** [fill_help_tables.sql] Error 126
make[2]: Leaving directory `/home/user/mysql/scripts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/mysql'
make: *** [all] Error 2"

How to repeat:
OS:Microsoft windows 2000/5.00.2195 /Servic Pack4/Chinese Version
MySql version :mysql-5.0.2-alpha
Compile Software :Cygwin
Steps:
1)unzip mysql-5.0.2-alpha.tar.gz 
2)copy mysql-5.0.2-alpha to C:/cygwin/home/user
3)rename mysql-5.0.2-alpha to mysql
4)click cywin.exe and "cd mysql"
5)./configure --without-server       This step works fine.
6)make
Cygwin ran for a few while and then reported the following errors.
"fill_help_tables.sh > fill_help_tables-t
/usr/bin/chmod +x fill_help_tables-t
/usr/bin/mv fill_help_tables-t fill_help_tables
./fill_help_tables < ../Docs/manual.texi > fill_help_tables.sql
/bin/bash: ./fill_help_tables: no: bad interpreter: No such file or directory
make[2]: *** [fill_help_tables.sql] Error 126
make[2]: Leaving directory `/home/user/mysql/scripts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/mysql'
make: *** [all] Error 2"

Suggested fix:
copy fill_help_tables/fill_help_tables.sql/fill_help_tables.ch to the destinate folder
[11 Mar 2005 5:58] MySQL Verification Team
I got the compiler error in different place:

chared.c: In function `ch_init':
chared.c:443: error: `ED_UNASSIGNED' undeclared (first use in this function)
chared.c:443: error: (Each undeclared identifier is reported only once
chared.c:443: error: for each function it appears in.)
chared.c: In function `ch_reset':
chared.c:495: error: `ED_UNASSIGNED' undeclared (first use in this function)
chared.c: In function `ch_end':
chared.c:604: error: `ED_UNASSIGNED' undeclared (first use in this function)
make[3]: *** [chared.o] Error 1
make[3]: Leaving directory `/home/miguel/mysql-5.0.2-alpha/cmd-line-utils/libedit'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/miguel/mysql-5.0.2-alpha/cmd-line-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/miguel/mysql-5.0.2-alpha'
make: *** [all] Error 2

miguel@light ~/mysql-5.0.2-alpha
$
[11 Mar 2005 7:53] Joerg Bruehe
For the 'ED_UNASSIGNED' problem, see bug#7669. In that case, it was caused by a broken 'tr' which did not deal with character classes properly. If a better version is not available, the problem can be overcome by changing the call to 'tr':

- cmd-line-utils/libedit/makelist.sh version 1.5
+ cmd-line-utils/libedit/makelist.sh version 1.6

@@ -145,7 +145,7 @@
 #
 -fh)
     cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
-    sort | tr '[a-z]' '[A-Z]' | $AWK '
+    sort | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | $AWK '
 	BEGIN {
 	    printf("/* Automatically generated file, do not edit */\n");
 	    printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
[16 Mar 2005 19:46] Jim Winstead
We do not support building with Cygwin on Windows.

As Joerg noted, the problem in the libedit sources is already fixed.