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"
*** Bug 32723 has been marked as a duplicate of this bug. ***
Created attachment 20281 [details] config.log for libsamplerate
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 ..
What package is rfftw.h from? I don't have that header on my system which is why things work for me.
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.
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.
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.
we didnt introduce the gentoo versioning until later packages
How are things coming with the upgrades? Is this still a valid bug?
closing
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.