Subject: c++ finds errors in math.h
To: None <tech-pkg@netbsd.org>
From: =?UTF-8?Q?C=C3=A9sar_Catri=C3=A1n?= C. <ccatrian@eml.cc>
List: tech-pkg
Date: 04/24/2005 14:54:23
Hi

c++ finds errors in math.h. Is there some work-around for this kind of problem?
I am using NetBSD 2.0.

Thanks in advance

C├ęsar

...
if /bin/sh ../../../libtool --mode=compile c++ -DHAVE_CONFIG_H  -I. -I. -I../../../config -I../../../src/misc  -I../../../src/misc/missing/generated  -I../../../src/PoolFile  -L/usr/pkg/lib  -I/usr/pkg/packages/flac-1.1.2/include -I/usr/pkg/packages/lame-3.96.1nb2/include -I/usr/pkg/packages/libaudiofile-0.2.6nb1/include -I/usr/pkg/packages/libvorbis-1.1.0nb1/include -I/usr/pkg/packages/libogg-1.1.2nb1/include -I/usr/pkg/packages/fftw2-2.1.5nb1/include -I/usr/pkg/include -I/usr/pkg/packages/png-1.2.8/include -I/usr/pkg/packages/tiff-3.7.2/include -I/usr/include -I/usr/pkg/packages/jpeg-6bnb3/include   -g -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -MT CNestedDataFile.lo -MD -MP -MF ".deps/CNestedDataFile.Tpo"  -c -o CNestedDataFile.lo `test -f 'CNestedDataFile.cpp' || echo './'`CNestedDataFile.cpp;  then mv -f ".deps/CNestedDataFile.Tpo" ".deps/CNestedDataFile.Plo";  else rm -f ".deps/CNestedDataFile.Tpo
 "; exit 1;  fi
c++ -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../src/misc -I../../../src/misc/missing/generated -I../../../src/PoolFile -L/usr/pkg/lib -I/usr/pkg/packages/flac-1.1.2/include -I/usr/pkg/packages/lame-3.96.1nb2/include -I/usr/pkg/packages/libaudiofile-0.2.6nb1/include -I/usr/pkg/packages/libvorbis-1.1.0nb1/include -I/usr/pkg/packages/libogg-1.1.2nb1/include -I/usr/pkg/packages/fftw2-2.1.5nb1/include -I/usr/pkg/include -I/usr/pkg/packages/png-1.2.8/include -I/usr/pkg/packages/tiff-3.7.2/include -I/usr/include -I/usr/pkg/packages/jpeg-6bnb3/include -g -Wall -Wno-unused-function -Wno-unused-variable -Wno-unused -I/usr/pkg/include -I/usr/pkg/include -I/usr/pkg/include -MT CNestedDataFile.lo -MD -MP -MF .deps/CNestedDataFile.Tpo -c CNestedDataFile.cpp
CNestedDataFile.cpp:21:2: warning: #warning see about retaining the order that things were parsed in the file
In file included from /usr/include/g++/cmath:51,
                 from /usr/include/g++/bits/locale_facets.tcc:41,
                 from /usr/include/g++/locale:47,
                 from /usr/include/g++/bits/istream.tcc:37,
                 from /usr/include/g++/istream:768,
                 from /usr/include/g++/sstream:44,
                 from anytype.h:23,
                 from CNestedDataFile.h:135,
                 from CNestedDataFile.cpp:35:
/usr/include/math.h:384: error: declaration of C function `float rintf(float)'
   conflicts with
/usr/include/math.h:258: error: previous declaration `double rintf(double)'
   here
*** Error code 1