From owner-freebsd-current@FreeBSD.ORG Fri Aug 29 12:11:00 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6391016A4BF; Fri, 29 Aug 2003 12:11:00 -0700 (PDT) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83D3743FDD; Fri, 29 Aug 2003 12:10:59 -0700 (PDT) (envelope-from kientzle@acm.org) Received: from acm.org (big.x.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id h7TJAgsE069288; Fri, 29 Aug 2003 12:10:43 -0700 (PDT) (envelope-from kientzle@acm.org) Message-ID: <3F4FA563.9040307@acm.org> Date: Fri, 29 Aug 2003 12:11:31 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Langille References: <1062170238.1271.15.camel@blaze.homeip.net> <3F4F6002.11008.2A428E7D@localhost> In-Reply-To: <3F4F6002.11008.2A428E7D@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: dirk@freebsd.org Subject: Re: databases/mysql323-client fails to build X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 19:11:00 -0000 >>>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 > > > On 29 Aug 2003 at 11:07, Tim Kientzle wrote: >>#line 16878 "configure" >>#include "confdefs.h" >>#include >>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