1 |
When I try to emerge applications which compilation need math.h it |
2 |
fail. |
3 |
|
4 |
For example when I emerge kde-base/arts-1.3.1 I recive: |
5 |
|
6 |
******************************************************** |
7 |
/bin/sh ../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../mcop -I/usr/kde/3.3/include -I/usr/qt/3/include -I/usr/X11R6/include -I../libltdl -DQT_THREAD_SUPPORT -D_REENTRANT -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -ftemplate-depth-99 -c -o synth_mul_impl.lo `test -f 'synth_mul_impl.cc' || echo './'`synth_mul_impl.cc |
8 |
synth_wave_sin_impl.cc: In member function `virtual void |
9 |
Arts::Synth_WAVE_SIN_impl::calculateBlock(long unsigned int)': |
10 |
synth_wave_sin_impl.cc:38: error: `M_PI' undeclared (first use this function) |
11 |
synth_wave_sin_impl.cc:38: error: (Each undeclared identifier is reported only |
12 |
once for each function it appears in.) |
13 |
make[3]: *** [synth_wave_sin_impl.lo] Error 1 |
14 |
make[3]: *** Waiting for unfinished jobs.... |
15 |
make[3]: Leaving directory `/tmp/portage/arts-1.3.1/work/arts-1.3.1/flow' |
16 |
make[2]: *** [all-recursive] Error 1 |
17 |
make[2]: Leaving directory `/tmp/portage/arts-1.3.1/work/arts-1.3.1/flow' |
18 |
make[1]: *** [all-recursive] Error 1 |
19 |
make[1]: Leaving directory `/tmp/portage/arts-1.3.1/work/arts-1.3.1' |
20 |
make: *** [all] Error 2 |
21 |
**************************************************************** |
22 |
|
23 |
But the constant M_PI is defined in /usr/include/math.h |
24 |
|
25 |
My configuration is: |
26 |
|
27 |
~ # emerge --info |
28 |
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r1 i686) |
29 |
================================================================= |
30 |
System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz |
31 |
Gentoo Base System version 1.4.16 |
32 |
ccache version 2.3 [enabled] |
33 |
Autoconf: sys-devel/autoconf-2.59-r5 |
34 |
Automake: sys-devel/automake-1.8.5-r1 |
35 |
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 |
36 |
Headers: sys-kernel/linux26-headers-2.6.8.1 |
37 |
Libtools: sys-devel/libtool-1.5.2-r5 |
38 |
ACCEPT_KEYWORDS="x86" |
39 |
AUTOCLEAN="yes" |
40 |
CFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" |
41 |
CHOST="i686-pc-linux-gnu" |
42 |
COMPILER="" |
43 |
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" |
44 |
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" |
45 |
CXXFLAGS="-O2 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" |
46 |
DISTDIR="/usr/portage/distfiles" |
47 |
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" |
48 |
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" |
49 |
MAKEOPTS="-j2" |
50 |
PKGDIR="/packages" |
51 |
PORTAGE_TMPDIR="/var/tmp" |
52 |
PORTDIR="/usr/portage" |
53 |
PORTDIR_OVERLAY="/home/system/portage" |
54 |
SYNC="rsync://rsync.gentoo.org/gentoo-portage" |
55 |
USE="X acpi aim alsa apache2 apm arts avi berkdb bitmap-fonts cdr crypt cups dga doc emacs encode esd f77 fam flac foomaticdb fortran gb gdbm gif gnome gpm gtk gtk2 guile imlib jabber java jpeg junit kde leim libg++ libwww mad maildir mikmod motif mozilla mpeg msn ncurses nls odbc oggvorbis opengl oscar oss pam pdflib perl png python qt quicktime readline samba sdl slang slp spell sse ssl svga tcltk tcpd tetex tiff truetype unicode usb wmf x86 xml xml2 xmms xv yahoo zlib" |
56 |
|
57 |
Thanks, |
58 |
Dan |
59 |
|
60 |
-- |
61 |
gentoo-user@g.o mailing list |