net-proxy/dante-1.1.19-r2 fails to build Reproducible: Always Steps to Reproduce: 1. emerge dante Actual Results: interposition.c: In Funktion »accept«: interposition.c:578: Fehler: Argument »addr« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:210: Fehler: Prototyp-Deklaration interposition.c: In Funktion »bind«: interposition.c:591: Fehler: Argument »name« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:111: Fehler: Prototyp-Deklaration interposition.c: In Funktion »connect«: interposition.c:614: Fehler: Argument »name« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:124: Fehler: Prototyp-Deklaration interposition.c: In Funktion »getpeername«: interposition.c:628: Fehler: Argument »name« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:129: Fehler: Prototyp-Deklaration interposition.c: In Funktion »getsockname«: interposition.c:641: Fehler: Argument »name« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:115: Fehler: Prototyp-Deklaration interposition.c: In Funktion »recvfrom«: interposition.c:693: Fehler: Argument »from« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:163: Fehler: Prototyp-Deklaration interposition.c: In Funktion »sendto«: interposition.c:778: Fehler: Argument »to« passt nicht zum Prototypen /usr/include/gentoo-multilib/amd64/sys/socket.h:152: Fehler: Prototyp-Deklaration make[1]: *** [interposition.lo] Fehler 1 make[1]: *** Warte auf noch nicht beendete Prozesse... libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c ../lib/debug.c -fPIC -DPIC -o .libs/debug.o mv -f .deps/int_osf3.Tpo .deps/int_osf3.Plo libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT int_osf2.lo -MD -MP -MF .deps/int_osf2.Tpo -c int_osf2.c -fPIC -DPIC -o .libs/int_osf2.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT io.lo -MD -MP -MF .deps/io.Tpo -c ../lib/io.c -fPIC -DPIC -o .libs/io.o libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT int_osf2.lo -MD -MP -MF .deps/int_osf2.Tpo -c int_osf2.c -o int_osf2.o >/dev/null 2>&1 libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT int_osf1.lo -MD -MP -MF .deps/int_osf1.Tpo -c int_osf1.c -o int_osf1.o >/dev/null 2>&1 libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT debug.lo -MD -MP -MF .deps/debug.Tpo -c ../lib/debug.c -o debug.o >/dev/null 2>&1 mv -f .deps/int_osf1.Tpo .deps/int_osf1.Plo mv -f .deps/int_osf2.Tpo .deps/int_osf2.Plo libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT config_parse.lo -MD -MP -MF .deps/config_parse.Tpo -c config_parse.c -o config_parse.o >/dev/null 2>&1 libtool: compile: x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -march=nocona -O2 -pipe -g -pipe -MT io.lo -MD -MP -MF .deps/io.Tpo -c ../lib/io.c -o io.o >/dev/null 2>&1 mv -f .deps/debug.Tpo .deps/debug.Plo mv -f .deps/io.Tpo .deps/io.Plo mv -f .deps/config_parse.Tpo .deps/config_parse.Plo make[1]: Leaving directory `/var/tmp/portage/net-proxy/dante-1.1.19-r2/work/dante-1.1.19/dlib' make: *** [all-recursive] Fehler 1 * * ERROR: net-proxy/dante-1.1.19-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2591: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/net-proxy/dante-1.1.19-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-proxy/dante-1.1.19-r2/temp/environment'. * snsjpae joh # emerge --info Portage 2.2_rc1 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.25-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.25-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-glibc2.2.5 Timestamp of tree: Wed, 25 Jun 2008 04:45:03 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r5 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/" LANG="de_DE@euro" LC_ALL="de_DE@euro" LDFLAGS="" LINGUAS="de en_GB" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" 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.europe.gentoo.org/gentoo-portage" USE="X a52 aac acpi alsa amd64 arts audiofile battery berkdb bzip2 cairo cddb cdparanoia cdr cli cpudetection cpufreq cracklib crypt css cups curl dbus disk-partition divx dri dts dvb dvd dvdnav dvdr dvdread eds emboss encode esd exif fam fame ffmpeg firefox flac fortran gdbm gdm gif gnome gnutls gpm gs gstreamer gtk gtk2 hal iconv idea imagemagick isdnlog java javascript jpeg jpeg2k kde kqemu lame ldap lzo mad midi mikmod mjpeg mp2 mp3 mp4 mpeg mudflap musepack musicbrainz ncurses network nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection rtc samba sdl session socks5 speex spell spl sqlite ssl startup-notification svg tcpd tga theora tiff tordns truetype unicode usb v4l v4l2 vcd vorbis wifi x264 xcomposite xml xorg xscreensaver xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" DVB_CARDS="dibusb-usb1" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 158351 [details] build.log of dante
The error also occurs on ~x86 Portage 2.2_rc1 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.25-gentoo-r5-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-glibc2.0 Timestamp of tree: Wed, 25 Jun 2008 08:16:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r5 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.62 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r2 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.club-internet.fr/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/" LANG="fr_FR.utf8" LC_ALL="fr_FR.utf8" LDFLAGS="" LINGUAS="fr fr_FR en en_GB sv sv_SE" MAKEOPTS="-j5" PKGDIR="/var/tmp/binpkgs" 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" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.zugaina.org/gentoo-portage" USE="X acl acpi aiglx alsa berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode evo exif fam firefox flac fortran gdbm gif gimp gnome gpm gstreamer gtk gtk2 hal iconv isdnlog jpeg jpeg2ki libnotify mad midi mikmod mmx mp3 mpeg msn mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection ruby sdl session spell spl sqlite3 sse sse2 ssl svg tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR en en_GB sv sv_SE" USERLAND="GNU" VIDEO_CARDS="i810 vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
In English: make[1]: Entering directory `/gentoo/tmp/portage/net-proxy/dante-1.1.19-r2/work/dante-1.1.19/dlib' libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -O2 -mtune=native -march=native -pipe -g -pipe -MT int_osf1.lo -MD -MP -MF .deps/int_osf1.Tpo -c int_osf1.c -fPIC -DPIC -o .libs/int_osf1.o libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -O2 -mtune=native -march=native -pipe -g -pipe -MT interposition.lo -MD -MP -MF .deps/interposition.Tpo -c interposition.c -fPIC -DPIC -o .libs/interposition.o libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -O2 -mtune=native -march=native -pipe -g -pipe -MT int_osf1.lo -MD -MP -MF .deps/int_osf1.Tpo -c int_osf1.c -o int_osf1.o >/dev/null 2>&1 interposition.c: In function ‘accept’: interposition.c:578: error: argument ‘addr’ doesn’t match prototype /usr/include/sys/socket.h:210: error: prototype declaration interposition.c: In function ‘bind’: interposition.c:591: error: argument ‘name’ doesn’t match prototype /usr/include/sys/socket.h:111: error: prototype declaration interposition.c: In function ‘connect’: interposition.c:614: error: argument ‘name’ doesn’t match prototype /usr/include/sys/socket.h:125: error: prototype declaration interposition.c: In function ‘getpeername’: interposition.c:628: error: argument ‘name’ doesn’t match prototype /usr/include/sys/socket.h:129: error: prototype declaration interposition.c: In function ‘getsockname’: interposition.c:641: error: argument ‘name’ doesn’t match prototype /usr/include/sys/socket.h:115: error: prototype declaration interposition.c: In function ‘recvfrom’: interposition.c:693: error: argument ‘from’ doesn’t match prototype /usr/include/sys/socket.h:162: error: prototype declaration interposition.c: In function ‘sendto’: interposition.c:778: error: argument ‘to’ doesn’t match prototype /usr/include/sys/socket.h:151: error: prototype declaration make[1]: *** [interposition.lo] Error 1 make[1]: *** Waiting for unfinished jobs.... libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -O2 -mtune=native -march=native -pipe -g -pipe -MT int_osf2.lo -MD -MP -MF .deps/int_osf2.Tpo -c int_osf2.c -fPIC -DPIC -o .libs/int_osf2.o libtool: compile: i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I../include -I../include -I../libscompat -DDEBUG -DSOCKS_CLIENT=1 -DSOCKS_SERVER=0 -DSOCKSLIBRARY_DYNAMIC=1 -O2 -mtune=native -march=native -pipe -g -pipe -MT int_osf2.lo -MD -MP -MF .deps/int_osf2.Tpo -c int_osf2.c -o int_osf2.o >/dev/null 2>&1 make[1]: Leaving directory `/gentoo/tmp/portage/net-proxy/dante-1.1.19-r2/work/dante-1.1.19/dlib' make: *** [all-recursive] Error 1 make: Leaving directory `/gentoo/tmp/portage/net-proxy/dante-1.1.19-r2/work/dante-1.1.19' * * ERROR: net-proxy/dante-1.1.19-r2 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2546: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/net-proxy:dante-1.1.19-r2:20080625-123417.log'. * The ebuild environment file is located at '/gentoo/tmp/portage/net-proxy/dante-1.1.19-r2/temp/environment'. * * GNU info directory index is up-to-date.
Investigating the first error message for the addr argument to accept. From /usr/include/socket.h (sys-libs/glibc-2.8_p20080602 on ~x86): #if defined __cplusplus || !__GNUC_PREREQ (2, 7) || !defined __USE_GNU # define __SOCKADDR_ARG struct sockaddr *__restrict ... #else ... typedef union { ... } __SOCKADDR_ARG ...; #endif ... extern int accept (int __fd, __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len); In the -r1 code, __USE_GNU was not defined, therefore __SOCKADDR_ARG was a preprocessor macro, which matched the macro HAVE_PROT_ACCEPT_2 from include/autoconf.h well enough. In -r2, for some reason __USE_GNU got defined, turning that argument from a pointer into a union, while HAVE_PROT_ACCEPT_2 stays as it was. __USE_GNU was defined by features.h conditioned on _GNU_SOURCE, which was defined by include/autoconf.h due to changes in the configure script. So I guess the new invocation of eautoreconf is the cause of this difference.
AC_AIX on line 24 of configure.ac is the problem. In the newer autoconf, it enables extensions on all systems, including GNU_SOURCE. Removing that line allows the compile to succeed.
Fixed in cvs by removing AC_AIX. Thanks for the tip!
*** Bug 229457 has been marked as a duplicate of this bug. ***