Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2003 12:11:31 -0700
From:      Tim Kientzle <kientzle@acm.org>
To:        Dan Langille <dan@langille.org>
Cc:        dirk@freebsd.org
Subject:   Re: databases/mysql323-client fails to build
Message-ID:  <3F4FA563.9040307@acm.org>
In-Reply-To: <3F4F6002.11008.2A428E7D@localhost>
References:  <1062170238.1271.15.camel@blaze.homeip.net> <3F4F6002.11008.2A428E7D@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3F4FA563.9040307>