1.3.17 won't compile w/ IPX support [w/ fix]

Kai Henningsen (bryan@ayesha.phys.virginia.edu)
Thu, 10 Aug 1995 13:55:35 GMT

Hi folks,

I've just patched up to 1.3.17 (from 1.3.15) and I found that the
kernel would no longer compile with IPX support turned on. When 'make' got
to net/ipx/af_ipx.c, it died with the message:

af_ipx.c: In function `ipx_proto_init':
af_ipx.c:1971: warning: implicit declaration of function `proc_net_register'
af_ipx.c:1972: `PROC_NET_IPX' undeclared (first use this function)
af_ipx.c:1972: (Each undeclared identifier is reported only once
af_ipx.c:1972: for each function it appears in.)
af_ipx.c:1972: warning: excess elements in struct initializer after `(anonymous)
[et cetera]

The complaints were about PROC_NET_IPX, PROC_NET_IPX_INTERFACE,
PROC_NET_IPX_ROUTE and the function proc_net_register. These are defined
in <linux/proc_fs.h>.

After adding "#include <linux/proc_fs.h>" to af_ipx.c, I found that
it still wouldn't compile because of a typo further down in the file.
The line reading:

{ PROC_NET_IPX_ROUTE, ipx_rt_get_info 9, "ipx_route" });

should read:

{ PROC_NET_IPX_ROUTE, ipx_rt_get_info, 9, "ipx_route" });

(a comma was missing).

After making this change the kernel compiled with no problems.


Bryan Wright                |"If you take cranberries and stew them like 
Physics Department          | applesauce, they taste much more like prunes 
University of Virginia      | than rhubarb does."  --  Groucho 
Charlottesville, VA  22901  |			
(804) 924-7218              |         bryan@virginia.edu