[ Next-in-Thread ]  [ Next Message ] 

pcmcia-3.1.14 - error during 'make all' ..  

Forum: PCMCIA Installation and Configuration Issues
Date: 2000, Jun 01
From: Rene Mikkelsen k2OS

In pcmcia-cs-3.1.14

After 'make config' I do a 'make all' .. but when Make goes into '/cardmgr'
I instantly get this error ..

<snip>
cc  -MD -O -Wall -Wstrict-prototypes -pipe -I../include
-I/usr/src/linux/include -I../modules -c cardmgr.c
cardmgr.c: In function `lookup_dev':
cardmgr.c:156: `ENODEV' undeclared (first use in this function)
cardmgr.c:156: (Each undeclared identifier is reported only once
cardmgr.c:156: for each function it appears in.)
cardmgr.c:157: warning: control reaches end of non-void function
cardmgr.c: In function `do_insert':
cardmgr.c:915: `EBUSY' undeclared (first use in this function)
cardmgr.c:933: `EAGAIN' undeclared (first use in this function)
cardmgr.c: In function `init_sockets':
cardmgr.c:1252: `ENODEV' undeclared (first use in this function)
cardmgr.c:1265: `ENOENT' undeclared (first use in this function)
cardmgr.c: In function `main':
cardmgr.c:1415: `EINTR' undeclared (first use in this function)
cardmgr.c:1427: `EAGAIN' undeclared (first use in this function)
make: *** [cardmgr.o] Error 1
</snip>

I compared the libraries with my other machine, at it seems 
that I need to upgrade glibc to version 2.1.3-15 .. a certain 
errno.h-file that contains declaraions of ENODEV (and other 
return-msgs are declared in this one) .. but why doesn't ake 
complain about this file missing?.. 

I'm currently using 2.1.1-6 on the labtop .. the problem is.. 
that the glibcrpm is about 9megs .. and the only link I have 
to the labtop is the net-adapter... 

My system :  Olivetti P100E - redhat 6.0 ..
                     3c589D-pcmcia-adapter ..

in advance..

Thanx..

/René

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ 1 ] 

This is not really a PCMCIA problem

Re: pcmcia-3.1.14 - error during 'make all' .. (Rene Mikkelsen)
Date: 2000, Jun 01
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Without a valid errno.h, you can't really compile any user level code.
Red Hat 6.0 certainly comes with a set of libraries and header files
that allow things to be compiled successfully.  So something is messed
up on your system, and it isn't obvious to me what it would be.  Maybe
you did a kernel upgrade without checking the glibc requirements?

-- Dave

Sad: adding #include <asm/errno.h> seems to help..

Re: This is not really a PCMCIA problem (David Hinds)
Date: 2000, Jun 01
From: Rene Mikkelsen k2OS

hmm I added #include <asm/errno.h> to all complaining files and everything compiled ok, but. . after 'make install' and restarting pcmcia the card still didn't work.. for some reason the card is detected as memorycard? This appears *very* strange as I have been using thhe same card in this machine running Linux for almost two years now without any trouble..I can even install via net without any trouble..

this is what /var/log/messages says when starting pcmcia and inserting the card:

<snip>

Jun  3 14:28:50 slet cardmgr[4818]: starting, version is 3.1.14
Jun  3 14:28:50 slet cardmgr[4818]: no pcmcia driver in /proc/devices
Jun  3 14:28:50 slet cardmgr[4818]: exiting
Jun  3 14:29:44 slet kernel: Linux PCMCIA Card Services 3.1.14 
Jun  3 14:29:44 slet kernel:   kernel build: 2.2.14 #1 Fri Jun 2 18:24:36 CEST 2000 
Jun  3 14:29:44 slet kernel:   options:  [pci] [apm] [pnp] 
Jun  3 14:29:44 slet kernel: Intel PCIC probe:  
Jun  3 14:29:44 slet kernel:   Cirrus PD672x rev 00 ISA-to-PCMCIA at port 0x3e0 ofs 0x00 
Jun  3 14:29:44 slet kernel:     host opts [0]: [ring] [65/6/0] [1/15/0] 
Jun  3 14:29:44 slet kernel:     host opts [1]: [ring] [65/6/0] [1/15/0] 
Jun  3 14:29:44 slet kernel:     ISA irqs (default) = 3,4,5,7,9,10,11 polling interval = 1000 ms 
Jun  3 14:29:44 slet cardmgr[4833]: starting, version is 3.1.14
Jun  3 14:29:44 slet cardmgr[4833]: watching 2 sockets
Jun  3 14:29:44 slet kernel: cs: IO port probe 0x1000-0x17ff: excluding 0x11f0-0x11f7 0x1240-0x124f 0x1388-0x138f 0x13f0-0x13f7 0x15f0-0x15f7 0x1640-0x164f 0x1788-0x178f 0x17f0-0x17f7 
Jun  3 14:29:44 slet kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x240-0x24f 0x378-0x37f 0x388-0x38f 0x398-0x39f 0x3b0-0x3e7 0x408-0x40f 0x480-0x48f 0x4d0-0x4d7 
Jun  3 14:29:44 slet kernel: cs: IO port probe 0x0a00-0x0aff: excluding 0xa40-0xa4f 
Jun  3 14:30:37 slet cardmgr[4833]: initializing socket 1
Jun  3 14:30:37 slet kernel: cs: memory probe 0x0d0000-0x0dffff: excluding 0xd0000-0xdffff 
Jun  3 14:30:37 slet kernel: cs: memory probe 0x0c0000-0x0cffff: excluding 0xc0000-0xcffff 
Jun  3 14:30:37 slet cardmgr[4833]: socket 1: Anonymous Memory
Jun  3 14:30:38 slet cardmgr[4833]: executing: 'insmod /lib/modules/2.2.14/pcmcia/memory_cs.o'
Jun  3 14:30:38 slet kernel: memory_cs: mem0: anonymous: unknown size 
Jun  3 14:30:38 slet cardmgr[4833]: executing: './memory start mem0'
</snip>

this is what used to happen..

<snip>

May 12 12:30:44 slet cardmgr[647]: initializing socket 1
May 12 12:30:44 slet cardmgr[647]: socket 1: 3Com 3c589D Ethernet
May 12 12:30:44 slet cardmgr[647]: executing: 'insmod /lib/modules/2.2.14/pcmcia/3c589_cs.o'
May 12 12:30:44 slet kernel: eth0: 3Com 3c589, io 0x300, irq 3, hw_addr 00:60:97:8F:1F:9F 
May 12 12:30:44 slet kernel:   8K FIFO split 5:3 Rx:Tx, auto xcvr 
May 12 12:30:44 slet cardmgr[647]: executing: './network start eth0'
May 12 12:30:47 slet kernel: eth0: flipped to 10baseT 
May 12 12:30:56 slet kernel: eth0: flipped to 10baseT 
</snip>

veeeeery strange... I hope not that my pcmcia-card has been toasted :((

/René

pcmcia-3.1.14 - error during 'make all' ..


[ Add Message ]  to: "pcmcia-3.1.14 - error during 'make all' .. "

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]