1.3.95 genksyms proble during make dep

Andrew C. Esh (andrewes@cnt.com)
Wed, 24 Apr 1996 17:43:15 -0500


I got a series of errors from genksyms while in net/802,
compiling "p8022.c", "p8022tr.c", and "psnap.c". The error
was reporting a problem with symbol "[register_8022_client]"
and "[register_snap_client]" (and others). The reported error
was "unknown struct", and struct name was "sock".

I noticed this and similar error occurring once in drivers/scsi,
fs/fat, net, net/core too.

Here's the output (I think this is all of them), associated with
the directory they occurred in:

drivers/scsi:

gcc -D__KERNEL__ -I/usr2/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -DCPU=486 -E -D__GENKSYMS__ scsi_syms.c | /sbin/genksyms -w
/usr2/src/linux/include/linux/modules
genksyms "scsi_syms.c": warning: symbol [scsi_register]: unknown 'struct sock'
updating /usr2/src/linux/include/linux/modversions.h

fs/fat:

gcc -D__KERNEL__ -I/usr2/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -DCPU=486 -E -D__GENKSYMS__ fatfs_syms.c | /sbin/genksyms -w
/usr2/src/linux/include/linux/modules
genksyms "fatfs_syms.c": warning: symbol [fat_add_cluster]: unknown 'struct sock'
updating /usr2/src/linux/include/linux/modversions.h

fs/proc:

gcc -D__KERNEL__ -I/usr2/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -DCPU=486 -E -D__GENKSYMS__ procfs_syms.c | /sbin/genksyms -w
/usr2/src/linux/include/linux/modules
genksyms "procfs_syms.c": warning: symbol [proc_register]: unknown 'struct sock'
updating /usr2/src/linux/include/linux/modversions.h

linux/net:

gcc -D__KERNEL__ -I/usr2/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -DCPU=486 -E -D__GENKSYMS__ netsyms.c | /sbin/genksyms -w
/usr2/src/linux/include/linux/modules
genksyms "netsyms.c": warning: symbol [sock_register]: unknown 'struct ncp_server'
updating /usr2/src/linux/include/linux/modversions.h

net/802:

gcc -D__KERNEL__ -I/usr2/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -DCPU=486 -E -D__GENKSYMS__ p8022tr.c | /sbin/genksyms -w
/usr2/src/linux/include/linux/modules
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct sock'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct ip_mc_list'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct net_alias_info'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct net_alias'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct tcphdr'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct iphdr'
genksyms "p8022tr.c": warning: symbol [register_8022tr_client]: unknown 'struct udphdr'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct sock'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct ip_mc_list'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct net_alias_info'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct net_alias'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct tcphdr'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct iphdr'
genksyms "p8022.c": warning: symbol [register_8022_client]: unknown 'struct udphdr'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct sock'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct ip_mc_list'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct net_alias_info'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct net_alias'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct tcphdr'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct iphdr'
genksyms "psnap.c": warning: symbol [register_snap_client]: unknown 'struct udphdr'
updating /usr2/src/linux/include/linux/modversions.h

I just posted my .config in another 1.3.95 error I reported. If you need
it again, let me know.

-- 
Andrew C. Esh			mailto:andrew_esh@cnt.com
Computer Network Technology	andrewes@mtn.org (finger for PGP key)
6500 Wedgwood Road		612.550.8000 (main)
Maple Grove MN 55311		612.550.8229 (direct)
http://www.cnt.com - CNT Inc. Home Page
http://www.mtn.org/~andrewes - ACE Home Page