Re: our compiler can't convert longlong to float? 5.1-RC1

2003-06-06 Thread Jan Stocker
Another thing with this code.

  #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);

I think this has to be fclose

exit (0);
  }

-- 
Jan Stocker [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: our compiler can't convert longlong to float? 5.1-RC1

2003-06-06 Thread leafy
On Thu, Jun 05, 2003 at 07:41:11PM +, Jan Stocker wrote:
 Another thing with this code.
 
   #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);
 
 I think this has to be fclose
changing this to fclose solves the problem. I'll notify the port maintainer.

Thank you,

Jiawei

-- 
Without the userland, the kernel is useless.
   --inspired by The Tao of Programming
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: our compiler can't convert longlong to float? 5.1-RC1

2003-06-05 Thread leafy
On Tue, Jun 03, 2003 at 03:55:47PM -0700, Kris Kennaway wrote:
 Post the code it's trying to run.  It's possible it's buggy.
 
 Kris
#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);
}

this section of code is found in configure script in mysql323-client port.

Jiawei


-- 
Without the userland, the kernel is useless.
   --inspired by The Tao of Programming
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


our compiler can't convert longlong to float? 5.1-RC1

2003-06-04 Thread leafy
I got this strange message and a core dump after installing 
5.1-RC1 cdrom iso

checking if c++ supports bool types... yes
checking if conversion of longlong to float works... Segmentation fault
(core du
mped)
no
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

This happened when I tried to compile mysql-client

Jiawei Ye
-- 
Without the userland, the kernel is useless.
   --inspired by The Tao of Programming
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: our compiler can't convert longlong to float? 5.1-RC1

2003-06-04 Thread Kris Kennaway
On Tue, Jun 03, 2003 at 11:40:40PM +0800, leafy wrote:
 I got this strange message and a core dump after installing 
 5.1-RC1 cdrom iso
 
 checking if c++ supports bool types... yes
 checking if conversion of longlong to float works... Segmentation fault
 (core du
 mped)
 no
 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
 
 This happened when I tried to compile mysql-client

Post the code it's trying to run.  It's possible it's buggy.

Kris


pgp0.pgp
Description: PGP signature


Re: our compiler can't convert longlong to float? 5.1-RC1

2003-06-04 Thread Kris Kennaway
On Thu, Jun 05, 2003 at 09:44:38AM +0800, leafy wrote:
 On Tue, Jun 03, 2003 at 03:55:47PM -0700, Kris Kennaway wrote:
  Post the code it's trying to run.  It's possible it's buggy.
  
  Kris
 #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);
 }
 
 this section of code is found in configure script in mysql323-client port.

It compiles and runs here without problems.

Kris


pgp0.pgp
Description: PGP signature