When emerging lame-3.98 this error occurs : x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT lametime.o -MD -MP -MF .deps/lametime.Tpo -c -o lametime.o lametime.c mv -f .deps/get_audio.Tpo .deps/get_audio.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT parse.o -MD -MP -MF .deps/parse.Tpo -c -o parse.o parse.c mv -f .deps/lametime.Tpo .deps/lametime.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT portableio.o -MD -MP -MF .deps/portableio.Tpo -c -o portableio.o portableio.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT timestatus.o -MD -MP -MF .deps/timestatus.Tpo -c -o timestatus.o timestatus.c mv -f .deps/portableio.Tpo .deps/portableio.Po mv -f .deps/timestatus.Tpo .deps/timestatus.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT brhist.o -MD -MP -MF .deps/brhist.Tpo -c -o brhist.o brhist.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT mp3rtp.o -MD -MP -MF .deps/mp3rtp.Tpo -c -o mp3rtp.o mp3rtp.c parse.c: In function 'lame_version_print': parse.c:518: warning: field width should have type 'int', but argument 5 has type 'long unsigned int' parse.c:520: warning: field width should have type 'int', but argument 4 has type 'long unsigned int' mv -f .deps/parse.Tpo .deps/parse.Po x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../libmp3lame -I../include -I.. -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -MT rtp.o -MD -MP -MF .deps/rtp.Tpo -c -o rtp.o rtp.c mv -f .deps/brhist.Tpo .deps/brhist.Po /bin/sh ../libtool --tag=CC --mode=link x86_64-pc-linux-gnu-gcc -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-zdynsort,-z,--sort-common -s -lsndfile -lsndfile -o lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o ../libmp3lame/libmp3lame.la -lncurses -lsndfile -lm In file included from rtp.h:6, from mp3rtp.c:47: /usr/include/netinet/in.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'in_port_t' /usr/include/netinet/in.h:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'in_addr_t' /usr/include/netinet/in.h:140: error: expected specifier-qualifier-list before 'in_addr_t' /usr/include/netinet/in.h:198: error: expected specifier-qualifier-list before 'uint8_t' /usr/include/netinet/in.h:224: error: expected specifier-qualifier-list before 'in_port_t' /usr/include/netinet/in.h:238: error: expected specifier-qualifier-list before 'in_port_t' /usr/include/netinet/in.h:286: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:295: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:315: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:330: error: expected specifier-qualifier-list before 'uint32_t' In file included from rtp.h:6, from mp3rtp.c:47: /usr/include/netinet/in.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ntohl' /usr/include/netinet/in.h:362: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ntohs' /usr/include/netinet/in.h:364: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'htonl' /usr/include/netinet/in.h:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'htons' In file included from rtp.h:6, from mp3rtp.c:47: /usr/include/netinet/in.h:477: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:487: error: expected ';', ',' or ')' before '*' token /usr/include/netinet/in.h:489: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/netinet/in.h:493: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:496: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:503: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:503: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:510: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:513: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:534: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:535: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:540: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:541: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:547: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:549: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:550: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:554: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:556: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:557: error: expected declaration specifiers or '...' before 'uint32_t' mp3rtp.c: In function 'main': mp3rtp.c:258: warning: pointer targets in passing argument 1 of 'rtp_output' differ in signedness mp3rtp.c:264: warning: pointer targets in passing argument 1 of 'rtp_output' differ in signedness make[2]: *** [mp3rtp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from rtp.c:48: /usr/include/netinet/in.h:93: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'in_port_t' /usr/include/netinet/in.h:137: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'in_addr_t' /usr/include/netinet/in.h:140: error: expected specifier-qualifier-list before 'in_addr_t' /usr/include/netinet/in.h:198: error: expected specifier-qualifier-list before 'uint8_t' /usr/include/netinet/in.h:224: error: expected specifier-qualifier-list before 'in_port_t' /usr/include/netinet/in.h:238: error: expected specifier-qualifier-list before 'in_port_t' /usr/include/netinet/in.h:286: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:295: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:315: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:330: error: expected specifier-qualifier-list before 'uint32_t' In file included from rtp.c:48: /usr/include/netinet/in.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ntohl' /usr/include/netinet/in.h:362: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ntohs' /usr/include/netinet/in.h:364: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'htonl' /usr/include/netinet/in.h:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'htons' In file included from rtp.c:48: /usr/include/netinet/in.h:477: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/netinet/in.h:487: error: expected ';', ',' or ')' before '*' token /usr/include/netinet/in.h:489: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token /usr/include/netinet/in.h:493: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:496: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:503: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:503: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:510: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:513: error: expected declaration specifiers or '...' before 'uint8_t' /usr/include/netinet/in.h:534: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:535: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:540: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:541: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:547: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:549: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:550: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:554: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:556: error: expected declaration specifiers or '...' before 'uint32_t' /usr/include/netinet/in.h:557: error: expected declaration specifiers or '...' before 'uint32_t' In file included from rtp.c:49: /usr/include/arpa/inet.h:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_addr' /usr/include/arpa/inet.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_lnaof' /usr/include/arpa/inet.h:42: error: expected ')' before '__net' /usr/include/arpa/inet.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_netof' /usr/include/arpa/inet.h:50: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'inet_network' /usr/include/arpa/inet.h:78: error: expected ')' before '__net' rtp.c: In function 'makesocket': rtp.c:125: warning: implicit declaration of function 'inet_addr' rtp.c:127: error: 'struct sockaddr_in' has no member named 'sin_port' rtp.c:127: error: 'struct sockaddr_in' has no member named 'sin_port' rtp.c:128: error: 'struct sockaddr_in' has no member named 'sin_addr' make[2]: *** [rtp.o] Error 1 libtool: link: x86_64-pc-linux-gnu-gcc -O -g -Wall -Wall -pipe -march=native -O3 -pipe -msse3 -Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=gnu -Wl,-zdynsort -Wl,-z -Wl,--sort-common -s -o .libs/lame main.o console.o get_audio.o lametime.o parse.o portableio.o timestatus.o brhist.o -L/usr/lib ../libmp3lame/.libs/libmp3lame.so -lncurses /usr/lib64/libsndfile.so /usr/lib64/libFLAC.so -logg -lm make[2]: Leaving directory `/var/tmp/paludis/media-sound-lame-3.98/work/lame-398/frontend' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/paludis/media-sound-lame-3.98/work/lame-398' make: *** [all] Error 2 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in media-sound/lame-3.98: !!! In src_compile at line 4444 !!! emake failed Reproducible: Always
Created attachment 160159 [details] paludis --info
my USE flag for lame : * media-sound/lame [U 3.97-r1 -> 3.98] <target> debug mp3rtp sndfile
(In reply to comment #2) > my USE flag for lame : > > * media-sound/lame [U 3.97-r1 -> 3.98] <target> > debug mp3rtp sndfile > USE flag mp3rtp is the compilation failure cause. Without it the compilation works fine.
Can this be a glibc 2.8 problem, cause it seems to reject uint16_t ? See if 'append-flags -D_GNU_SOURCE' helps.
(In reply to comment #4) > Can this be a glibc 2.8 problem, cause it seems to reject > uint16_t ? > See if 'append-flags -D_GNU_SOURCE' helps. > No improvement when putting append-flags -D_GNU_SOURCE in src_compile section of the ebuild.
OK, it may be a bit more complicated. It still looks like it is a glibc 2.8 thing, only a bit more complicated. lame create a rather impressive config.h and it seems that it conflicts now with standard glibc headers. They decided not to use (now) standard glibc headers with inttypes definitions and it seems that they somehow undefine uint16_t with the way they done config.h (unless there's simply something wrong with your system).
Can't fully confirm/deny, cause still on 2.7.
Same compile issue here, glibc 2.8. mp3rtp is the only use flag I have enabled. Also confirm disabling it also works.
confirmed ! disabling mp3rtp flag "fixes" it, ~amd64, gcc-4.3.1 hardened pie,ssp, glibc-2.7
should be fixed now, thanks for reporting.
*** Bug 231697 has been marked as a duplicate of this bug. ***
I had the same issue with lame-3.98.4 but already had mp3rts disabled when I built with USE="-sndfile" built ok. emerge --info Portage 2.1.9.25 (hardened/linux/amd64, gcc-4.3.4, glibc-2.11.2-r3, 2.6.32-hardened-r9 x86_64) ================================================================= System uname: Linux-2.6.32-hardened-r9-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-1.12.14 Timestamp of tree: Tue, 21 Dec 2010 19:00:21 +0000 distcc 3.1 x86_64-pc-linux-gnu [enabled] app-shells/bash: 4.1_p7 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.5-r3, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.3.4, 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=athlon64" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=athlon64" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="-k -b --binpkg-respect-use y" FEATURES="assume-digests binpkg-logs distcc distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ " LANG="en_GB" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB en" MAKEOPTS="-j 10" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 apache2 apm aspell bash-completion berkdb bittorrent bzip2 calendar cddb cdparanoia cdr chroot clamav cli consolekit cracklib crypt css cups cvs cxx dbus dbx dedicated dri dvd dvdr encode ffmpeg firefox fortran gd gdbm gif gimp glut gpm hal hardened hddtemp iconv java javascript jpeg jpeg2k justify kde latex log4j mad mhash midi mmx mmxext mng modules mp3 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pax pcre pdf perl php pic pie png pppd python qt3support qt4 quicktime raw readline samba scanner sdl server session sndfile spell sql sse sse2 ssh ssl subversion svg svnserve sysfs tcpd tetex threads tidy tiff truetype udev unicode urandom v4l vcd videos vim-syntax vnc vorbis webkit win32codecs wmf x264 xine xml xorg xv xvid xvmc zip zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="mouse keyboard joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa nv v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY