Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2003 14:15:30 -0400
From:      "Dan Langille" <dan@langille.org>
To:        Tim Kientzle <kientzle@acm.org>
Cc:        dirk@FreeBSD.org
Subject:   Re: databases/mysql323-client fails to build
Message-ID:  <3F4F6002.11008.2A428E7D@localhost>
In-Reply-To: <3F4F966E.6030104@acm.org>
References:  <1062170238.1271.15.camel@blaze.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29 Aug 2003 at 11:07, Tim Kientzle wrote:

> >>>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>;
> 
> I just took a quick look, and the error message is probably
> completely wrong.  I don't think this has anything to do with
> numeric conversions.  Here's the relevant portion of config.log:
> 
> configure: program exited with status 139
> configure: failed program was:
> #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);
> }
> 
> 
> If I understand correctly, status 139 is a signal 11 (SEGV)
> with the core dump flag set.  Sounds like you've tripped over
> a library bug.  It doesn't happen on my 5.1-RELEASE system, though.
> 
> Do you have the core dump file available?  (I think it's in /tmp,
> but could be wrong.)  Could you send it to me?  I suspect that
> updating your libc might correct this, but would like to verify
> that.  I presume you built from source; do you happen to know the date?
> 
> If the file "conftestval" exists somewhere, send me that, too.
> 
> If you don't have a core file, copy and paste the above program
> (you may also need to create confdefs.h, which is included at the
> end of config.log), compile it with the following command, and try
> running it.  Let us know what happens on your system:
> 
> cc -o conftest  -DDBUG_OFF -O -pipe -mcpu=pentiumpro    conftest.c -lz 
> -lcrypt -lm  -pthread

$ ./conftest
Segmentation fault (core dumped)
-- 
Dan Langille : http://www.langille.org/



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