Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28767 - Cinelerra 1.1.7 build errors on esound
Summary: Cinelerra 1.1.7 build errors on esound
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-15 03:56 UTC by Miguel Revilla Rodríguez
Modified: 2003-09-26 04:41 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
includes changes suggested by Brandy in comment #1 (cinelerra-1.1.7-r1.ebuild,1.56 KB, application/octet-stream)
2003-09-20 20:04 UTC, Nicolai Lissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Revilla Rodríguez 2003-09-15 03:56:52 UTC
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
Comment 1 Miguel Revilla Rodríguez 2003-09-15 03:56:52 UTC
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"
Comment 2 Brandy Westcott (RETIRED) gentoo-dev 2003-09-15 07:59:42 UTC
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. 
Comment 3 Luca Barbato gentoo-dev 2003-09-15 13:49:23 UTC
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
Comment 4 Nicolai Lissner 2003-09-20 19:58:38 UTC
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.
Comment 5 Nicolai Lissner 2003-09-20 20:04:11 UTC
Created attachment 18060 [details]
includes changes suggested by Brandy in comment #1
Comment 6 Luca Barbato gentoo-dev 2003-09-26 04:41:46 UTC
added the patch