databases/mysql323-client fails to build
Tim Kientzle
kientzle at acm.org
Fri Aug 29 12:11:00 PDT 2003
>>>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
More information about the freebsd-current
mailing list