Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 108527

Summary: small error breaks sse support in speex-1.1.10
Product: Gentoo Linux Reporter: Olivier Castan <castan.o>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Olivier Castan 2005-10-08 12:28:22 UTC
Upgrading speex to 1.1.10 :
# emerge -uv --oneshot speex
Calculating dependencies  >>> Unpacking source...
>>> Unpacking speex-1.1.10.tar.gz to
/home/portage/tmp/portage/speex-1.1.10/work>>> Source unpacked.
 * econf: updating speex-1.1.10/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating speex-1.1.10/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --enable-sse --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
[...]
if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.
-I. -I.. -I../include -I../include -I.. -I/usr/include    -march=athlon-xp -O3
-pipe -O3 -msse -MT vq.lo -MD -MP -MF ".deps/vq.Tpo" -c -o vq.lo vq.c; \
then mv -f ".deps/vq.Tpo" ".deps/vq.Plo"; else rm -f ".deps/vq.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include
-I.. -I/usr/include -march=athlon-xp -O3 -pipe -O3 -msse -MT vq.lo -MD -MP -MF
.deps/vq.Tpo -c vq.c  -fPIC -DPIC -o .libs/vq.o
vq.c:99: error: conflicting types for 'vq_nbest'
vq.h:44: error: previous declaration of 'vq_nbest' was here
vq.c:99: error: conflicting types for 'vq_nbest'
vq.h:44: error: previous declaration of 'vq_nbest' was here
vq.c:133: error: conflicting types for 'vq_nbest_sign'
vq.h:46: error: previous declaration of 'vq_nbest_sign' was here
vq.c:133: error: conflicting types for 'vq_nbest_sign'
vq.h:46: error: previous declaration of 'vq_nbest_sign' was here
make[2]: *** [vq.lo] Erreur 1
make[2]: Leaving directory
`/home/portage/tmp/portage/speex-1.1.10/work/speex-1.1.10/libspeex'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory
`/home/portage/tmp/portage/speex-1.1.10/work/speex-1.1.10'
make: *** [all] Erreur 2

!!! ERROR: media-libs/speex-1.1.10 failed.
!!! Function src_compile, Line 28, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

I've modified the ebuild to patch libspeex/vq.c to look like libspeex/filter.c
or libspeex/ltp.c, ie to include the _sse.h header if _USE_SSE is defined :

--- /usr/portage/media-libs/speex/speex-1.1.10.ebuild.old       2005-10-08
20:19:24.000000000 +0200
+++ /usr/portage/media-libs/speex/speex-1.1.10.ebuild   2005-10-08
20:23:21.000000000 +0200
@@ -22,6 +22,9 @@
        #       && myconf="--with-ogg=/usr" \
        #       || myconf="--without-ogg"

+       # Correct include for sse support
+       sed -i -e 's/<xmmintrin.h>/"vq_sse.h"/' libspeex/vq.c
+
        myconf="${myconf} $(use_enable sse)"

        econf ${myconf} || die

... and it builds fine


Reproducible: Always
Steps to Reproduce:




$ emerge info

Portage 2.0.53_rc4 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r1 i686)
=================================================================
System uname: 2.6.13-gentoo-r1 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.2.3-r5, 2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/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.4/env /usr/kde/3.4/share/config
/usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://128.213.5.34/gentoo/
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.mirror.sdv.fr"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X X509 a52 aac aalib acl acpi acpi4linux alsa apm avi
bash-completion berkdb bitmap-fonts bonobo browserplugin cdr chroot codecs crypt
css cups curl dga dillo directfb divx4linux dnd dts dv dvd dvdread eds emboss
encode erandom esd ethereal exif faac faad fam fame fbcon ffmpeg firefox flac
font-server foomaticdb fortran gd gdbm ggi gif gimp gimpprint gnome gnome-print
gnomedb gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml hal hardened imagemagick
imlib java jikes jp2 jpeg jpeg2k junit libcaca libg++ libwww live lzo mad
mailwrapper matroska md5sum mikmod mime mjpeg mmx mmxext mng motif moznoirc
moznomail mozsvg mp3 mpeg mpeg4 mplayer ncurses network nls nptl nsplugin ntlm
nvidia offensive ogg oggvorbis opengl oss pam pcap pdflib perl physfs pic pie
png ppds python qt quicktime rar readline real rtc scanner sdl slang smime speex
spell sse ssl stencil-buffer stream subtitles svg svga tcltk tcpd tetex tga
theora tiff transcode truetype truetype-fonts type1-fonts unicode usb
userlocales vidix vim-with-x vlm vorbis win32codecs wmf xanim xface xine xml
xml2 xmms xosd xprint xv xvid xvmc yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 MATSUU Takuto (RETIRED) gentoo-dev 2005-10-08 15:24:06 UTC

*** This bug has been marked as a duplicate of 108460 ***