pcmciautils 014 compilation problem

Ricardo Birmann ricardobirmann at gmail.com
Sat Jul 1 13:58:12 EDT 2006


Hi all,

I've just got my hands on a Toshiba Protege 3480CT laptop. I've been
trying to get my wireless pcmcia card working with no success at all.

When trying to compile pcmciautils014, i get the following output:

D 14:34 root dragonfly:/usr/src/pcmciautils-014#make
Building ccdv
Compiling pccardctl.c:                                                [ERROR]
  gcc -pipe -DPCMCIAUTILS_VERSION="014" -I/usr/src/pcmciautils-014/src -Wall -W
  char-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaratio
  n-after-statement -Wshadow -I/usr/lib/gcc/i486-linux-gnu/4.1.2/include -Os -f
  omit-frame-pointer -D_GNU_SOURCE -c -o src/pccardctl.o src/pccardctl.c
  src/pccardctl.c:23:28: error: sysfs/libsysfs.h: No such file or directory
  src/pccardctl.c: In function 'pccardctl_power_socket':
  src/pccardctl.c:58: error: 'SYSFS_PATH_MAX' undeclared (first use in this fun
  ction)
  src/pccardctl.c:58: error: (Each undeclared identifier is reported only once

  src/pccardctl.c:58: error: for each function it appears in.)
  src/pccardctl.c:65: warning: implicit declaration of function 'sysfs_open_att
  ribute'
  src/pccardctl.c:65: warning: assignment makes pointer from integer without a
  cast
  src/pccardctl.c:69: warning: implicit declaration of function 'sysfs_write_at
  tribute'
  src/pccardctl.c:71: warning: implicit declaration of function 'sysfs_close_at
  tribute'
  src/pccardctl.c:58: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_echo_one':
  src/pccardctl.c:79: error: 'SYSFS_PATH_MAX' undeclared (first use in this fun
  ction)
  src/pccardctl.c:88: warning: assignment makes pointer from integer without a
  cast
  src/pccardctl.c:79: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_socket_exists':
  src/pccardctl.c:101: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:107: warning: implicit declaration of function 'sysfs_path_is
  _file'
  src/pccardctl.c:101: warning: unused variable 'file'
  src/pccardctl.c: In function 'read_out_file':
  src/pccardctl.c:112: warning: initialization makes pointer from integer witho
  ut a cast
  src/pccardctl.c:120: warning: implicit declaration of function 'sysfs_read_at
  tribute'
  src/pccardctl.c:122: error: dereferencing pointer to incomplete type
  src/pccardctl.c:122: error: dereferencing pointer to incomplete type
  src/pccardctl.c:122: error: dereferencing pointer to incomplete type
  src/pccardctl.c:122: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:125: error: dereferencing pointer to incomplete type
  src/pccardctl.c:127: error: dereferencing pointer to incomplete type
  src/pccardctl.c:127: error: dereferencing pointer to incomplete type
  src/pccardctl.c:128: error: dereferencing pointer to incomplete type
  src/pccardctl.c:129: error: dereferencing pointer to incomplete type
  src/pccardctl.c:130: error: dereferencing pointer to incomplete type
  src/pccardctl.c: In function 'pccardctl_get_string_socket':
  src/pccardctl.c:142: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:142: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_get_string':
  src/pccardctl.c:152: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:152: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_get_one_f':
  src/pccardctl.c:163: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:163: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_get_power_device':
  src/pccardctl.c:185: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:185: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_get_power_socket':
  src/pccardctl.c:202: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:202: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_ident':
  src/pccardctl.c:228: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:228: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_info':
  src/pccardctl.c:269: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:269: warning: unused variable 'file'
  src/pccardctl.c: In function 'pccardctl_status':
  src/pccardctl.c:325: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:326: warning: unused variable 'file'
  src/pccardctl.c:325: warning: unused variable 'drv'
  src/pccardctl.c: In function 'lspcmcia_socket_available_resources':
  src/pccardctl.c:396: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:405: warning: assignment makes pointer from integer without a
   cast
  src/pccardctl.c:416: error: dereferencing pointer to incomplete type
  src/pccardctl.c:416: error: dereferencing pointer to incomplete type
  src/pccardctl.c:416: error: dereferencing pointer to incomplete type
  src/pccardctl.c:419: error: dereferencing pointer to incomplete type
  src/pccardctl.c:421: error: dereferencing pointer to incomplete type
  src/pccardctl.c:421: error: dereferencing pointer to incomplete type
  src/pccardctl.c:422: error: dereferencing pointer to incomplete type
  src/pccardctl.c:423: error: dereferencing pointer to incomplete type
  src/pccardctl.c:424: error: dereferencing pointer to incomplete type
  src/pccardctl.c:396: warning: unused variable 'file'
  src/pccardctl.c: In function 'lspcmcia':
  src/pccardctl.c:499: error: 'SYSFS_PATH_MAX' undeclared (first use in this fu
  nction)
  src/pccardctl.c:501: warning: unused variable 'dev_s'
  src/pccardctl.c:500: warning: unused variable 'drv_s'
  src/pccardctl.c:499: warning: unused variable 'file'
make: *** [src/pccardctl.o] Error 1

I couldn't find anything when googling for this..... any ideas on what
I'm doing wrong??

please note that I have version 2.0.0-7 of sysfsutils installed:

||/ Name                         Version                      Description
+++-============================-============================-========================================================================
ii  sysfsutils                   2.0.0-7                      sysfs
query tool and boot-time setup

Here's the last line of my lspci
18:00.0 Ethernet controller: Marvell Technology Group Ltd. 88w8335
[Libertas] 802.11b/g Wireless (rev 03)

... and the output of: 'cardctl status' (not sure if this is even useful)

Socket 0:
  no card
Socket 1:
  3.3V CardBus card
  function 0: [ready]

I am not sure if this is the right place for this question, if it
isn't, can you guys point me some other list/forum ??

If this is the right place... any ideas??

Thanks in advance...

Ricardo

PS: Running on debian



More information about the linux-pcmcia mailing list