emerging macopix gives compile-time errors with gcc 3.4.2-r3 Reproducible: Always Steps to Reproduce: 1.emerge macopix 2. 3. Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) x11-misc/macopix-1.2.1 to / >>> md5 src_uri ;-) macopix-1.2.1.tar.bz2 >>> md5 src_uri ;-) macopix-mascot-cosmos-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-mizuiro-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-pia2-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-tsukihime-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-triangle_heart-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-comic_party-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-kanon-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-one-ja-1.00.tar.gz >>> md5 src_uri ;-) macopix-mascot-marimite-euc-ja-2.10.tar.gz >>> Unpacking source... >>> Unpacking macopix-1.2.1.tar.bz2 to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-cosmos-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-mizuiro-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-pia2-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-tsukihime-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-triangle_heart-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-comic_party-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-kanon-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-one-ja-1.00.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Unpacking macopix-mascot-marimite-euc-ja-2.10.tar.gz to /var/tmp/portage/macopix-1.2.1/work >>> Source unpacked. ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-gtk2 --enable-nls configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes /var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/missing: Unknown `--run' option Try `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/missing --help' for more information configure: WARNING: `missing' script is too old or missing checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking for style of include used by make... GNU checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed checking dependency style of i686-pc-linux-gnu-gcc... gcc3 checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r checking for BSD-compatible nm... nm checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++ checking whether we are using the GNU C++ compiler... yes checking whether i686-pc-linux-gnu-g++ accepts -g... yes checking dependency style of i686-pc-linux-gnu-g++... gcc3 checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E checking for i686-pc-linux-gnu-g77... i686-pc-linux-gnu-g77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether i686-pc-linux-gnu-g77 accepts -g... yes checking the maximum length of command line arguments... 32768 checking command to parse nm output from i686-pc-linux-gnu-gcc object... ok checking for objdir... .libs checking for i686-pc-linux-gnu-ar... no checking for ar... ar checking for i686-pc-linux-gnu-ranlib... no checking for ranlib... ranlib checking for i686-pc-linux-gnu-strip... strip checking if i686-pc-linux-gnu-gcc static flag works... yes checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g++ linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so appending configuration tag "F77" to libtool checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for i686-pc-linux-gnu-g77 option to produce PIC... -fPIC checking if i686-pc-linux-gnu-g77 PIC flag -fPIC works... yes checking if i686-pc-linux-gnu-g77 supports -c -o file.o... yes checking whether the i686-pc-linux-gnu-g77 linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking dynamic linker characteristics... GNU/Linux ld.so checking for i686-pc-linux-gnu-gcc... (cached) i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether i686-pc-linux-gnu-gcc accepts -g... (cached) yes checking for i686-pc-linux-gnu-gcc option to accept ANSI C... (cached) none needed checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3 checking for a BSD-compatible install... /bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.4.7) checking for pkg-config... (cached) /usr/bin/pkg-config checking for GTK+ - version >= 2.0.0... yes (version 2.4.9) checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/gmsgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for i686-pc-linux-gnu-ranlib... ranlib checking for strerror in -lcposix... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for getpagesize... yes checking for working mmap... yes checking whether we are using the GNU C Library 2.1 or newer... yes checking whether integer division by zero raises SIGFPE... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unsigned long long... yes checking for inttypes.h... yes checking whether the inttypes.h PRIxNN macros are broken... no checking for ld used by GCC... /usr/i686-pc-linux-gnu/bin/ld checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes checking for shared library run path origin... done checking argz.h usability... yes checking argz.h presence... yes checking for argz.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking nl_types.h usability... yes checking nl_types.h presence... yes checking for nl_types.h... yes checking malloc.h usability... yes checking malloc.h presence... yes checking for malloc.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for feof_unlocked... yes checking for fgets_unlocked... yes checking for getc_unlocked... yes checking for getcwd... yes checking for getegid... yes checking for geteuid... yes checking for getgid... yes checking for getuid... yes checking for mempcpy... yes checking for munmap... yes checking for putenv... yes checking for setenv... yes checking for setlocale... yes checking for stpcpy... yes checking for strcasecmp... yes checking for strdup... yes checking for strtoul... yes checking for tsearch... yes checking for __argz_count... yes checking for __argz_stringify... yes checking for __argz_next... yes checking for __fsetlocking... yes checking for iconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for nl_langinfo and CODESET... yes checking for LC_MESSAGES... yes checking for bison... bison checking version of bison... 1.875, ok checking whether NLS is requested... yes checking whether included gettext is requested... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for gettext... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/version.h config.status: creating src/Makefile config.status: creating intl/Makefile config.status: creating m4/Makefile config.status: creating po/Makefile.in config.status: creating config.h config.status: executing depfiles commands config.status: executing default-1 commands config.status: creating po/POTFILES config.status: creating po/Makefile ########################################################################## macopix 1.2.1 with Gtk+2.x ########################################################################## The binary will be installed in /usr/bin The common directory will be /usr/share/macopix/ Configure finished, type 'make' to build. make all-recursive make[1]: Entering directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1' Making all in m4 make[2]: Entering directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/m4' Making all in po make[2]: Entering directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/po' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/po' Making all in src make[2]: Entering directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/src' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\""/usr/share/locale"\" -DCOMMON_DIR=\""/usr/share/macopix/"\" -DUSE_GTK2 -O3 -march=athlon-xp -minline-all-stringops -momit-leaf-frame-pointer -pipe -fmove-all-movables -fomit-frame-pointer -fforce-addr -ftracer -funroll-loops -fpeel-loops -fold-unroll-loops -fprefetch-loop-arrays -fbranch-target-load-optimize -MT main.o -MD -MP -MF ".deps/main.Tpo" \ -c -o main.o `test -f 'main.c' || echo './'`main.c; \ then mv -f ".deps/main.Tpo" ".deps/main.Po"; \ else rm -f ".deps/main.Tpo"; exit 1; \ fi if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DLOCALEDIR=\""/usr/share/locale"\" -DCOMMON_DIR=\""/usr/share/macopix/"\" -DUSE_GTK2 -O3 -march=athlon-xp -minline-all-stringops -momit-leaf-frame-pointer -pipe -fmove-all-movables -fomit-frame-pointer -fforce-addr -ftracer -funroll-loops -fpeel-loops -fold-unroll-loops -fprefetch-loop-arrays -fbranch-target-load-optimize -MT callbacks.o -MD -MP -MF ".deps/callbacks.Tpo" \ -c -o callbacks.o `test -f 'callbacks.c' || echo './'`callbacks.c; \ then mv -f ".deps/callbacks.Tpo" ".deps/callbacks.Po"; \ else rm -f ".deps/callbacks.Tpo"; exit 1; \ fi In file included from main.c:29: main.h:279: error: conflicting types for 'MailStatus' main.h:257: error: previous declaration of 'MailStatus' was here In file included from callbacks.c:25: main.h:279: error: conflicting types for 'MailStatus' main.h:257: error: previous declaration of 'MailStatus' was here make[2]: *** [callbacks.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/macopix-1.2.1/work/macopix-1.2.1' make: *** [all] Error 2 !!! ERROR: x11-misc/macopix-1.2.1 failed. !!! Function src_compile, Line 38, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: emerged successfully Portage 2.0.51-r2 (gcc34-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20041021-r0, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 AMD Athlon(tm) XP 1800+ Gentoo Base System version 1.6.4 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -minline-all-stringops -momit-leaf-frame-pointer -pipe -fmove-all-movables -fomit-frame-pointer -fforce-addr -ftracer -funroll-loops -fpeel-loops -fold-unroll-loops -fprefetch-loop-arrays -fbranch-target-load-optimize" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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 -march=athlon-xp -minline-all-stringops -momit-leaf-frame-pointer -pipe -fmove-all-movables -fomit-frame-pointer -fforce-addr -ftracer -funroll-loops -fpeel-loops -fold-unroll-loops -fprefetch-loop-arrays -fbranch-target-load-optimize -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks sandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/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 3dnowex X aalib acpi alsa apm audiofile avi berkdb bidi bitmap-fonts cairo cdparanoia cdr cjk crypt cscope cups curl dga directfb divx4linux dlloader doc dv dvd dvdr edl eds encode esd extensions f77 faac faad fbcon ffmpeg flac fmod foomaticdb gcj gdbm geoip ggi gif gimpprint gnome gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal imap imlib java javascript jbig jpeg lcms ldap libcaca libg++ libwww live lua lzo mad maildir matroska mikmod mmx mng motif mozilla mozxmlterm mpeg nas ncurses network nls nntp nptl objc offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime radeon readline rtc sasl sdl slang slp sndfile speex spell sse ssl stencil-buffer svg svga tcltk tcpd tga theora tiff transcode truetype unicode usb v4l v4l2 vim-with-x wmf wxwindows x86 xml xml2 xmms xprint xv xvid xvmc zlib zvbi video_cards_radeon"
Created attachment 42890 [details, diff] gcc34 fix with this patch macopix compiles with gcc34 :)
Thanks for the patch. Committed to CVS.