3c575TX + Thinkpad 600E

I. Harold Oga ogah@home.com
Sun Apr 11 20:59:40 1999


Donald Becker wrote:
> 
> On Sun, 11 Apr 1999, Albert Lee wrote:
> 
> > > Use to /proc/interrupt to see if the interrupt count is increasing.
> > No, the interrupt count stays constant from beginning to end.
> >
> > > You can use 'vortex-diag -p 0x300 -a' (replace 0x300 with the I/O address
> > > reported in the detection message) to see the status of the card.
> > >   http://cesdis.gsfc.nasa.gov/linux/diag/index.html
> > I needed to hack the code a little (since the 2.2.5 kernel's in.h doesn't
> > seem compatible ...) ... "typedef unsigned short sa_family_t;"  before
> > including linux/in.h.  Here's the output I got right after pcmcia
> > initialization:
> 
> This is a library conflict with glibc2 and 2.2.* -- I don't know of a way
> to avoid it being a problem, without breaking old systems.
Hi,
    I thought I sent the following patch to Donald Becker that seemed to
fix vortex-diag.c, but maybe I didn't.  Anyways, I haven't tested the patched
vortex-diag.c on a non glibc2/2.2.5 so maybe it doesn't work there, but here
it is:

--- vortex-diag.c.old	Fri Apr  2 08:50:16 1999
+++ vortex-diag.c	Fri Apr  2 08:51:20 1999
@@ -38,10 +38,11 @@
 #include <strings.h>
 #include <errno.h>
 #include <linux/delay.h>
-#include <linux/in.h>
 #if __GLIBC__ == 2
-#include <sys/io.h>
+#include <netinet/in.h>
+# include <sys/io.h>
 #else
+#include <linux/in.h>
 #include <asm/io.h>
 #endif


-- 
I. Harold Oga                              | Email: ogah@home.com
Systems Enterprises Ltd.                   | Voice: (403) 244 9738
#211, 1624 16th Ave SW                     |
Calgary, AB, T3C 1A1                       | "Life Sucks, Deal with it!!"