On Fri, 2003-08-29 at 10:38, Dan Langille wrote:
On a 5.1-release box, I tried to install databases/mysql323-client and was told:

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.


The output of databases/mysql323-client/work/mysql-3.23.57/config.log is at <http://www.freebsddiary.org/tmp/config.log>

> On 29 Aug 2003 at 11:07, Tim Kientzle wrote:
#line 16878 "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);
}

Aaah. Yes, Kris was right; this is a bug in the configure script:


It should be "fclose(file)", of course.

This should work:

1) cd /usr/ports/mysql323-client
1a) rm -rf work
2) make extract
3) vi work/mysql-3.23.57/configure
   search on 'longlong' to find the above program.
   Change "close" to "fclose"
4) make
5) make install


Tim


_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to