1.3.69 IPX compile problems (+patch)

Marek Michalkiewicz (marekm@i17linuxb.ists.pwr.wroc.pl)
Thu, 29 Feb 1996 21:52:53 +0100 (MET)


I had to apply the following patch to successfully compile 1.3.69 with
IPX support and for "insmod ncpfs.o" to work (bad_user_access_length
undefined - yes, gcc 2.5.8...). Hope you find it useful.

Regards,

Marek

diff -ur v1.3.69/linux/fs/ncpfs/sock.c linux/fs/ncpfs/sock.c
--- v1.3.69/linux/fs/ncpfs/sock.c Mon Feb 26 10:58:15 1996
+++ linux/fs/ncpfs/sock.c Thu Feb 29 17:06:27 1996
@@ -257,7 +257,7 @@
ntohs(sender.sipx_port),
packet_buf[0], packet_buf[1]);

- ncp_trigger_message(sk->protinfo.ipx.ncp_server);
+ ncp_trigger_message(sk->protinfo.af_ipx.ncp_server);

set_fs(fs);
}
@@ -306,7 +306,7 @@
}

sk->data_ready = ncp_msg_data_ready;
- sk->protinfo.ipx.ncp_server = server;
+ sk->protinfo.af_ipx.ncp_server = server;
return 0;
}

diff -ur v1.3.69/linux/kernel/ksyms.c linux/kernel/ksyms.c
--- v1.3.69/linux/kernel/ksyms.c Mon Feb 26 10:58:17 1996
+++ linux/kernel/ksyms.c Thu Feb 29 17:15:41 1996
@@ -319,6 +319,7 @@
X(simple_strtoul),
X(system_utsname),
X(sys_call_table),
+ X(bad_user_access_length),

/* Signal interfaces */
X(send_sig),
diff -ur v1.3.69/linux/net/ipx/af_ipx.c linux/net/ipx/af_ipx.c
--- v1.3.69/linux/net/ipx/af_ipx.c Mon Feb 26 10:58:21 1996
+++ linux/net/ipx/af_ipx.c Thu Feb 29 15:50:47 1996
@@ -1385,7 +1385,7 @@
#ifdef CONFIG_IPX_INTERN
len += sprintf(buffer+len,
"%08lX:%02X%02X%02X%02X%02X%02X:%04X ",
- htonl(s->ipx_intrfc->if_netnum),
+ htonl(s->protinfo.af_ipx.intrfc->if_netnum),
s->protinfo.af_ipx.node[0],
s->protinfo.af_ipx.node[1],
s->protinfo.af_ipx.node[2],