fails to compile mail-mta/netqmail-1.0 and stops with an error. Reproducible: Always Steps to Reproduce: 1.emerge -vt netqmail Actual Results: ./compile qmail-pop3d.c qmail-tcpok.c: In function ‘main’: qmail-tcpok.c:15: warning: return type of ‘main’ is not ‘int’ ./compile commands.c In file included from qmail-pw2u.c:6: readwrite.h:4: error: conflicting types for ‘read’ /usr/include/unistd.h:327: error: previous declaration of ‘read’ was here readwrite.h:5: error: conflicting types for ‘write’ /usr/include/unistd.h:333: error: previous declaration of ‘write’ was here qmail-pw2u.c: In function ‘main’: qmail-pw2u.c:235: warning: return type of ‘main’ is not ‘int’ make: *** [qmail-pw2u.o] Error 1 make: *** Waiting for unfinished jobs.... qmail-pop3d.c:48: warning: conflicting types for built-in function ‘puts’ qmail-pop3d.c: In function ‘main’: qmail-pop3d.c:293: warning: return type of ‘main’ is not ‘int’ [31;01m*[0m [31;01m*[0m ERROR: mail-mta/netqmail-1.06 failed. [31;01m*[0m Call stack: [31;01m*[0m ebuild.sh, line 49: Called src_compile [31;01m*[0m environment, line 2911: Called qmail_src_compile [31;01m*[0m environment, line 2632: Called die [31;01m*[0m The specific snippet of code: [31;01m*[0m emake it man "$@" || die "make failed" [31;01m*[0m The die message: [31;01m*[0m make failed [31;01m*[0m [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant. [31;01m*[0m A complete build log is located at '/var/tmp/portage/mail-mta/netqmail-1.06/temp/build.log'. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/mail-mta/netqmail-1.06/temp/environment'. [31;01m*[0m Expected Results: it compiles
Portage 2.2_rc15 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.27-gentoo-r3 x86_64) ================================================================= System uname: Linux-2.6.27-gentoo-r3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5 Timestamp of tree: Sat, 22 Nov 2008 18:46:01 +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_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.4.6-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r2 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-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -msse3" 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 /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/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=athlon64 -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.virginmedia.com/ " LANG="en_GB.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en_GB en_US" MAKEOPTS="-j3" 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 aac acl acpi aim alsa amd64 apache2 avahi berkdb branding bzip2 cairo cdr cli cracklib crypt css ctype cups curl dbus dri dvd dvdr dvdread ffmpeg firefox flac fortran gd gdbm gif glut gnome gpm gstreamer gtk hal iconv icq ipv6 isdnlog java jpeg jpeg2k kde mad mhash midi mmx mp3 mpeg msn mudflap multilib mysql mysqli ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl php png pppd python qt3 qt4 quicktime readline reflection sasl session sockets spl sqlite sse sse2 ssl ssse3 sysfs tcpd threads tiff truetype type1 unicode usb vorbis xml xorg xvid zip 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 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en_US" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
This seems to solve it diff -crB /var/tmp/portage/mail-mta/netqmail-1.06/work/netqmail-1.06/qmail-pw2u.c /root/netqmail-1.06/qmail-pw2u.c *** /var/tmp/portage/mail-mta/netqmail-1.06/work/netqmail-1.06/qmail-pw2u.c 2008-11-22 19:33:55.000000000 +0000 --- /root/netqmail-1.06/qmail-pw2u.c 2008-11-22 19:33:23.000000000 +0000 *************** *** 2,8 **** #include <sys/types.h> #include <sys/stat.h> #include "substdio.h" - #include "readwrite.h" #include "subfd.h" #include "sgetopt.h" #include "control.h" --- 2,7 ---- Only in /root/netqmail-1.06/: qmail-pw2u.c~ diff -crB /var/tmp/portage/mail-mta/netqmail-1.06/work/netqmail-1.06/qmail-qmtpd.c /root/netqmail-1.06/qmail-qmtpd.c *** /var/tmp/portage/mail-mta/netqmail-1.06/work/netqmail-1.06/qmail-qmtpd.c 2008-11-22 19:33:55.000000000 +0000 --- /root/netqmail-1.06/qmail-qmtpd.c 2008-11-22 19:33:23.000000000 +0000 *************** *** 9,15 **** #include "sig.h" #include "rcpthosts.h" #include "auto_qmail.h" - #include "readwrite.h" #include "control.h" #include "received.h" --- 9,14 ----
Created attachment 173284 [details, diff] suggested patch
fixed, thanks