During compilation of pcmcia-cs-3.2.8, error (topmost lines): In file included from gpccard.c:50: ../include/pcmcia/cs_types.h:44: error: syntax error before "ioaddr_t" ../include/pcmcia/cs_types.h:44: warning: type defaults to `int' in declaration of `ioaddr_t' ../include/pcmcia/cs_types.h:44: warning: data definition has no type or storage class ../include/pcmcia/cs_types.h:47: error: syntax error before "socket_t" ../include/pcmcia/cs_types.h:47: warning: type defaults to `int' in declaration of `socket_t' ../include/pcmcia/cs_types.h:47: warning: data definition has no type or storage class ../include/pcmcia/cs_types.h:48: error: syntax error before "event_t" ../include/pcmcia/cs_types.h:48: warning: type defaults to `int' in declaration of `event_t' ../include/pcmcia/cs_types.h:48: warning: data definition has no type or storage class ../include/pcmcia/cs_types.h:49: error: syntax error before "cisdata_t" ../include/pcmcia/cs_types.h:49: warning: type defaults to `int' in declaration of `cisdata_t' ../include/pcmcia/cs_types.h:49: warning: data definition has no type or storage class ../include/pcmcia/cs_types.h:50: error: syntax error before "page_t" ../include/pcmcia/cs_types.h:50: warning: type defaults to `int' in declaration of `page_t' ../include/pcmcia/cs_types.h:50: warning: data definition has no type or storage class Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 28 2005, 11:56:02)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.9.5, 1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx -msse2" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /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/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config//usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse,387 -mmmx -msse2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirror.switch.ch/mirror/gentoo/ http://mirror.switch.ch/mirror/gentoo/ http://www.gigaload.org/gentoo.org/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups curl divx4linux dvd emboss encode esd fam flac foomaticdb gd gdbm gif gpm gtk gtk2 imagemagick imlib java jikes jpeg junit kde libg++ libwww mad mikmod mmx mmx2 mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts vorbis wifi xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Does it compile correctly if you remove the following line from the ebuild? epatch ${FILESDIR}/${P}-includes.patch
(In reply to comment #1) > Does it compile correctly if you remove the following line from the ebuild? > > epatch ${FILESDIR}/${P}-includes.patch No, but the error looks different: xcardinfo.c:97: error: `CS_EVENT_RESET_COMPLETE' undeclared here (not in a function) xcardinfo.c:97: error: initializer element is not constant xcardinfo.c:97: error: (near initialization for `event_tag[4].event') xcardinfo.c:97: error: initializer element is not constant xcardinfo.c:97: error: (near initialization for `event_tag[4]') xcardinfo.c:98: error: initializer element is not constant xcardinfo.c:98: error: (near initialization for `event_tag[5]') xcardinfo.c:99: error: initializer element is not constant xcardinfo.c:99: error: (near initialization for `event_tag[6]') xcardinfo.c:100: error: initializer element is not constant xcardinfo.c:100: error: (near initialization for `event_tag[7]') xcardinfo.c:101: error: initializer element is not constant xcardinfo.c:101: error: (near initialization for `event_tag[8]') xcardinfo.c:102: error: initializer element is not constant xcardinfo.c:102: error: (near initialization for `event_tag[9]') make[1]: *** [xcardinfo.o] Error 1 make[1]: *** Waiting for unfinished jobs.... distcc[25099] ERROR: compile /root/.ccache/gpccard.tmp.deimos.25081.i on 127.0.0.1 failed In file included from gpccard.c:50: /usr/src/linux/include/pcmcia/cs_types.h:28: error: syntax error before "ioaddr_t" /usr/src/linux/include/pcmcia/cs_types.h:28: warning: type defaults to `int' in declaration of `ioaddr_t' /usr/src/linux/include/pcmcia/cs_types.h:28: warning: data definition has no type or storage class /usr/src/linux/include/pcmcia/cs_types.h:32: error: syntax error before "socket_t" /usr/src/linux/include/pcmcia/cs_types.h:32: warning: type defaults to `int' in declaration of `socket_t' /usr/src/linux/include/pcmcia/cs_types.h:32: warning: data definition has no type or storage class /usr/src/linux/include/pcmcia/cs_types.h:33: error: syntax error before "event_t" /usr/src/linux/include/pcmcia/cs_types.h:33: warning: type defaults to `int' in declaration of `event_t' /usr/src/linux/include/pcmcia/cs_types.h:33: warning: data definition has no type or storage class /usr/src/linux/include/pcmcia/cs_types.h:34: error: syntax error before "cisdata_t" /usr/src/linux/include/pcmcia/cs_types.h:34: warning: type defaults to `int' in declaration of `cisdata_t'
Ok, I think I know where the problem lies. I'll try to come up with a patch. In the meantime you can emerge pcmcia-cs with USE="-X" and it should compile fine.
(In reply to comment #3) > Ok, I think I know where the problem lies. I'll try to come up with a patch. > > In the meantime you can emerge pcmcia-cs with USE="-X" and it should compile fine. Yes, it compiles without problems. Thank you very much !
Fixed in sys-apps/pcmcia-cs-3.2.8-r2. Thank you for reporting this.