Hello, During re-emerging all openssl linked applications qmail-1.03-r16 fail to emerge with this error : [...] ./compile base64.c ./compile tls.c ./compile ssl_timeoutio.c rm -f trysalen.o ./compile qmail-rspawn.c tls.c:12: erreur: conflicting types for
Hello, During re-emerging all openssl linked applications qmail-1.03-r16 fail to emerge with this error : [...] ./compile base64.c ./compile tls.c ./compile ssl_timeoutio.c rm -f trysalen.o ./compile qmail-rspawn.c tls.c:12: erreur: conflicting types for strerror /usr/include/gentoo-multilib/amd64/string.h:256: erreur: previous declaration of strerror was here make: *** [tls.o] Erreur 1 make: *** Attente des tâches non terminées.... qmail-remote.c: In function main: qmail-remote.c:860: attention : return type of main is not int The answer of emerge -pv qmail : [ebuild R ] mail-mta/qmail-1.03-r16 USE="noauthcram notlsbeforeauth ssl -gencertdaily -logmail -mailwrapper (-selinux)" 0 kB And my emerge --info : Portage 2.1.1_rc1-r2 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.17-gentoo-r5 x86_64) ================================================================= System uname: 2.6.17-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Gentoo Base System version 1.12.4 Last Sync: Fri, 01 Sep 2006 05:50:01 +0000 ccache version 2.4 [enabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-lang/python: 2.4.3-r3 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r2 dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2, 2.17 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.16 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -mtune=k8 -momit-leaf-frame-pointer -ftracer -ggdb -pipe -mmmx -msse -msse2 -m3dnow" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /var/www/localhost/htdocs/phppgadmin/conf" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8 -mtune=k8 -momit-leaf-frame-pointer -ftracer -ggdb -pipe -mmmx -msse -msse2 -m3dnow" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.ovh.net/gentoo-distfiles/" LANG="fr_FR.UTF-8" LC_ALL="fr_FR.UTF-8" LINGUAS="fr" MAKEOPTS="-j5" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X X509 Xaw3d a52 aac acl acpi adns alsa amd64 apache2 artworkextra audiofile avi bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 c++ cairo caps cddb cdr chroot cli crypt cups curl dbm dbus dga divx4linux dlloader dmx dri dts dv dvd dvdr eds elibc_glibc emboss encode esd evo exif expat ext-png ext-zlib fam fbcon ffmpeg firefox flac foomaticdb fortran ftp gcc-libffi gcj gd gd-external gdbm gif gimp gimpprint gkrellm glade gmp gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal howl idn ieee1394 imagemagick imap imlib imlib2 innodb input_devices_evdev input_devices_keyboard input_devices_mouse input_devices_radeon ipv6 isdnlog jabber java javamail jbig jce jikes jpeg jpeg2k junit kernel_linux lame latex lcms ldap libnotify linguas_fr lm_sensors logrotate lzo lzw lzw-tiff mad mhash mime mng motif mozilla mp3 mpeg mpeg4 mysql ncurses nfs nls nptl nsplugin objc ogg oggvorbis openal opengl oss pam pcre pda pdf pdflib perl php png posix postgres ppds pppd python qt3 qt4 quicktime readline reflection samba scanner sdl seamonkey session silc smime smp speex spell spl sqlite ssl svg sysfs syslog tcl tcltk tcpd tga theora threads tidy tiff tiff-lzw tk truetype truetype-fonts type1-fonts unicode usb userland_GNU userlocales v4l v4l2 video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_v4l video_cards_vesa vorbis xine xinetd xml xorg xosd xpm xrandr xv xvid xvmc yahoo yv12 zeroconf zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I can confirm this problem on x86.
Maybe something related to multilib. I've no idea about that. Can you try netqmail, please?
Michael, ./compile qmail-rspawn.c tls.c:12: erreur: conflicting types for
Michael, ./compile qmail-rspawn.c tls.c:12: erreur: conflicting types for strerror /usr/include/gentoo-multilib/amd64/string.h:256: erreur: previous declaration of strerror was here says that tls.c has a redefinition of 'strerror'. strerror() is a POSIX function, so you'll hit that error pretty much everywhere, it's not related to multilib.
Okay, reproduced. Please try mail-mta/netqmail nonetheless. It includes not that many patches. mail-mta/qmail is a patchy mess.
tls.c only contains a prototype for strerror, so that tls.c doesn't need to include string.h. So could you try to answer a few things please? 1. what is the prototype for strerror in your /usr/include/gentoo-multilib/amd64/string.h file? 2. where is string.h being included? because it definetly isn't coming from tls.c 3. why is GCC4 complaining over a prototype, whereas GCC3 didn't.
Fixed in CVS. Please test and close this bug.
Fixed, thanks.
*** Bug 147325 has been marked as a duplicate of this bug. ***