error building gcc-g++-3.3.2 "`modf' not decalred"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hy,

I'm having trouble with my g++ 'cmath'; programs including the 'cmath' header always error out with something similar to what's below here :
this is from a build of fluxbox btw.

<snip>
g++ -DHAVE_CONFIG_H -I. -I. -I../..     -g -O2  -I/usr/X11R6/include -DSHAPE  -I
/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2   -c -o C
olor.o `test -f Color.cc || echo './'`Color.cc
In file included from /usr/include/c++/3.2.2/bits/locale_facets.tcc:41,
                 from /usr/include/c++/3.2.2/locale:46,
                 from /usr/include/c++/3.2.2/bits/ostream.tcc:37,
                 from /usr/include/c++/3.2.2/ostream:275,
                 from /usr/include/c++/3.2.2/iostream:45,
                 from Color.cc:29:
/usr/include/c++/3.2.2/cmath:358: `modf' not declared
/usr/include/c++/3.2.2/cmath: In function `float std::modf(float, float*)':
/usr/include/c++/3.2.2/cmath:362: `::modff' undeclared (first use here)
/usr/include/c++/3.2.2/cmath: In function `long double std::modf(long double, 
   long double*)':
/usr/include/c++/3.2.2/cmath:376: `::modfl' undeclared (first use here)
make[4]: *** [Color.o] Error 1
make[4]: Leaving directory `/lapmore/fluxbox-0.9.9/src/FbTk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/lapmore/fluxbox-0.9.9/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/lapmore/fluxbox-0.9.9/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/lapmore/fluxbox-0.9.9'
make: *** [all] Error 2
root@lapdjeez:/lapmore/fluxbox-0.9.9# 
<snip>

I even got a similar error message when trying to compile gcc-g++ 3.3.2 (and 3.4.0 too).
I downloaded the gcc-core, gcc-g++ and gcc-objc 3.3.2 releases, configured in seperate 'build' directory with : 

root@lapdjeez:/lapmore/build# ../gcc-3.3.2/./configure --prefix=/usr --enable-shared=listdc++ --with-gnu-as --with-gnu-ld --disable-multilib --with-cpu=pentium3

after that I do a 'make bootstrap' and it errors out, after a couple of minutes compiling fine, with following error...

make[4]: Leaving directory `/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
Making all in src
make[4]: Entering directory `/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src'
/bin/sh ../libtool --tag CXX --mode=compile /lapmore/build/gcc/xgcc -shared-libgcc -B/lapmore/build/gcc/ -nostdinc++  -L/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src -L/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -nostdinc++ -I/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include -I../../../../gcc-3.3.2/./libstdc++-v3/libsupc++  -I../../../../gcc-3.3.2/./libstdc++-v3/libmath    -g -O2 -D_GNU_SOURCE -fno-implicit-templates  -Wall -Wno-format -W -Wwrite-strings  -fdiagnostics-show-location=once  -ffunction-sections -fdata-sections      -c ../../../../gcc-3.3.2/./libstdc++-v3/src/bitset.cc
/lapmore/build/gcc/xgcc -shared-libgcc -B/lapmore/build/gcc/ -nostdinc++ -L/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src -L/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -nostdinc++ -I/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/i686-pc-linux-gnu -I/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include -I../../../../gcc-3.3.2/./libstdc++-v3/libsupc++ -I../../../../gcc-3.3.2/./libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c ../../../../gcc-3.3.2/./libstdc++-v3/src/bitset.cc -o bitset.o
In file included from /lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/locale_facets.tcc:41,
                 from /lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/locale:47,
                 from /lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/bits/ostream.tcc:37,
                 from /lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/ostream:535,
                 from /lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/bitset:58,
                 from ../../../../gcc-3.3.2/libstdc++-v3/src/bitset.cc:43:
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath:443: error: `modf' 
   not declared
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath: In function `float 
   std::modf(float, float*)':
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath:453: error: `::modf
   ' undeclared (first use here)
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath: In function `long 
   double std::modf(long double, long double*)':
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath:465: error: `long 
   double std::modf(long double, long double*)' used prior to declaration
/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/include/cmath:467: error: `::modf
   ' undeclared (first use here)
make[4]: *** [bitset.lo] Error 1
make[4]: Leaving directory `/lapmore/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/lapmore/build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/lapmore/build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/lapmore/build'
make: *** [bootstrap] Error 2
root@lapdjeez:/lapmore/build# 

I've looked everywhere on the net for the "`modf' not decalred" error, but couldn't find anything...
Could someone give me some pointers to where the trouble might be ?

Thnx,
Gert

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux