Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18594 - pcmcia-cs-3.2.3-r2 will not compile with development-sources 2.5.66
Summary: pcmcia-cs-3.2.3-r2 will not compile with development-sources 2.5.66
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Low critical (vote)
Assignee: Peter Johanson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-01 12:27 UTC by Timo Boettcher
Modified: 2004-02-06 23:27 UTC (History)
2 users (show)

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


Attachments
fix for pcmcia-cs (pcmcia-cs.diff,2.00 KB, patch)
2003-04-15 18:38 UTC, Dominik Brodowski
Details | Diff
patch for kernel-sources (pcmcia-2.5.67-2-cardmgr_compile-1,706 bytes, patch)
2003-04-15 18:39 UTC, Dominik Brodowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Boettcher 2003-04-01 12:27:27 UTC
pcmcia-cs-3.2.3-r2 will not compile with development-sources 2.5.66 (and 2.5.64, 
2.5.65)




I already discussed this with latexer on irc.freenode.net:6667/#gentoo 




Compile Messages (including parts use- and kernel-config):




ebuild /usr/portage/sys-apps/pcmcia-cs/pcmcia-cs-3.2.3-r2.ebuild  unpack compile 
install qmerge


>>> md5 ;-) pcmcia-cs-3.2.3.tar.gz


>>> md5 ;-) orinoco-0.13b-patched.diff


>>> md5 ;-) orinoco-0.13b.tar.gz


>>> Checking pcmcia-cs-3.2.3.tar.gz's mtime...


>>> Checking orinoco-0.13b-patched.diff's mtime...


>>> Checking orinoco-0.13b.tar.gz's mtime...


>>> WORKDIR is up-to-date, keeping...


>>> md5 ;-) pcmcia-cs-3.2.3.tar.gz


>>> md5 ;-) orinoco-0.13b-patched.diff


>>> md5 ;-) orinoco-0.13b.tar.gz


>>> Checking pcmcia-cs-3.2.3.tar.gz's mtime...


>>> Checking orinoco-0.13b-patched.diff's mtime...


>>> Checking orinoco-0.13b.tar.gz's mtime...


>>> WORKDIR is up-to-date, keeping...




    -------- 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.5.66.


The current kernel build date is Tue Apr 1 02:15:56 2003.




Build 'trusting' versions of card utilities (y/n) [n]


Include 32-bit (CardBus) card support (y/n) [n]


Include PnP BIOS resource checking (y/n) [n]


Module install directory [/lib/modules/2.5.66]




Kernel configuration options:


    Kernel-tree PCMCIA support is enabled.


    Symmetric multiprocessing support is disabled.


    Preemptive kernel support is disabled.


    PCI BIOS support is disabled.


    Power management (APM) support is enabled.


    SCSI support is disabled.


    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 disabled.


    /proc filesystem support is enabled.




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.
3-r2/work/pcmcia-cs-3.2.3/cardmgr'


cc -march=i586 -Os -pipe -MD -O -Wall -Wstrict-prototypes -pipe -I..
/include/static -I/usr/src/linux/include -I../include -I../modules -c cardmgr.c


In file included from /usr/src/linux/include/linux/ioport.h:11,


                 from ../include/static/linux/ioport.h:20,


                 from /usr/src/linux/include/linux/device.h:27,


                 from /usr/src/linux/include/pcmcia/ds.h:35,


                 from cardmgr.c:57:


/usr/src/linux/include/linux/compiler.h:48:1: warning: "__attribute_used__" 
redefined


In file included from /usr/include/features.h:291,


                 from /usr/include/sys/types.h:26,


                 from cardmgr.c:34:


/usr/include/sys/cdefs.h:192:1: warning: this is the location of the previous 
definition


In file included from /usr/src/linux/include/linux/device.h:29,


                 from /usr/src/linux/include/pcmcia/ds.h:35,


                 from cardmgr.c:57:


/usr/src/linux/include/linux/list.h:416:2: warning: #warning "don't include 
kernel headers in userspace"


In file included from /usr/src/linux/include/pcmcia/ds.h:35,


                 from cardmgr.c:57:


/usr/src/linux/include/linux/device.h:68: field `subsys' has incomplete type


/usr/src/linux/include/linux/device.h:69: field `drivers' has incomplete type


/usr/src/linux/include/linux/device.h:70: field `devices' has incomplete type


/usr/src/linux/include/linux/device.h:101: field `attr' has incomplete type


/usr/src/linux/include/linux/device.h:121: field `unload_sem' has incomplete 
type


/usr/src/linux/include/linux/device.h:122: field `kobj' has incomplete type


/usr/src/linux/include/linux/device.h:123: field `class_list' has incomplete 
type


/usr/src/linux/include/linux/device.h:124: field `devices' has incomplete type


/usr/src/linux/include/linux/device.h:129: parse error before "u32"


/usr/src/linux/include/linux/device.h:129: warning: function declaration isn't a 
prototype


/usr/src/linux/include/linux/device.h:130: parse error before "u32"


/usr/src/linux/include/linux/device.h:130: warning: function declaration isn't a 
prototype


/usr/src/linux/include/linux/device.h:144: field `attr' has incomplete type


/usr/src/linux/include/linux/device.h:165: parse error before "u32"


/usr/src/linux/include/linux/device.h:165: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:175: parse error before '}' token


/usr/src/linux/include/linux/device.h:185: field `attr' has incomplete type


/usr/src/linux/include/linux/device.h:216: field `kset' has incomplete type


/usr/src/linux/include/linux/device.h:217: parse error before "u32"


/usr/src/linux/include/linux/device.h:217: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:220: conflicting types for `remove_device'


/usr/src/linux/include/linux/device.h:172: previous declaration of 
`remove_device'


/usr/src/linux/include/linux/device.h:221: parse error before '}' token


/usr/src/linux/include/linux/device.h:228: field `node' has incomplete type


/usr/src/linux/include/linux/device.h:229: field `bus_list' has incomplete type


/usr/src/linux/include/linux/device.h:230: field `class_list' has incomplete 
type


/usr/src/linux/include/linux/device.h:231: field `driver_list' has incomplete 
type


/usr/src/linux/include/linux/device.h:232: field `children' has incomplete type


/usr/src/linux/include/linux/device.h:235: field `kobj' has incomplete type


/usr/src/linux/include/linux/device.h:244: parse error before "u32"


/usr/src/linux/include/linux/device.h:244: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:250: parse error before "power_state"


/usr/src/linux/include/linux/device.h:250: warning: type defaults to `int' in 
declaration of `power_state'


/usr/src/linux/include/linux/device.h:250: warning: data definition has no type 
or storage class


/usr/src/linux/include/linux/device.h:256: parse error before '*' token


/usr/src/linux/include/linux/device.h:256: warning: type defaults to `int' in 
declaration of `dma_mask'


/usr/src/linux/include/linux/device.h:256: warning: data definition has no type 
or storage class


/usr/src/linux/include/linux/device.h:259: parse error before '}' token


/usr/src/linux/include/linux/device.h: In function `list_to_dev':


/usr/src/linux/include/linux/device.h:264: warning: implicit declaration of 
function `list_entry'


/usr/src/linux/include/linux/device.h:264: parse error before "struct"


/usr/src/linux/include/linux/device.h:265: warning: no return statement in 
function returning non-void


/usr/src/linux/include/linux/device.h: In function `dev_get_drvdata':


/usr/src/linux/include/linux/device.h:270: dereferencing pointer to incomplete 
type


/usr/src/linux/include/linux/device.h: In function `dev_set_drvdata':


/usr/src/linux/include/linux/device.h:276: dereferencing pointer to incomplete 
type


/usr/src/linux/include/linux/device.h: At top level:


/usr/src/linux/include/linux/device.h:299: field `attr' has incomplete type


/usr/src/linux/include/linux/device.h:336: parse error before "u32"


/usr/src/linux/include/linux/device.h:336: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:339: parse error before '}' token


/usr/src/linux/include/linux/device.h:347: parse error before "u32"


/usr/src/linux/include/linux/device.h:347: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:350: parse error before '}' token


/usr/src/linux/include/linux/device.h:361: parse error before "u32"


/usr/src/linux/include/linux/device.h:361: warning: no semicolon at end of 
struct or union


/usr/src/linux/include/linux/device.h:363: parse error before '}' token


/usr/src/linux/include/linux/device.h:372: parse error before "state"


/usr/src/linux/include/linux/device.h:372: warning: function declaration isn't a 
prototype


/usr/src/linux/include/linux/device.h:373: parse error before "level"


/usr/src/linux/include/linux/device.h:373: warning: function declaration isn't a 
prototype


In file included from cardmgr.c:199:


/usr/src/linux/include/scsi/scsi.h:204: parse error before "u8"


/usr/src/linux/include/scsi/scsi.h:204: warning: no semicolon at end of struct 
or union


/usr/src/linux/include/scsi/scsi.h:205: warning: type defaults to `int' in 
declaration of `ScsiLun'


/usr/src/linux/include/scsi/scsi.h:205: warning: data definition has no type or 
storage class


/usr/src/linux/include/linux/device.h:167: storage size of `subsys' isn't known


/usr/src/linux/include/linux/device.h:168: storage size of `devices' isn't known


/usr/src/linux/include/linux/device.h:169: storage size of `drivers' isn't known


/usr/src/linux/include/linux/device.h:362: storage size of `dev' isn't known


/usr/src/linux/include/linux/device.h:338: storage size of `sysdev' isn't known


make[1]: *** [cardmgr.o] Error 1


make[1]: Leaving directory `/var/tmp/portage/pcmcia-cs-3.2.
3-r2/work/pcmcia-cs-3.2.3/cardmgr'


make: *** [all] Error 2




!!! ERROR: sys-apps/pcmcia-cs-3.2.3-r2 failed.


!!! Function src_compile, Line 119, Exitcode 2


!!! failed compiling
Comment 1 Dominik Brodowski 2003-04-15 18:38:14 UTC
Created attachment 10704 [details, diff]
fix for pcmcia-cs

This patch by Pavel Roskin fixes this problem in ./Configure:
"./Configure: line 907: [: 131413: unary operator expected" of plain pcmcia-cs.
Don't know if it's needed in gentoo's pcmcia-cs, though :(
Comment 2 Dominik Brodowski 2003-04-15 18:39:14 UTC
Created attachment 10705 [details, diff]
patch for kernel-sources

From Pavel Roskin:

"On the kernel side, ds.h should not be including linux/device.h when
compiling userspace code."
Comment 3 Dominik Brodowski 2003-04-15 18:40:53 UTC
patches for kernel (for 2.5.67, but should work with 2.5.66 too) and pcmcia-cs attached. As I'm not using gentoo _yet_, can't confirm or deny anything -- hope this helps nonetheless.
Replies to linux (at) brodo.de please, /me is having trouble setting up my bugzilla account...
Comment 4 Peter Johanson (RETIRED) gentoo-dev 2003-05-09 12:34:21 UTC
development sources and pcmcia are currently a rocky road. drivers from the pcmcia-cs package will *definitely* not work with any of the latest 2.5.x kernels. AFAIK, David Hinds has no intention of porting the pcmcia-cs package for use with the 2.5.x kernels. Please use the pcmcia support included in the 2.5.x kernels for now.  

It also seems that pcmcia will soon be handled by hotplugging, and not by the cardmgr utilities, etc. soon. Check the LKML for more info on this.

I'm going to hopefully have a more concrete solution to all these problems soon.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2003-08-02 13:00:38 UTC
Keeping myself informed on this, as I'm interested...
Comment 6 Peter Johanson (RETIRED) gentoo-dev 2003-10-09 06:46:44 UTC
pcmcia-cs-3.2.5 seems to work fine (userland tools) when compiled against
recent 2.6.0-testX kernels soon as you fix the modversions.h location. It's
commited to ~x86 currently. Please test. More work is needed for machines
w/ *only* module-init-tools installed. Hopefully this will be done soon.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2004-01-06 04:15:04 UTC
I have been using pcmcia-cs with the 2.6 kernels since test 1 (or thereabouts) up until 2.6.0 (dev, gentoo & mm) and have not had any problems - until today.

I have downloaded and compiled 2.6.1-mm2 and compiled it and have found that pcmcia-cs won't build against it and comes up with the following error:

** Your kernel is configured with PCMCIA driver support.  Therefore,
** 'make all' will compile the PCMCIA utilities but not the drivers.
** See README-2.4 if this is not what you intended!

make[1]: Entering directory `/var/tmp/portage/pcmcia-cs-3.2.5/work/pcmcia-cs-3.2.5/cardmgr'
cc -O2 -march=athlon-xp -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 -march=athlon-xp -pipe -c -MD -O -pipe -I../include/static -I/usr/src/linux/include -I../include -I../modules yacc_config.c
In file included from /usr/src/linux/include/pcmcia/cs.h:33,
                 from yacc_config.y:39:
/usr/src/linux/include/pcmcia/compat.h:23: error: syntax error before "CardServices"
/usr/src/linux/include/pcmcia/compat.h:23: warning: data definition has no type or storage class
make[1]: *** [yacc_config.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.5/work/pcmcia-cs-3.2.5/cardmgr'
make: *** [all] Error 2


In the kernel configuration, there is a new option:
Bus options (PCI, PCMCIA, EISA, MCA, ISA)  --->
  PCMCIA/CardBus support  --->
    Compatibility layer for out-of-tree PCMCIA drivers

I have tried building with this option both enabled and disabled but both time resulted in the same output. I have not yet confirmed if this also occurs with 2.6.1 kernels other than -mm2
Comment 8 Jason Stubbs (RETIRED) gentoo-dev 2004-01-07 00:36:11 UTC
Have confirmed that pcmcia-cs builds fine with both 2.6.1-rc1 and 2.6.1-rc1-gentoo. The problem with 2.6.1-rc1-mm2 is due to the function declaration specifier "__deprecated" in compat.h listed above.
Comment 9 Peter Johanson (RETIRED) gentoo-dev 2004-02-06 23:27:17 UTC
Marking this WONTFIX. the initial issues is moot now (emerge pcmcia-cs-3.2.5-r1) and the issue with the __deprecated is gone since that was only in andrew morton's tree for that one revision while the CardServices function was being phased out.