Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32697 - media-libs/libsamplerate-0.0.14 fails to compile
Summary: media-libs/libsamplerate-0.0.14 fails to compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
: 32723 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-11-04 02:06 UTC by Michael Hellwig
Modified: 2004-01-04 02:18 UTC (History)
1 user (show)

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


Attachments
config.log for libsamplerate (config.log,32.73 KB, text/plain)
2003-11-05 00:35 UTC, Michael Hellwig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Hellwig 2003-11-04 02:06:10 UTC
wanted to emerge ardour on a ~x86 sytem and libsamplerate is the first dependency it tried to emerge ..

this ends the following way:

make[1]: Entering directory `/var/tmp/portage/libsamplerate-0.0.14/work/libsamplerate-0.0.14/examples'
source='sndfile-resample.c' object='sndfile_resample-sndfile-resample.o' libtool=no \
depfile='.deps/sndfile_resample-sndfile-resample.Po' tmpdepfile='.deps/sndfile_resample-sndfile-resample.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../src -I./../src     -march=athlon-xp -O3 -pipe -W -Wstrict-prototypes -Wmissing-prototypes -Wall -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -pipe -c -o sndfile_resample-sndfile-resample.o `test -f 'sndfile-resample.c' || echo './'`sndfile-resample.c
source='varispeed-play.c' object='varispeed_play-varispeed-play.o' libtool=no \
depfile='.deps/varispeed_play-varispeed-play.Po' tmpdepfile='.deps/varispeed_play-varispeed-play.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../src -I./../src     -march=athlon-xp -O3 -pipe -W -Wstrict-prototypes -Wmissing-prototypes -Wall -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -pipe -c -o varispeed_play-varispeed-play.o `test -f 'varispeed-play.c' || echo './'`varispeed-play.c
sndfile-resample.c: In function `main':
sndfile-resample.c:103: structure has no member named `frames'
sndfile-resample.c:141: `SFC_SET_ADD_PEAK_CHUNK' undeclared (first use in this function)
sndfile-resample.c:141: (Each undeclared identifier is reported only once
sndfile-resample.c:141: for each function it appears in.)
sndfile-resample.c:145: `SFC_SET_UPDATE_HEADER_AUTO' undeclared (first use in this function)
make[1]: *** [sndfile_resample-sndfile-resample.o] Error 1
make[1]: *** Waiting for unfinished jobs....
varispeed-play.c: In function `varispeed_play':
varispeed-play.c:136: warning: implicit declaration of function `sf_strerror'
varispeed-play.c:136: warning: passing arg 1 of `puts' makes pointer from integer without a cast
varispeed-play.c: In function `varispeed_get_data':
varispeed-play.c:217: structure has no member named `frames'
make[1]: *** [varispeed_play-varispeed-play.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/libsamplerate-0.0.14/work/libsamplerate-0.0.14/examples'
make: *** [all-recursive] Error 1

!!! ERROR: media-libs/libsamplerate-0.0.14 failed.
!!! Function src_compile, Line 22, Exitcode 2
!!! compile failed



this even happens with -O1 .. 

emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4, 2.4.22)
=================================================================
System uname: 2.4.22 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.2.9
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe"
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/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/root/pkgs"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg gnome libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex aalib bonobo svga tcltk java guile postgres X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt kde motif mozilla ldap cdr scanner opengl hyriand"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-11-04 15:56:04 UTC
*** Bug 32723 has been marked as a duplicate of this bug. ***
Comment 2 Michael Hellwig 2003-11-05 00:35:57 UTC
Created attachment 20281 [details]
config.log for libsamplerate
Comment 3 Michael Hellwig 2003-11-05 00:37:21 UTC
libsndfile is 1.0.4 on my system, config.log is the attachment i just posted
..

sorry 'bout the duplicate, I guess I clicked reload somewhere where I shouldn't
have ..
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2003-11-08 22:01:41 UTC
What package is rfftw.h from?  I don't have that header on my system which
is why things work for me.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2003-11-08 23:55:19 UTC
Michael -  This doesn't even look like a Gentoo Linux box.  For example,
here are some differences between our systems config.log files:

< uname -r = 2.4.22
---
> uname -r = 2.4.20-gentoo-r7

< gcc (GCC) 3.2.2
---
> gcc (GCC) 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r2, propolice)

where's the gentoo stuff?

I found rfftw.h in the dev-libs/fftw package, but when I merge that, I can
still build libsndfile just fine, so that's not the problem.
Comment 6 Michael Hellwig 2003-11-09 02:18:27 UTC
it's libsamplerate that doesn't build, not libsndfile, but I guess that was
just a short mishap or whatever.

yes, my kernel is a vanilla one, but that shouldn't pose any problems, should
it?

as to glibc and everything else: dunno, I installed my system as Gentoo from
0 in August 2002 and then didn't really update anything until June this year,
because I had no cheap net connection.

In June I followed that update gcc and glibc guide and then re-emerged system
and world. i.e. gcc and glibc are from around then. But definitely Gentoo
packages.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2003-11-09 02:42:45 UTC
can you try it with libsndfile 1.0.5 please?  That's what I have.

It seems like your system is generally behind - this is odd since you mention
that you're running with ~x86. Can you do a emerge -uD world and get up 
to date across the board?  Make sure that dev-libs/fftw and
media-libs/libsndfile get re-merged.
Comment 8 SpanKY gentoo-dev 2003-11-09 10:01:41 UTC
we didnt introduce the gentoo versioning until later packages
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2003-11-14 18:58:55 UTC
How are things coming with the upgrades?  Is this still a valid bug?
Comment 10 Martin Holzer (RETIRED) gentoo-dev 2003-12-18 15:18:29 UTC
closing
Comment 11 Michael Hellwig 2004-01-04 02:18:42 UTC
sorry, didn't try this in a while. Finally asked the programmer of libsamplerate what he thought about it and he hit the nail right on the head with his first suggestion: I had 2 versions of libsndfile installed in parallel. One of them (1.0.0) was lurking in /usr/local, and I hadn't even installed it myself. At some stage, before it was in portage, I installed faad2 to watch some quicktime movie. This audio codec installed libsndfile along with itself and I wasn't aware of it. Well anyway, I removed that old stuff from /usr/local and now things compile just fine.