※ 引述《[email protected] (杜老爺冰淇淋)》之銘言:
: 請問各位...
: 在安裝 mysql323-server 時出現了這樣的錯誤訊息..
: 請問是什麼意思呢? 要如何解決?
: checking if conversion of longlong to float works... Segmentation fault (core dumped)
: no
: 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
: again
: ===> Script "configure" failed unexpectedly.
: Please report the problem to [email protected] [maintainer] and attach
: the "/usr/ports/databases/mysql323-server/work/mysql-3.23.56/config.log"
: including the output of the failure of your make command. Also, it might
: be a good idea to provide an overview of all packages installed on your
: system (e.g. an `ls /var/db/pkg`).
: *** Error code 1
: Stop in /usr/ports/databases/mysql323-server.
: 謝謝各位
去 /usr/ports/databases/mysql323-server/work/mysql-3.23.56 裡面的
configure 找到下面這一段
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "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
--
※ Origin: 鳥窩 (BirdNest.twbbs.org) ◆ From: 61-221-104-177.hinet-ip.hinet.net