Cinelerra 1.1.7 crashes when compiling esound stuff: make[2]: Entering directory `/var/tmp/portage/cinelerra-1.1.7/work/cinelerra-1.1.7' gcc -c `cat esound/i686/c_flags` esound/audio.c -o esound/i686/audio.o gcc -c `cat esound/i686/c_flags` esound/clients.c -o esound/i686/clients.o gcc -c `cat esound/i686/c_flags` esound/esd_config.c -o esound/i686/esd_config.o gcc -c `cat esound/i686/c_flags` esound/esdfile.c -o esound/i686/esdfile.o gcc -c `cat esound/i686/c_flags` esound/esdlib.c -o esound/i686/esdlib.o esound/esdlib.c:543:85: pegar "ESD_UNIX_SOCKET_DIR" y ""/"" no da un elemento v
Cinelerra 1.1.7 crashes when compiling esound stuff: make[2]: Entering directory `/var/tmp/portage/cinelerra-1.1.7/work/cinelerra-1.1.7' gcc -c `cat esound/i686/c_flags` esound/audio.c -o esound/i686/audio.o gcc -c `cat esound/i686/c_flags` esound/clients.c -o esound/i686/clients.o gcc -c `cat esound/i686/c_flags` esound/esd_config.c -o esound/i686/esd_config.o gcc -c `cat esound/i686/c_flags` esound/esdfile.c -o esound/i686/esdfile.o gcc -c `cat esound/i686/c_flags` esound/esdlib.c -o esound/i686/esdlib.o esound/esdlib.c:543:85: pegar "ESD_UNIX_SOCKET_DIR" y ""/"" no da un elemento válido de preprocesamiento esound/esdlib.c:543:85: pegar ""/"" y ""socket"" no da un elemento válido de preprocesamiento esound/esdlib.c:623:22: pegar "ESD_UNIX_SOCKET_DIR" y ""/"" no da un elemento válido de preprocesamiento esound/esdlib.c:623:22: pegar ""/"" y ""socket"" no da un elemento válido de preprocesamiento make[2]: *** [esound/i686/esdlib.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/cinelerra-1.1.7/work/cinelerra-1.1.7' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/cinelerra-1.1.7/work/cinelerra-1.1.7' make: *** [all] Error 2 Reproducible: Always Steps to Reproduce: 1.emerge cinelerra 2. 3. Actual Results: Cinelerra build crashes Expected Results: Cinelerra should build and install without such error Portage 2.0.49-r4 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 AMD Duron(tm) Processor ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse,387 -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse,387 -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm crypt cups foomaticdb gif jpeg libg++ mad mikmod pdflib png spell xml2 xmms gtkhtml gdbm berkdb slang readline tetex bonobo java guile sdl gpm tcpd pam libwww ssl python esd motif ldap scanner 3dnow aalib alsa arts artswrappersuid avi cdr directfb dv dvd encode fbcon firewire flash gnome gnome-libs gtk gtk2 imlib kde mldonkeypango mmx mozilla moznoirc moznomail moznocompose mpeg ncurses nls oggvorbis opengl perl postgres qt quicktime sox sse svga tcltk tiff truetype wmf X xv zlib"
This error is caused by gcc-3.3 being much stricter than earlier versions in complying with ISO/ANSI C standards. The offending line of code is in ${S}/esound/esd.h : #define ESD_UNIX_SOCKET_NAME ESD_UNIX_SOCKET_DIR ## "/" ## "socket" Removing the two occurences of "##" fixes things nicely, without breaking compatibility with earlier versions of gcc.
I'd suggest you to not use locales different from C while building. add in your make.conf LC_ALL="POSIX" that won't fix your issue (the right solution is Brandy's) but will avoid many others. I'll add that fix later
I just want to confirm that Brandy's solution given in comment #1 works perfectly here. For your convenience I have attached an ebuild that includes this change.
Created attachment 18060 [details] includes changes suggested by Brandy in comment #1
added the patch