"emerge pcmcia-cs" on a AMD64 system produced the following results: ----------------------------------------------------------------------------------- -------- Linux PCMCIA Configuration Script -------- The default responses for each question are correct for most users. Consult the PCMCIA-HOWTO for additional info about each option. Linux kernel source directory [/usr/src/linux] The kernel source tree is version 2.6.0-test11-gentoo. The current kernel build date is Sat Nov 29 04:00:30 2003. Build 'trusting' versions of card utilities (y/n) [n] Include 32-bit (CardBus) card support (y/n) [y] Module install directory [/lib/modules/2.6.0-test11-gentoo] Kernel configuration options: Kernel-tree PCMCIA support is enabled. Symmetric multiprocessing support is disabled. Preemptive kernel support is enabled. High memory support is disabled. PCI BIOS support is enabled. Power management (APM) support is enabled. SCSI support is enabled. IEEE 1394 (FireWire) support is disabled. Networking support is enabled. Radio network interface support is enabled. Token Ring device support is disabled. Fast switching is disabled. Frame Diverter is disabled. Module version checking is disabled. Kernel debugging support is disabled. Preemptive kernel patch is enabled. /proc filesystem support is enabled. MPC8xx architecture is disabled. IBM 4xx processor is disabled. Embedded Planet LITE platform is disabled. Embedded Planet CLASSIC platfom is disabled. MPC823 processor is disabled. MPC850 processor is disabled. MPC860 processor is disabled. MPC860T processor is disabled. System V init script layout (y/n) [n] The Forms library is not available. Configuration successful. Your kernel is configured with PCMCIA driver support. Therefore, 'make all' will compile the PCMCIA utilities but not the drivers. make[1]: Entering directory `/var/tmp/portage/pcmcia-cs-3.2.4/work/pcmcia-cs-3.2.4/cardmgr' cc -O2 -pipe -MD -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules -c cardmgr.c cc -O2 -pipe -c -MD -O -pipe -I../include/static -I/usr/src/linux/include -I../include -I../modules yacc_config.c cc -O2 -pipe -c -MD -O -pipe -I../include/static -I/usr/src/linux/include -I../include -I../modules lex_config.c cc -O2 -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules cardctl.c -o cardctl cc -O2 -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules ifport.c -o ifport cc -O2 -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules ifuser.c -o ifuser cc -O2 -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules scsi_info.c -o scsi_info cc -O2 -pipe -O3 -Wall -Wstrict-prototypes -pipe -Wa,--no-warn -I../include/static -I/usr/src/linux/include -I../include -I../modules ide_info.c -o ide_info In file included from scsi_info.c:42: /usr/src/linux/include/scsi/scsi.h:203: error: syntax error before "u8" /usr/src/linux/include/scsi/scsi.h:203: warning: no semicolon at end of struct or union /usr/src/linux/include/scsi/scsi.h:204: warning: type defaults to `int' in declaration of `medium' /usr/src/linux/include/scsi/scsi.h:204: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:205: error: syntax error before "_r2" /usr/src/linux/include/scsi/scsi.h:205: warning: type defaults to `int' in declaration of `_r2' /usr/src/linux/include/scsi/scsi.h:205: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:206: error: syntax error before "block_desc_length" /usr/src/linux/include/scsi/scsi.h:206: warning: type defaults to `int' in declaration of `block_desc_length' /usr/src/linux/include/scsi/scsi.h:206: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:207: error: syntax error before "density" /usr/src/linux/include/scsi/scsi.h:207: warning: type defaults to `int' in declaration of `density' /usr/src/linux/include/scsi/scsi.h:207: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:208: error: syntax error before "number_blocks_hi" /usr/src/linux/include/scsi/scsi.h:208: warning: type defaults to `int' in declaration of `number_blocks_hi' /usr/src/linux/include/scsi/scsi.h:208: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:209: error: syntax error before "number_blocks_med" /usr/src/linux/include/scsi/scsi.h:209: warning: type defaults to `int' in declaration of `number_blocks_med' /usr/src/linux/include/scsi/scsi.h:209: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:210: error: syntax error before "number_blocks_lo" /usr/src/linux/include/scsi/scsi.h:210: warning: type defaults to `int' in declaration of `number_blocks_lo' /usr/src/linux/include/scsi/scsi.h:210: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:211: error: syntax error before "_r3" /usr/src/linux/include/scsi/scsi.h:211: warning: type defaults to `int' in declaration of `_r3' /usr/src/linux/include/scsi/scsi.h:211: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:212: error: syntax error before "block_length_hi" /usr/src/linux/include/scsi/scsi.h:212: warning: type defaults to `int' in declaration of `block_length_hi' /usr/src/linux/include/scsi/scsi.h:212: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:213: error: syntax error before "block_length_med" /usr/src/linux/include/scsi/scsi.h:213: warning: type defaults to `int' in declaration of `block_length_med' /usr/src/linux/include/scsi/scsi.h:213: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:214: error: syntax error before "block_length_lo" /usr/src/linux/include/scsi/scsi.h:214: warning: type defaults to `int' in declaration of `block_length_lo' /usr/src/linux/include/scsi/scsi.h:214: warning: data definition has no type or storage class /usr/src/linux/include/scsi/scsi.h:221: error: syntax error before "u8" /usr/src/linux/include/scsi/scsi.h:221: warning: no semicolon at end of struct or union make[1]: *** [scsi_info] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/pcmcia-cs-3.2.4/work/pcmcia-cs-3.2.4/cardmgr' make: *** [all] Error 2 !!! ERROR: sys-apps/pcmcia-cs-3.2.4 failed. !!! Function src_compile, Line 100, Exitcode 2 !!! failed compiling ----------------------------------------------------------------------- I had seen before that pcmcia-cs ebuild was blindly concatenating the CFLAGS settings with it's own makefile CFLAGS on x86 systems, and I had to manually fix the makefile. Reproducible: Always Steps to Reproduce: 1 2. 3. bash-2.05b# emerge info Portage 2.0.49-r18 (default-amd64-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test11-gentoo) ================================================================= System uname: 2.6.0-test11-gentoo x86_64 4 Gentoo Base System version 1.4.3.12 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X amd64 apm arts avi berkdb crypt encode esd foomaticdb gdbm gif gnome gpm gtk imlib jpeg kde libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl tcpd truetype xml2 xmms xv zlib"
I get the exact same here
pcmcia-cs-3.2.5 should be working fine against 2.6 kernels. please do # ACCEPT_KEYWORDS='~x86' emerge pcmcia-cs and report back success/failure. Have had no reports of problems with 2.6 kernels and this version of pcmcia-cs.
pcmcia-cs-3.2.5 emerged without any problems
Thanks for the tip, Peter. I emerged pcmcia-cs-3.2.5 with no problems, as per the instructions above. I guess a more definitive resolution would be to update the 3.2.4 ebuild to mask for AMD64, while the 3.2.5 ebuild should include the amd64 and ~amd64 keywords. I still have to install the PCI bridge card to try the functionality, and I will report on that tomorrow.
Pcmcia-cs-3.2.5 is working just fine now in my amd64 box. I tested it with an Antec Datachute PCI bridge card (Ricoh RL5c476 II chipset). I use it to generate CF images for our embedded device. Thanks for the help!
Okay, i've added the ~amd64 keyword to pcmcia-cs-3.2.5. Thanks for the info.
yes, pcmcia-cs 3.2.4 won't work with the 2.6 kernel at all, no matter what arch you're on. Use 3.2.5.