Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21731 - emerge mpg123 fails due to missing system header file.
Summary: emerge mpg123 fails due to missing system header file.
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-26 16:23 UTC by J.C. Wren
Modified: 2006-02-04 06:05 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J.C. Wren 2003-05-26 16:23:49 UTC
audio_sun.c is including <audiofile.h>, which does not exist.

Reproducible: Always
Steps to Reproduce:
emerge mpg123
Actual Results:  
Calculating dependencies ...done!
>>> emerge (1 of 1) media-sound/mpg123-0.59r-r2 to /
--- No package manifest found: /usr/portage/media-sound/mpg123/Manifest
>>> md5 src_uri ;-) mpg123-0.59r.tar.gz
>>> Unpacking source...
>>> Unpacking mpg123-0.59r.tar.gz to /var/tmp/portage/mpg123-0.59r-r2/work
patching file Makefile
patching file mpglib/Makefile
patching file audio_sun.c
>>> Source unpacked.
make   LDFLAGS= \
        OBJECTS='decode.o dct64.o audio_sun.o' \
        CFLAGS='-DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2 \
                -fomit-frame-pointer -funroll-all-loops \
                -finline-functions -ffast-math' \
        mpg123-make
make[1]: Entering directory `/var/tmp/portage/mpg123-0.59r-r2/work/mpg123-0.59r'
make[2]: Entering directory `/var/tmp/portage/mpg123-0.59r-r2/work/mpg123-0.59r'
gcc -DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2          
-fomit-frame-pointer -funroll-all-loops                 -finline-functions
-ffast-math   -c -o mpg123.o mpg123.c
mpg123.c: In function `shuffle_files':
mpg123.c:225: warning: implicit declaration of function `time'
mpg123.c: At top level:
mpg123.c:480: warning: initialization makes integer from pointer without a cast
gcc -DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2          
-fomit-frame-pointer -funroll-all-loops                 -finline-functions
-ffast-math   -c -o common.o common.c
gcc -DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2          
-fomit-frame-pointer -funroll-all-loops                 -finline-functions
-ffast-math   -c -o decode.o decode.c
gcc -DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2          
-fomit-frame-pointer -funroll-all-loops                 -finline-functions
-ffast-math   -c -o dct64.o dct64.c
gcc -DREAL_IS_FLOAT -DUSE_MMAP -DSPARCLINUX -Wall -O2          
-fomit-frame-pointer -funroll-all-loops                 -finline-functions
-ffast-math   -c -o audio_sun.o audio_sun.c
audio_sun.c:32:23: audiofile.h: No such file or directory
audio_sun.c: In function `audio_open':
audio_sun.c:71: warning: implicit declaration of function `ioctl'
make[2]: *** [audio_sun.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/mpg123-0.59r-r2/work/mpg123-0.59r'
make[1]: *** [mpg123-make] Error 2
make[1]: Leaving directory `/var/tmp/portage/mpg123-0.59r-r2/work/mpg123-0.59r'
make: *** [linux-sparc] Error 2

!!! ERROR: media-sound/mpg123-0.59r-r2 failed.
!!! Function src_compile, Line 59, Exitcode 2
!!! (no error message)




Portage 2.0.48 (default-sparc64-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21-rc3.custom sparc64 sun4u
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="sparc arts apm crypt encode esd fbcon gif imlib java jpeg libwww mikmod
mpeg ncurses oggvorbis oss png pdflib qt sdl spell xml2 xmms zlib gdbm berkdb
slang readline tcpd pam ssl perl python -avi -cups -gtk -gnome -kde -motif -nls
-opengl -truetype -X -xv"
COMPILER="gcc3"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
ACCEPT_KEYWORDS="sparc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 J.C. Wren 2003-05-26 18:33:10 UTC
emerging media-libs/audiofile allows mpg123 to build correctly.  Missing dependency?
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-05-27 21:07:33 UTC
Adding the sound folks to cc.  Wondering if this happens on other arches as well.
Comment 3 J. Ellis (RETIRED) gentoo-dev 2003-05-27 21:50:07 UTC
Yep, looks like a missing dep. Feel free to fix or assign to me and i'll take care of it.
Comment 4 J. Ellis (RETIRED) gentoo-dev 2003-05-28 08:28:59 UTC
I take it back. This is sparc specific:

diff -ur mpg123-0.59r.ORG/audio_sun.c mpg123-0.59r/audio_sun.c
--- mpg123-0.59r.ORG/audio_sun.c        Thu Feb  4 13:22:34 1999
+++ mpg123-0.59r/audio_sun.c    Fri May 10 07:31:28 2002
@@ -28,6 +28,11 @@
 #include <asm/audioio.h>
 #endif
 
+#ifdef SPARCLINUX
+#include <audiofile.h>
+#include <linux/soundcard.h>
+#endif
+
 static void audio_set_format_helper(struct audio_info_struct *ai,audio_info_t *
ainfo);

Over to you Weeve.
Comment 5 Jason Wever (RETIRED) gentoo-dev 2003-05-28 20:39:41 UTC
Commited fixed mpg123 ebuilds to have audiofile as a dependency.  Changes should show up after syncing portage in about half an hour or so.
Comment 6 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:37:59 UTC
Closing