Re: databases/mysql323-client fails to build

From: Tim Kientzle <kientzle_at_acm.org>
Date: Fri, 29 Aug 2003 12:11:31 -0700
>>>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
Received on Fri Aug 29 2003 - 10:11:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:20 UTC