Date: Tue, 11 Oct 2005 10:26:28 +0200 From: Michael Landin Hostbaek <mich@FreeBSD.org> To: Edwin Groothuis <edwin@mavetju.org> Cc: cvs-ports@FreeBSD.org, Pav Lucistnik <pav@FreeBSD.org>, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/astro/libnova Makefile distinfo pkg-plist ports/astro/libnova/files patch-src::misc.c patch-src__utility.c Message-ID: <20051011082628.GR12970@mich2.itxmarket.com> In-Reply-To: <20051010232100.GT1265@k7.mavetju> References: <200510090113.j991DjRu025038@repoman.freebsd.org> <1128864206.1314.111.camel@ikaros.oook.cz> <20051009133259.GJ1265@k7.mavetju> <1128864923.1314.115.camel@ikaros.oook.cz> <20051010232100.GT1265@k7.mavetju>
next in thread | previous in thread | raw e-mail | index | archive | help
Edwin Groothuis (edwin) writes:
> It looks like a GCC 3.3 vs 3.4 issue. If somebody with a 6.x or
> higher machine with GCC 3.3 on it can do the following test:
>
> $ cat a.c
> #include <math.h>
> #include <stdio.h>
> int main(void) {
> printf("%Lf\n",nanl("0"));
> printf("%Lf\n",nanl("1"));
> }
> $ make a
> $ ./a
>
> to see if it works it would make me very happy.
mich@mich ~/code> gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.4 [FreeBSD] 20050518
mich@mich ~/code> cat a.c
#include <math.h>
#include <stdio.h>
int main(void) {
printf("%Lf\n",nanl("0"));
printf("%Lf\n",nanl("1"));
}
mich@mich ~/code> make a
cc -O2 -fno-strict-aliasing -pipe a.c -o a
/var/tmp//ccTGNJYp.o(.text+0x12): In function `main':
: undefined reference to `nanl'
/var/tmp//ccTGNJYp.o(.text+0x2b): In function `main':
: undefined reference to `nanl'
*** Error code 1
Stop in /usr/home/mich/code.
zsh: 16873 exit 1 make a
mich@mich ~/code> uname -a
FreeBSD mich 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Sep 8 20:08:46
CEST 2005 root@mich:/usr/obj/usr/src/sys/S7010-1 i386
/mich
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051011082628.GR12970>
