Hi, app-misc/mc-4.6.0-r14 failes to compile using gcc-4.1.0 and linux-headers-2.6.11-r4. powerpc64-unknown-linux-gnu-gcc -c -DLOCALEDIR=\"/usr/share/locale\" -DLOCALE_ALIAS_PATH=\"/usr/share/locale\" -DLIBDIR=\"/usr/lib64\" -DIN_LIBINTL -DHAVE_CONFIG_H -I.. -I. -I../intl -I../intl -I../intl -I.. -O2 -pipe -g -I/usr/include/gssapi -Wall dcigettext.c In file included from /usr/include/asm/types.h:8, from /usr/include/asm-ppc64/elf.h:4, from /usr/include/asm/elf.h:8, from /usr/include/asm-ppc64/sigcontext.h:12, from /usr/include/asm/sigcontext.h:8, from /usr/include/bits/sigcontext.h:28, from /usr/include/signal.h:333, from dcigettext.c:78: /usr/include/asm-ppc64/types.h:19: error: two or more data types in declaration specifiers make[2]: *** [dcigettext.o] Error 1 make[2]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0/intl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mc-4.6.0-r14/work/mc-4.6.0' make: *** [all] Error 2 !!! ERROR: app-misc/mc-4.6.0-r14 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. # emerge --info Portage 2.0.54 (default-linux/ppc/ppc64/2006.0/64bit-userland/power3, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo ppc64) ================================================================= System uname: 2.6.16-gentoo ppc64 POWER3 (630+) Gentoo Base System version 1.6.14 dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r4 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O2 -pipe -g" CHOST="powerpc64-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks nostrip sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc64 alsa apache2 apm arts berkdb bitmap-fonts bzip2 cli ctype cups curl dba dri eds emboss encode esd expat fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gmp gnome gnutls gpm gstreamer gtk2 ibm imlib ipv6 jpeg kde libg++ libwww mad memlimit mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdflib perl png posix python qt quicktime readline sdl session simplexml soap sockets spell spl ssl tcpd tokenizer truetype truetype-fonts type1-fonts udev unicode vorbis webdav xml xmms xsl xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Want to pull "#include <asm/types.h>" out of /usr/include/asm-ppc64/elf.h and see what happens?
this gives another error: /usr/include/asm-ppc64/elf.h:138: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_vrreg_t' /usr/include/asm-ppc64/elf.h:139: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_vrregset_t' /usr/include/asm-ppc64/elf.h:140: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'elf_vrregset_t32'
Guess you'll have to do this then: --- types.h 2006-04-18 16:46:19.000000000 +0100 +++ types.h~ 2006-04-18 16:46:07.000000000 +0100 @@ -16,6 +16,10 @@ * 2 of the License, or (at your option) any later version. */ +#ifdef umode_t /* Fix userspace definitions, we do it properly here... */ +#undef umode_t +#endif + typedef unsigned int umode_t; /*
sorry, same error as in comment #2.
Ah, you need to undo the comment #1 change, forgot to mention that, sorry.
Patch added to 2.6.11-r5 headers, reopen bug if you still get problems.
yes, 2.6.11-r5 fixed it. Could you please add this to 2.6.16, too?
No longer blocking unmasking 4.1 since those headers are masked
Fixed in 2.6.16-3.