The asterisk build fails, it lask rintone and busy.h . Reproducible: Always Steps to Reproduce: 1. emerge asterisk 2. 3. Actual Results: gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISK_VERSION=\"0.2.0\" -DDO_CRASH -DDEBUG_THREADS -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_alsa.o chan_alsa.c chan_alsa.c:30:18: busy.h: No such file or directory chan_alsa.c:31:22: ringtone.h: No such file or directory chan_alsa.c:102: error: `ringtone' undeclared here (not in a function) chan_alsa.c:102: error: initializer element is not constant chan_alsa.c:102: error: (near initialization for `sounds[0].data') chan_alsa.c:102: error: `ringtone' undeclared here (not in a function) chan_alsa.c:102: error: initializer element is not constant chan_alsa.c:102: error: (near initialization for `sounds[0]') chan_alsa.c:103: error: `busy' undeclared here (not in a function) chan_alsa.c:103: error: initializer element is not constant chan_alsa.c:103: error: (near initialization for `sounds[1].data') chan_alsa.c:103: error: `busy' undeclared here (not in a function) chan_alsa.c:103: error: initializer element is not constant chan_alsa.c:103: error: (near initialization for `sounds[1]') chan_alsa.c:104: error: `busy' undeclared here (not in a function) chan_alsa.c:104: error: initializer element is not constant chan_alsa.c:104: error: (near initialization for `sounds[2].data') chan_alsa.c:104: error: (near initialization for `sounds[2].data') chan_alsa.c:104: error: `busy' undeclared here (not in a function) chan_alsa.c:104: error: initializer element is not constant chan_alsa.c:104: error: (near initialization for `sounds[2]') chan_alsa.c:105: error: initializer element is not constant chan_alsa.c:105: error: (near initialization for `sounds[3]') chan_alsa.c:106: error: initializer element is not constant chan_alsa.c:106: error: (near initialization for `sounds[4]') chan_alsa.c:126: warning: `time_has_passed' defined but not used chan_alsa.c:158: warning: `calc_loudness' defined but not used make[1]: *** [chan_alsa.o] Error 1 rm chan_iax.o chan_modem_i4l.o chan_agent.o chan_sip.o chan_phone.o chan_modem_bestdata.o chan_modem_aopen.o chan_modem.o make[1]: Leaving directory `/var/tmp/portage/asterisk-0.2.0/work/asterisk-0.2.0/channels' make: *** [subdirs] Error 1 !!! ERROR: net-misc/asterisk-0.2.0 failed. !!! Function src_compile, Line 22, Exitcode 2 !!! (no error message) Calculating dependencies ...done! >>> emerge (1 of 1) net-misc/asterisk-0.2.0 to / >>> md5 src_uri ;-) asterisk-0.2.0.tar.gz Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 mobile AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.4.3.12 distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /lib/modules /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/env.d" CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d aalib acl acpi afs alsa apache2 apm arts avi berkdb bonobo cdr crypt cscope cups curl dga directfb doc dvb dvd emacs encode esd ethereal evo fbcon firebird flash foomaticdb freetds gb gd gdbm ggi gif gnome gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imap imlib informix innodb ipv6 jack java jikes joystick jpeg kde kerberos krb4 ladcca lcm ldap leim libg++ libgda libwww lirc mad maildir mbox mcal memlimit mikmod mmx motif mozilla mpeg mpi mule mysql nas ncurses nhc98 nls oci8 odbc oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp postgres ppds prelude python qt quicktime readline ruby18 samba sasl scanner sdl slang slp snmp socks5 spell ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xface xinerama xml2 xmms xosd xv zeo zlib linguas_de linguas_en linguas_en_GB linguas_fr"
Works fine for me with gcc 3.2.3.
Hans-Christian, I suspect this error is due to parallel compiles tripping over themselves. Can you set MAKEOPTS="-j1" in /etc/make.conf and have another go at emerging asterisk?
no problems here with gcc-3.3.2-r2
Well, make -j1 fixed the problems. Thanks, Johnny
I've pinned emake to -j1 in cvs. Nice catch Johnny. :)