Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86533 - media-libs/libvisual-0.2.0 compilation error
Summary: media-libs/libvisual-0.2.0 compilation error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-24 08:01 UTC by David Baehrens
Modified: 2005-04-06 13:14 UTC (History)
0 users

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


Attachments
replace #if with #ifdef (libvisual-0.2.0-ifdef.patch,422 bytes, patch)
2005-03-24 08:03 UTC, David Baehrens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Baehrens 2005-03-24 08:01:21 UTC
#if instead of #ifdef in lv_cpu.c:426 causes compilation to fail. After including the trivial patch (attached) libvisual merges and works as expected.

compiler error:
if /bin/sh ../libtool --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libvisual -I.. -I../libvisual   -DPLUGPATH="\"/usr/lib/libvisual\"" -mcpu=750 -O3 -pipe -mpowerpc-gfxopt   -MT lv_cpu.lo -MD -MP -MF ".deps/lv_cpu.Tpo" -c -o lv_cpu.lo lv_cpu.c; \
then mv -f ".deps/lv_cpu.Tpo" ".deps/lv_cpu.Plo"; else rm -f ".deps/lv_cpu.Tpo"; exit 1; fi
[...]
 powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libvisual -I.. -I../libvisual -DPLUGPATH=\"/usr/lib/libvisual\" -mcpu=750 -O3 -pipe -mpowerpc-gfxopt -MT lv_cpu.lo -MD -MP -MF .deps/lv_cpu.Tpo -c lv_cpu.c  -fPIC -DPIC -o .libs/lv_cpu.o
[...]
lv_cpu.c:426:24: #if with no expression
[...]
make[2]: *** [lv_cpu.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
[...]
make[2]: Leaving directory `/var/tmp/portage/libvisual-0.2.0/work/libvisual-0.2.0/libvisual'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libvisual-0.2.0/work/libvisual-0.2.0'
make: *** [all] Error 2

Reproducible: Always
Steps to Reproduce:
1. emerge libvisual

Actual Results:  
compiler error  

Expected Results:  
successfull merge  

Gentoo Base System version 1.4.16 
Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.3, 
glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r6 ppc) 
================================================================= 
System uname: 2.6.10-gentoo-r6 ppc 740/750 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar  1 2005, 19:50:27)] 
ccache version 2.2 [enabled] 
dev-lang/python:     2.3.5 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 
sys-devel/binutils:  2.15.90.0.3-r3 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1 
ACCEPT_KEYWORDS="ppc" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=750 -O3 -pipe -mpowerpc-gfxopt" 
CHOST="powerpc-unknown-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/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/X11/xkb /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/alias /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mcpu=750 -O3 -pipe -mpowerpc-gfxopt" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X aalib alsa arts audiofile bash-completion bidi bitmap-fonts cdparanoia 
cdr crypt cups curl directfb dvd emacs emboss encode fam fbcon flac fortran 
gdbm ggi gif gpm gtk gtk2 imagemagick imap imlib java javascript jikes jpeg 
kde lesstif libcaca libwww mad maildir mng motif mozilla mp3 mpeg ncurses nls 
nptl objc oggvorbis opengl pam pcre pdflib perl pic plotutils png pnp ppc 
python qt readline samba sdl slang slp speex spell ssl svg tcpd tetex theora 
tiff truetype truetype-fonts type1-fonts unicode wmf xface xine xinerama xml 
xml2 xprint xv xvid zlib video_cards_mach64 linguas_de" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 David Baehrens 2005-03-24 08:03:02 UTC
Created attachment 54348 [details, diff]
replace #if with #ifdef

trivial, but made it work.
Comment 2 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-06 13:14:33 UTC
fixed in cvs, thanks for reporting