* PCMCIA compiling on UDB/RH4.1 (new kernel probs)
@ 1997-04-23 11:16 Thunderhawk Alpha
1997-04-23 17:25 ` Richard Henderson
0 siblings, 1 reply; 4+ messages in thread
From: Thunderhawk Alpha @ 1997-04-23 11:16 UTC (permalink / raw)
I thought I would upgrade to the 2.0.30 kernel now that there is a set of
axp-diffs for it. However, I found (much to my chagrin) that (once again)
the headers/includes don't match up with something. When I try to compile
pcmcia-cs-2.8.23, I get scads of "_(function name) redefined" messages and
the make fails. As I recall, there was a band-aid fix for this problem
(something about fixing k_compat.h or some such), but I've since lost what
it was. The stock RH4.1 kernel RPM and the stock pcmcia-cs-2.8.23 work
relatively well together (there were only two errors, Xircom and one of the
ethernet cards, neither of which I use).
Three questions:
(1) Is this the same libc/glibc mismatch that plagued RH4.0?
(2) Has anybody re-compiled pcmcia to work with 2.0.30 yet?
(3) What fixes, patches, include file pointers do I need to adjust to be
able to re-make pcmcia with the "standard" (source+axp-diffs+em86) kernel
sources?
Thanks.
seafire@ix.netcom.com
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA compiling on UDB/RH4.1 (new kernel probs)
1997-04-23 11:16 Thunderhawk Alpha
@ 1997-04-23 17:25 ` Richard Henderson
0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1997-04-23 17:25 UTC (permalink / raw)
> (1) Is this the same libc/glibc mismatch that plagued RH4.0?
Yes.
> (2) Has anybody re-compiled pcmcia to work with 2.0.30 yet?
I produced a small set of patches (appended) that I gave to Erik
and the pcmcia maintainer that got pcmcia-2.9.2 to work with both
2.0.27 and 2.1.33 -- I would assume it still works with 2.0.30.
Oh, if you are using my modutils, you must use at least version
2.1.34 wherein I work around a bug in the 2.7.0.2 gas.
r~
diff -rup pcmcia-cs-2.9.2/cardmgr/y.tab.h pcmcia-cs-2.9.2-rth/cardmgr/y.tab.h
--- pcmcia-cs-2.9.2/cardmgr/y.tab.h Fri Mar 21 03:04:38 1997
+++ pcmcia-cs-2.9.2-rth/cardmgr/y.tab.h Sat Apr 12 19:41:38 1997
@@ -26,7 +26,7 @@
#define NUMBER 282
typedef union {
char *str;
- int num;
+ long num;
struct device_info_t *device;
struct card_info_t *card;
struct mtd_ident_t *mtd;
diff -rup pcmcia-cs-2.9.2/cardmgr/yacc_config.c pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.c
--- pcmcia-cs-2.9.2/cardmgr/yacc_config.c Fri Mar 21 03:04:38 1997
+++ pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.c Sat Apr 12 19:41:38 1997
@@ -37,7 +37,7 @@ static int add_module(device_info_t *car
#line 35 "yacc_config.y"
typedef union {
char *str;
- int num;
+ long num;
struct device_info_t *device;
struct card_info_t *card;
struct mtd_ident_t *mtd;
diff -rup pcmcia-cs-2.9.2/cardmgr/yacc_config.y pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.y
--- pcmcia-cs-2.9.2/cardmgr/yacc_config.y Fri Mar 21 02:25:11 1997
+++ pcmcia-cs-2.9.2-rth/cardmgr/yacc_config.y Sat Apr 12 19:36:25 1997
@@ -34,7 +34,7 @@ static int add_module(device_info_t *car
%union {
char *str;
- int num;
+ long num;
struct device_info_t *device;
struct card_info_t *card;
struct mtd_ident_t *mtd;
diff -rup pcmcia-cs-2.9.2/include/pcmcia/k_compat.h pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h
--- pcmcia-cs-2.9.2/include/pcmcia/k_compat.h Wed Mar 12 14:23:34 1997
+++ pcmcia-cs-2.9.2-rth/include/pcmcia/k_compat.h Sat Apr 12 19:47:14 1997
@@ -78,6 +78,7 @@ char kernel_version[] = UTS_RELEASE;
#if (LINUX_VERSION_CODE > VERSION(2,1,16))
#define AUTOCONF_INCLUDED
#define EXPORT_SYMTAB
+#define CONFIG_MODULES
#endif
#ifdef CONFIG_MODVERSIONS
#define MODVERSIONS 1
@@ -127,7 +128,7 @@ char kernel_version[] = UTS_RELEASE;
#endif
#ifdef __alpha__
-#define get_user(x, ptr) __get_user(x, ptr)
+#define get_user(x, ptr) ((x) = __get_user((ptr), sizeof(*(ptr))))
#else
#define get_user(x, ptr) \
((sizeof(*ptr) == 4) ? (x = get_fs_long(ptr)) : \
diff -rup pcmcia-cs-2.9.2/modules/Makefile pcmcia-cs-2.9.2-rth/modules/Makefile
--- pcmcia-cs-2.9.2/modules/Makefile Tue Nov 26 02:21:58 1996
+++ pcmcia-cs-2.9.2-rth/modules/Makefile Sat Apr 12 19:40:25 1997
@@ -19,6 +19,11 @@ ifdef CONFIG_MODVERSIONS
XFLAGS := $(XFLAGS) $(MFLAG)
endif
+ifdef CONFIG_ALPHA_LCA
+CFLAGS += -ffixed-8
+endif
+
+
SRCS = \
i82365.c tcic.c cs.c cistpl.c rsrc_mgr.c bulkmem.c ds.c \
serial_cs.c pcmem_cs.c memory_cs.c ftl_cs.c \
diff -rup pcmcia-cs-2.9.2/modules/ds.c pcmcia-cs-2.9.2-rth/modules/ds.c
--- pcmcia-cs-2.9.2/modules/ds.c Sun Mar 16 15:04:09 1997
+++ pcmcia-cs-2.9.2-rth/modules/ds.c Sat Apr 12 19:36:25 1997
@@ -59,7 +59,7 @@ static unsigned int ds_poll(struct file
static int ds_ioctl(struct inode * inode, struct file * file,
u_int cmd, u_long arg);
static int ds_open(struct inode * inode, struct file * file);
-static void ds_release(struct inode * inode, struct file * file);
+static int ds_release(struct inode * inode, struct file * file);
typedef struct driver_info_t {
dev_info_t *dev_info;
@@ -548,7 +548,7 @@ static int ds_open(struct inode *inode,
/*====================================================================*/
-static void ds_release(struct inode *inode, struct file *file)
+static int ds_release(struct inode *inode, struct file *file)
{
socket_t i = MINOR(inode->i_rdev);
socket_info_t *s;
@@ -559,11 +559,11 @@ static void ds_release(struct inode *ino
printk(KERN_DEBUG "ds_release(socket %d)\n", i);
#endif
if ((i >= sockets) || (sockets == 0))
- return;
+ return 0;
s = &socket_table[i];
user = file->private_data;
if (CHECK_USER(user))
- return;
+ return 0;
/* Unlink user data structure */
if ((file->f_flags & O_ACCMODE) != O_RDONLY)
@@ -572,12 +572,13 @@ static void ds_release(struct inode *ino
for (link = &s->user; *link; link = &(*link)->next)
if (*link == user) break;
if (link == NULL)
- return;
+ return 0;
*link = user->next;
user->user_magic = 0;
kfree_s(user, sizeof(user_info_t));
MOD_DEC_USE_COUNT;
+ return 0;
} /* ds_release */
/*====================================================================*/
diff -rup pcmcia-cs-2.9.2/modules/ftl_cs.c pcmcia-cs-2.9.2-rth/modules/ftl_cs.c
--- pcmcia-cs-2.9.2/modules/ftl_cs.c Sun Mar 16 15:08:45 1997
+++ pcmcia-cs-2.9.2-rth/modules/ftl_cs.c Sat Apr 12 19:36:25 1997
@@ -143,7 +143,7 @@ static int ftl_blocksizes[MINOR_NR(MAX_D
static int ftl_ioctl(struct inode *inode, struct file *file,
u_int cmd, u_long arg);
static int ftl_open(struct inode *inode, struct file *file);
-static void ftl_close(struct inode *inode, struct file *file);
+static int ftl_close(struct inode *inode, struct file *file);
static struct file_operations ftl_blk_fops = {
NULL, /* lseek */
@@ -1062,7 +1062,7 @@ static int ftl_open(struct inode *inode,
/*====================================================================*/
-static void ftl_close(struct inode *inode, struct file *file)
+static int ftl_close(struct inode *inode, struct file *file)
{
dev_link_t *link;
int minor = MINOR(inode->i_rdev);
@@ -1122,6 +1122,7 @@ static void ftl_close(struct inode *inod
}
MOD_DEC_USE_COUNT;
+ return 0;
} /* ftl_close */
diff -rup pcmcia-cs-2.9.2/modules/i82365.c pcmcia-cs-2.9.2-rth/modules/i82365.c
--- pcmcia-cs-2.9.2/modules/i82365.c Fri Mar 21 11:57:51 1997
+++ pcmcia-cs-2.9.2-rth/modules/i82365.c Sat Apr 12 19:36:25 1997
@@ -9,7 +9,7 @@
#include <pcmcia/config.h>
#include <pcmcia/k_compat.h>
-#include <sys/types.h>
+#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/string.h>
diff -rup pcmcia-cs-2.9.2/modules/memory_cs.c pcmcia-cs-2.9.2-rth/modules/memory_cs.c
--- pcmcia-cs-2.9.2/modules/memory_cs.c Sun Mar 16 15:10:55 1997
+++ pcmcia-cs-2.9.2-rth/modules/memory_cs.c Sat Apr 12 19:36:25 1997
@@ -108,8 +108,8 @@ static FS_SIZE_T memory_read(struct inod
static FS_SIZE_T memory_write(struct inode *inode, struct file *file,
CONST char *buf, U_FS_SIZE_T count);
static int memory_open(struct inode *inode, struct file *file);
-static void memory_close(struct inode *inode, struct file *file);
-static void memory_blk_close(struct inode *inode, struct file *file);
+static int memory_close(struct inode *inode, struct file *file);
+static int memory_blk_close(struct inode *inode, struct file *file);
static struct file_operations memory_chr_fops = {
NULL, /* lseek */
@@ -485,7 +485,7 @@ static int memory_open(struct inode *ino
/*====================================================================*/
-static void memory_close(struct inode *inode, struct file *file)
+static int memory_close(struct inode *inode, struct file *file)
{
dev_link_t *link;
int minor = MINOR(inode->i_rdev);
@@ -508,17 +508,18 @@ static void memory_close(struct inode *i
}
MOD_DEC_USE_COUNT;
+ return 0;
} /* memory_close */
-static void memory_blk_close(struct inode *inode, struct file *file)
+static int memory_blk_close(struct inode *inode, struct file *file)
{
fsync_dev(inode->i_rdev);
#if (LINUX_VERSION_CODE >= VERSION(1,3,0))
invalidate_inodes(inode->i_rdev);
#endif
invalidate_buffers(inode->i_rdev);
- memory_close(inode, file);
+ return memory_close(inode, file);
}
/*======================================================================
diff -rup pcmcia-cs-2.9.2/modules/pcmem_cs.c pcmcia-cs-2.9.2-rth/modules/pcmem_cs.c
--- pcmcia-cs-2.9.2/modules/pcmem_cs.c Sun Mar 16 15:08:20 1997
+++ pcmcia-cs-2.9.2-rth/modules/pcmem_cs.c Sat Apr 12 19:36:25 1997
@@ -114,8 +114,8 @@ static FS_SIZE_T pcmem_read(struct inode
static FS_SIZE_T pcmem_write(struct inode *inode, struct file *file,
CONST char *buf, U_FS_SIZE_T count);
static int pcmem_open(struct inode *inode, struct file *file);
-static void pcmem_close(struct inode *inode, struct file *file);
-static void pcmem_blk_close(struct inode *inode, struct file *file);
+static int pcmem_close(struct inode *inode, struct file *file);
+static int pcmem_blk_close(struct inode *inode, struct file *file);
static struct file_operations pcmem_chr_fops = {
NULL, /* lseek */
@@ -507,7 +507,7 @@ static int pcmem_open(struct inode *inod
/*====================================================================*/
-static void pcmem_close(struct inode *inode, struct file *file)
+static int pcmem_close(struct inode *inode, struct file *file)
{
dev_link_t *link;
@@ -517,20 +517,21 @@ static void pcmem_close(struct inode *in
#endif
link = dev_table[DEVICE_NR(inode->i_rdev)];
- if (link == NULL) return;
+ if (link == NULL) return 0;
MOD_DEC_USE_COUNT;
+ return 0;
} /* pcmem_close */
-static void pcmem_blk_close(struct inode *inode, struct file *file)
+static int pcmem_blk_close(struct inode *inode, struct file *file)
{
fsync_dev(inode->i_rdev);
#if (LINUX_VERSION_CODE >= VERSION(1,3,0))
invalidate_inodes(inode->i_rdev);
#endif
invalidate_buffers(inode->i_rdev);
- pcmem_close(inode, file);
+ return pcmem_close(inode, file);
}
/*======================================================================
diff -rup pcmcia-cs-2.9.2/modules/tcic.c pcmcia-cs-2.9.2-rth/modules/tcic.c
--- pcmcia-cs-2.9.2/modules/tcic.c Sun Mar 16 15:07:11 1997
+++ pcmcia-cs-2.9.2-rth/modules/tcic.c Sat Apr 12 19:36:25 1997
@@ -9,7 +9,7 @@
#include <pcmcia/config.h>
#include <pcmcia/k_compat.h>
-#include <sys/types.h>
+#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/string.h>
diff -rup pcmcia-cs-2.9.2/modules/xircnw_cs.c pcmcia-cs-2.9.2-rth/modules/xircnw_cs.c
--- pcmcia-cs-2.9.2/modules/xircnw_cs.c Sun Mar 16 15:05:53 1997
+++ pcmcia-cs-2.9.2-rth/modules/xircnw_cs.c Sat Apr 12 19:36:25 1997
@@ -1415,4 +1415,3 @@ set_multicast_list(struct device *dev, i
wait_WOC(iobase);
}
#endif
-
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA compiling on UDB/RH4.1 (new kernel probs)
[not found] <199704231725.MAA15629@stommel.tamu.edu>
@ 1997-04-23 18:30 ` Erik Troan
0 siblings, 0 replies; 4+ messages in thread
From: Erik Troan @ 1997-04-23 18:30 UTC (permalink / raw)
On Wed, 23 Apr 1997, Richard Henderson wrote:
> > (2) Has anybody re-compiled pcmcia to work with 2.0.30 yet?
>
> I produced a small set of patches (appended) that I gave to Erik
> and the pcmcia maintainer that got pcmcia-2.9.2 to work with both
> 2.0.27 and 2.1.33 -- I would assume it still works with 2.0.30.
Fwiw, PCMCIA 2.9.4 seems to include Richard's patches, but yields a
couple of modules which don't work properly.
Erik
-------------------------------------------------------------------------------
| "Psychopaths kill for no reason: I kill for money." -- Grosse Pointe Blank |
| |
| Erik Troan = ewt@redhat.com = ewt@sunsite.unc.edu |
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA compiling on UDB/RH4.1 (new kernel probs)
@ 1997-04-24 9:50 Thunderhawk Alpha
0 siblings, 0 replies; 4+ messages in thread
From: Thunderhawk Alpha @ 1997-04-24 9:50 UTC (permalink / raw)
At 02:30 PM 4/23/97 -0400, you wrote:
>On Wed, 23 Apr 1997, Richard Henderson wrote:
>
>> > (2) Has anybody re-compiled pcmcia to work with 2.0.30 yet?
>>
>> I produced a small set of patches (appended) that I gave to Erik
>> and the pcmcia maintainer that got pcmcia-2.9.2 to work with both
>> 2.0.27 and 2.1.33 -- I would assume it still works with 2.0.30.
>
>Fwiw, PCMCIA 2.9.4 seems to include Richard's patches, but yields a
>couple of modules which don't work properly.
>
>Erik
>
>-------------------------------------------------------------------------------
>| "Psychopaths kill for no reason: I kill for money." -- Grosse Pointe Blank |
>| |
>| Erik Troan = ewt@redhat.com = ewt@sunsite.unc.edu |
>
>
For specifics, the Xircom module and the SMC module do not compile from
pcmcia-cs-2.9.4 with 2.0.30+axp-diffs. I don't use either so I took them out
of my makefile. After that, during the compiles, there were several messages
about redefining various functions and pointer casting to different sizes.
Beyond that, I had to do a strip -x *.o in the completed modules (otherwise
there's the stupid length messages with subsequent failure to load). In
addition, ds.o fails with something like "undefined reference:
__bad_user_length" (or something like that) upon loading. This may have to
do with one of the compile time messages about "__get_user" being redefined...
Also, I found (much to my chagrin) that I could not just go back to 2.0.27
kernel. The 2.9.4 install does something to the install and/or load scripts
(or config files) that prevents the previous 2.0.27 (pcmcia-cs-2.8.23)
modules from loading properly. I had to go back and re-compile/re-install
the previous version (probably scripts/config files) to resurrect pcmcia.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1997-04-24 9:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <199704231725.MAA15629@stommel.tamu.edu>
1997-04-23 18:30 ` PCMCIA compiling on UDB/RH4.1 (new kernel probs) Erik Troan
1997-04-24 9:50 Thunderhawk Alpha
-- strict thread matches above, loose matches on Subject: below --
1997-04-23 11:16 Thunderhawk Alpha
1997-04-23 17:25 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox