Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50447 - mcdp-0.3j do not compile under dietlibc & 2.4 kernel-headers.
Summary: mcdp-0.3j do not compile under dietlibc & 2.4 kernel-headers.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-08 05:49 UTC by Antonio
Modified: 2005-02-03 05:50 UTC (History)
3 users (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 Antonio 2004-05-08 05:49:25 UTC
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.
Comment 1 Antonio 2004-05-08 05:49:57 UTC
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"
Comment 2 Sven Wegener gentoo-dev 2004-05-08 07:38:54 UTC
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
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-10 10:03:56 UTC
This looks like a problem with dietlibc & linux-headers-2.4... not with sound.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2004-05-10 10:30:07 UTC
sorry, jeremy
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2004-05-10 10:55:29 UTC
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... ;)
Comment 6 Antonio 2004-09-05 05:54:18 UTC
Ok this bug is resolv.
mcdp-0.3j emerge well.
Close.
Comment 7 Sven Wegener gentoo-dev 2004-09-05 11:18:35 UTC
Wrong, mcdp still fails to compile with USE="diet" and linux-headers-2.4.
Comment 8 Antonio 2004-09-05 11:25:25 UTC
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)
Comment 9 solar (RETIRED) gentoo-dev 2005-01-30 11:15:32 UTC
sorry dietlibc does not really meat the needs of embedded.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-02-03 03:06:38 UTC
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.