Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-29 Thread Mathias Fröhlich
Hi, > [autoconf problems with truncf] If I look into config.log, I find the lines configure:9991: checking for truncf configure:10041: gcc -o conftest -O2 -march=athlon -msse -mfpmath=sse -I/home/flightgear/sw/include -I/usr/X1 1R6/include -L/home/flightgear/sw/lib -L/usr/X11R6/lib conftest.c

Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-29 Thread Erik Hofman
Eric L Hathaway wrote: To compile FlightGear from a clean CVS checkout (with plib and SimGear are already installed), I run a little script that issues the following commands: export CFLAGS="-Wall -O3 -fomit-frame-pointer -ffast-math \ -funroll-loops -march=athlon" export CXXFLAGS="-Wall -O3 -

[Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-28 Thread Eric L Hathaway
Jim Wilson wrote: Erik Hofman said: Eric L Hathaway wrote: Unfortunately, FlightGear still doesn't compile on RedHat 7.3, even with the above configure script check for truncf (I haven't checked it out on RedHat 9 yet). I did figure out how to get it to work though (see below). The problem is

Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-28 Thread Jim Wilson
Erik Hofman <[EMAIL PROTECTED]> said: > Eric L Hathaway wrote: > > > Unfortunately, FlightGear still doesn't compile on RedHat 7.3, even with > > the above configure script check for truncf (I haven't checked it out on > > RedHat 9 yet). I did figure out how to get it to work though (see below

Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-28 Thread Erik Hofman
Eric L Hathaway wrote: Unfortunately, FlightGear still doesn't compile on RedHat 7.3, even with the above configure script check for truncf (I haven't checked it out on RedHat 9 yet). I did figure out how to get it to work though (see below). The problem is that although truncf is present in R

Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-27 Thread Bernie Bright
On Tue, 27 Jan 2004 23:50:56 -0500 Eric L Hathaway <[EMAIL PROTECTED]> wrote: > Erik Hoffman wrote: > > >Bernie Bright wrote: > > > >>/ Compiles okay on Mandrake 9.2/10.0 (glibc-2.3.3 and gcc-3.3.2). However > >this/>/ should really be tested for by the configure script - > >AC_CHECK_FUNCS(trunc

Re: [Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-27 Thread Jim Wilson
Eric L Hathaway <[EMAIL PROTECTED]> said: > Unfortunately, FlightGear still doesn't compile on RedHat 7.3, even with > the above configure script check for truncf (I haven't checked it out on > RedHat 9 yet). I did figure out how to get it to work though (see below). > It does build on 7.3.

[Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-27 Thread Eric L Hathaway
Erik Hoffman wrote: Bernie Bright wrote: / Compiles okay on Mandrake 9.2/10.0 (glibc-2.3.3 and gcc-3.3.2). However this />/ should really be tested for by the configure script - AC_CHECK_FUNCS(truncf) />/ and panel.cxx should then contain: / I'll add a test for it. Erik Erik, Unfortunately, Fl

[Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-27 Thread Melchior FRANZ
[truncf] * Andy Ross -- Tuesday 27 January 2004 17:09: > Um, or you could just use floor() instead, which does the same thing [...] That's what I thought at first as well, but then I tried it ... m. ___ Flightgear-devel mailing list [EMAIL PROTECTED] h

[Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-26 Thread Eric L Hathaway
Another problem with my original message! I must have had an itchy posting finger tonight... Eric L Hathaway wrote: Apparently, the truncf function was introduced in the C99 standard, and to use such functions in glibc you must define _ISOC99_SOURCE (or _GNU_SOURCE) in order for the functions

[Flightgear-devel] Re: Fix for compilation error in panel.cxx: `truncf' undeclared

2004-01-26 Thread Eric L Hathaway
Eric L Hathaway wrote: Allow me to de-lurk for a minute to report a compilation problem, along with a fix. Current (10:00pm EST, 2003-1-26) CVS checkouts of FlightGear fail to compile on my Linux box. Of course, I meant _2004_-1-26, not 2003. You would think that almost an entire month into t