When emerge mcdp-0.3j this is error: Calculating dependencies ...done! >>> emerge (1 of 1) media-sound/mcdp-0.3j to / >>> md5 src_uri ;-) mcdp-0.3j.tar.gz >>> Unpacking source... >>> Unpacking mcdp-0.3j.tar.gz to /var/tmp/portage/mcdp-0.3j/work >>> Source unpacked. diet gcc -Os -Wall -pipe -fomit-frame-pointer -c cddb.c -o cddb.o In file included from /usr/include/linux/byteorder/little_endian.h:82, from /usr/include/asm/byteorder.h:65, from /usr/include/linux/cdrom.h:14, from mcdp.h:30, from cddb.c:1: /usr/include/linux/byteorder/generic.h:153: error: conflicting types for `ntohl' /usr/diet/include/netinet/in.h:361: error: previous declaration of `ntohl' /usr/include/linux/byteorder/generic.h:154: error: conflicting types for `htonl' /usr/diet/include/netinet/in.h:359: error: previous declaration of `htonl' cddb.c: In function `cddb_parseentry': cddb.c:35: warning: operation on `tr' may be undefined make: *** [cddb.o] Error 1 !!! ERROR: media-sound/mcdp-0.3j failed. !!! Function src_compile, Line 18, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
My info: Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo-r2) ================================================================= System uname: 2.4.25-gentoo-r2 i686 AMD Athlon(tm) XP 1700+ Gentoo Base System version 1.4.10 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://sunsite.cnlab-switch.ch/mirror/gentoo/ ftp://planetmirror.com/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib acl acpi acpi4linux afs alsa apache2 apm arts autofs avi berkdb bonobo cddb cdr clamav crypt cups curl dillo doc dv dvb dvd dvdr encode esd evms2 faad fam ffmpeg flac foomaticdb gd gdbm ggi gif gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jabber java javascript jpeg kde ldirectord libdsk libg++ libgda libwww mad mbox mikmod mmx motif mozilla mpeg mpeg4 mysql nas ncurses net nls nvidia oav odbc oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff transcode truetype type1 usb v4l virus-scan x86 xfs xine xml2 xmms xv zlib"
compiles clean over here on 2 systems (x86 and ~x86). tested on ~x86 with dietlibc 0.24 tested on x86 with dietlibc 0.22-r2 0.23 0.24 Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-G-R2) ================================================================= System uname: 2.6.3-G-R2 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz Gentoo Base System version 1.4.10 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -fforce-addr -fmove-all-movables -march=pentium4 -mmmx -msse" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -fforce-addr -fmove-all-movables -march=pentium4 -mmmx -msse -Wno-deprecated" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://gentoo.mirror.at.stealer.net/gentoo-portage" USE="X aac aalib acl acpi aim alsa avi berkdb bluetooth crypt cups curl dvd encode esd evms2 exiscan exiscan-acl foomaticdb gd gd-external gdbm gif gimpprint gnome gpm gtk gtk2 guile imlib ipv6 jabber java jpeg libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg msn ncurses nls nptl oggvorbis opengl pam pcmcia pdflib perl pic png pnp python readline ruby sdl slang spell sqlite sse ssl tcltk tcpd tiff truetype usb wmf x86 xchattext xine xml xml2 xmms xv yahoo zlib" note: i'm using sys-kernel/linux-headers-2.6.4
This looks like a problem with dietlibc & linux-headers-2.4... not with sound.
sorry, jeremy
dietlibc's metadata.xml is missing a <maintainer> and herd is set to no-herd, so youu embedded guys might want to fix that... I didn't know where to reassign this... ;)
Ok this bug is resolv. mcdp-0.3j emerge well. Close.
Wrong, mcdp still fails to compile with USE="diet" and linux-headers-2.4.
oppssss. OK Reopen this bug. gentoonet mcdp # USE="diet" ebuild mcdp-0.3j.ebuild install >>> md5 src_uri ;-) mcdp-0.3j.tar.gz >>> Checking mcdp-0.3j.tar.gz's mtime... >>> WORKDIR is up-to-date, keeping... diet diet gcc -Os -Wall -pipe -fomit-frame-pointer -c cddb.c -o cddb.o diet gcc -Os -Wall -pipe -fomit-frame-pointer -c cddev.c -o cddev.o diet gcc -Os -Wall -pipe -fomit-frame-pointer -c draw.c -o draw.o In file included from /usr/include/linux/byteorder/little_endian.h:82, from /usr/include/asm/byteorder.h:65, from /usr/include/linux/cdrom.h:14, from mcdp.h:30, from cddb.c:1: /usr/include/linux/byteorder/generic.h:153: error: conflicting types for `ntohl' /usr/diet/include/netinet/in.h:361: error: previous declaration of `ntohl' /usr/include/linux/byteorder/generic.h:154: error: conflicting types for `htonl' /usr/diet/include/netinet/in.h:359: error: previous declaration of `htonl' cddb.c: In function `cddb_parseentry': cddb.c:35: warning: operation on `tr' may be undefined make: *** [cddb.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from /usr/include/linux/byteorder/little_endian.h:82, from /usr/include/asm/byteorder.h:65, from /usr/include/linux/cdrom.h:14, from mcdp.h:30, from cddev.c:1: /usr/include/linux/byteorder/generic.h:153: error: conflicting types for `ntohl' /usr/diet/include/netinet/in.h:361: error: previous declaration of `ntohl' /usr/include/linux/byteorder/generic.h:154: error: conflicting types for `htonl' /usr/diet/include/netinet/in.h:359: error: previous declaration of `htonl' make: *** [cddev.o] Error 1 In file included from /usr/include/linux/byteorder/little_endian.h:82, from /usr/include/asm/byteorder.h:65, from /usr/include/linux/cdrom.h:14, from mcdp.h:30, from draw.c:1: /usr/include/linux/byteorder/generic.h:153: error: conflicting types for `ntohl' /usr/diet/include/netinet/in.h:361: error: previous declaration of `ntohl' /usr/include/linux/byteorder/generic.h:154: error: conflicting types for `htonl' /usr/diet/include/netinet/in.h:359: error: previous declaration of `htonl' make: *** [draw.o] Error 1 !!! ERROR: media-sound/mcdp-0.3j failed. !!! Function src_compile, Line 20, Exitcode 2 !!! (no error message)
sorry dietlibc does not really meat the needs of embedded.
I've fixed it now, but in future I believe it would most suitable for the package maintainers (sound herd in this case) to fix this sort of bug. sound: ^^^ embedded, dev-embedded: as we can expect more bugs like this for anything that uses dietlibc (as much as some of us loath it), we should offer suggestions/comments on how the maintainers can fix their packages.