正常编译过程中报错:
configure: error: Your compiler cannot convert a longlong value to a float!
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
但查gcc版本却是3.2.2
修改 /home/..../mysql-3.23.57/configure
找到下面這一段
cat >conftest.$ac_ext <<_ACEOF
#line 11034 "configure"
#include "confdefs.h"
#include <stdio.h>
typedef long long longlong;
main()
{
longlong ll=1;
float f;
FILE *file=fopen("conftestval", "w");
f = (float) ll;
fprintf(file,"%g\n",f);
close(file);
exit (0);
}
把 close 改成 fclose 即可