Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11756 - pcmcia-cs build error in 2.5.50
Summary: pcmcia-cs build error in 2.5.50
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Chad Huneycutt (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-08 02:38 UTC by Weijia Yang
Modified: 2003-08-19 10:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Weijia Yang 2002-12-08 02:38:17 UTC
I am unable to build pcmcia-cs in kernel 2.5.50.  I have pcmcia and all drivers
needed compiled as modules in the kernel.  When tryining to emerge pcmcia-cs the
following error is reported:

cc -march=athlon -O3 -pipe -fomit-frame-pointer -c -MD -O -pipe
-I../include/static -I/usr/src/linux/include -I../include -I../modules lex_config.c
In file included from cardmgr.c:199:
/usr/src/linux/include/scsi/scsi.h:179: parse error before "u8"
/usr/src/linux/include/scsi/scsi.h:179: warning: no semicolon at end of struct
or union
/usr/src/linux/include/scsi/scsi.h:180: warning: type defaults to `int' in
declaration of `ScsiLun'
/usr/src/linux/include/scsi/scsi.h:180: warning: data definition has no type or
storage class
make[1]: *** [cardmgr.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory
`/var/tmp/portage/pcmcia-cs-3.2.3/work/pcmcia-cs-3.2.3/cardmgr'
make: *** [all] Error 2

!!! ERROR: sys-apps/pcmcia-cs-3.2.3 failed.
!!! Function src_compile, Line 75, Exitcode 2
!!! failed compiling
Comment 1 Hanno Böck gentoo-dev 2002-12-08 17:11:44 UTC
From the Linux PCMCIA-Howto:
>With 2.5 and later kernels, the standalone drivers cannot be used.

So you won't be able to compile the kernel-modules of pcmcia-cs with 2.5. you
have to use the ones integrated in the kernel.
you should enable pcmcia and pcmcia-network support to be compiled in the
kernel, not as modules, so pcmcia-cs will only build it's tools like cardmgr
etc. and not the modules.
Comment 2 Weijia Yang 2002-12-10 20:35:49 UTC
I do have the modules compiled into the kernel.  When compiling pcmcia-cs, it
states that the modules will not be compiled:

./Configure: line 895: [: 131413: unary operator expected
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.


Comment 3 Chad Huneycutt (RETIRED) gentoo-dev 2002-12-10 20:58:23 UTC
As far as I can tell, pcmcia-cs is not currently compatible with kernel 2.5.x. 
And as far as I know *modules* are currently broken in the development kernel
tree.  I recommend that you compile the modules into the kernel if you have to
use a 2.5.x kernel.
Comment 4 Chad Huneycutt (RETIRED) gentoo-dev 2002-12-15 14:07:52 UTC
I am going to mark this as INVALID for now.  I see a similar bug on pcmcia-cs'
bug list, so when the kernel has matured a little more, and pcmcia-cs officially
supports the new kernel, we will re-address this if necessary.
Comment 5 Boyd Waters 2003-08-19 10:42:40 UTC
pcmcia-cs supports the new kernel. 
 
The problem is the kernel headers, not pcmcia-cs. 
 
must add this line to line ~175 of /usr/src/linux/include/scsi/scsi.h: 
typedef unsigned char u8; 
 
and it will compile, use the modules from the kernel, and install the pcmcia-cs tools.