Subject: Re: Status of math_emulate
To: None <port-i386@netbsd.org>
From: Pierre Dubuc <pldubuc@yahoo.ca>
List: port-i386
Date: 02/25/2007 20:54:25
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Replying to message <20070225210206.GL21141@drowsy.duskware.de>
>
> and then compiled and ran the following test program:
>
> --8<--
> #include <stdio.h>
> #include <stdlib.h>
> #include <math.h>
>
> int main(int argc, char **argv)
> {
> char *endp;
> double v;
>
> if (argc < 2) return 1;
> v = strtod(argv[1], &endp);
> printf("v = %.5f, sqrt(v) = %.5f\n", v, sqrt(v));
> return 0;
> }
> -->8--
>
As I'm waiting for the kernel to build following Blair's suggestion to
only define I386, I decided to give that test program a try. It won't
even compile on my 486SX. cc croaks with the following:
/var/tmp//ccUCdni5.o(.text+0x46): In function `main':
: undefined reference to `sqrt'
- --
Pierre Dubuc
pldubuc@yahoo.ca
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
iEYEARECAAYFAkXiPdwACgkQaMA1iJ2qYmIShACfTNDqim0s12qhtHUOiQ9ymbAQ
sVoAnj50Ls9KsdIl3kt2PlCTwKoS4Uxe
=D2fF
-----END PGP SIGNATURE-----