Re: Important note for modutils snapshot for 970103

Klaus Kudielka (oe1kib@oe1xtu.ampr.org)
Sun, 05 Jan 1997 13:02:05 +0000


Felix A. Koop wrote:
> > >
> > >serial.c:2958: warning: parameter names (without types) in function
> > >declaration
> > >serial.c:2958: warning: data definition has no type or storage class
>
> I got the above mentioned error message while compiling with modules and
> without modversions on i386. Apparently the definition of EXPORT_SYMTAB
> isn't set in this case.

Here is a fix for the problem. I hope I've got it right...

--- Rules.make.ORIG Sun Jan 5 11:43:11 1997
+++ Rules.make Sun Jan 5 11:44:22 1997
@@ -186,6 +186,11 @@
$(TOPDIR)/include/linux/modversions.h:
@touch $(TOPDIR)/include/linux/modversions.h

+ifdef CONFIG_MODULES
+$(MX_OBJS) $(LX_OBJS) $(OX_OBJS): $(TOPDIR)/include/linux/modversions.h
+ $(CC) $(CFLAGS) -DEXPORT_SYMTAB -c $(@:.o=.c)
+
+endif
endif

#

Now modules and kernel do compile. However, I still get these warnings:

[0]% make modules >/dev/null
ppp.c: In function `ppp_init_dev':
ppp.c:391: warning: unused variable `indx'
hdlcdrv.c: In function `hdlcdrv_probe':
hdlcdrv.c:746: warning: unused variable `i'
eql.c: In function `eql_init':
eql.c:216: warning: unused variable `i'
ad1848.c:87: warning: `timer_installed' defined but not used
ad1848.c:120: warning: `ad1848_tmr_install' declared `static' but never
defined
ad1848.c:121: warning: `ad1848_tmr_reprogram' declared `static' but
never defined
inode.c: In function `init_module':
inode.c:447: warning: unused variable `status'
inode.c: In function `init_module':
inode.c:558: warning: unused variable `status'
af_ipx.c: In function `ipx_create':
af_ipx.c:1839: warning: assignment from incompatible pointer type
af_netrom.c: In function `nr_create':
af_netrom.c:626: warning: assignment from incompatible pointer type
af_netrom.c: In function `nr_make_new':
af_netrom.c:686: warning: assignment from incompatible pointer type
af_rose.c:634: warning: `def_callback3' defined but not used
af_ax25.c: In function `ax25_create':
af_ax25.c:1179: warning: assignment from incompatible pointer type
af_ax25.c: In function `ax25_make_new':
af_ax25.c:1239: warning: assignment from incompatible pointer type
[0]% make zImage >/dev/null
vc_screen.c: In function `vcs_read':
vc_screen.c:101: warning: `org' might be used uninitialized in this
function
vc_screen.c: In function `vcs_write':
vc_screen.c:162: warning: `org' might be used uninitialized in this
function
hosts.c:307: warning: initialization from incompatible pointer type
socket.c: In function `sys_recvmsg':
socket.c:1198: warning: `len' might be used uninitialized in this
function

Furtheron, SCSI Tape and ISDN support still do not compile.

And, last, but not least, the following modules have unresolved symbols:

[1]# depmod -a
*** Unresolved symbols in module /lib/modules/2.1.20/misc/appletalk.o
*** Unresolved symbols in module /lib/modules/2.1.20/scsi/sg.o
*** Unresolved symbols in module /lib/modules/2.1.20/scsi/sr_mod.o
[0]# modprobe appletalk
/lib/modules/2.1.20/misc/appletalk.o: unresolved symbol
sklist_destroy_socket
/lib/modules/2.1.20/misc/appletalk.o: unresolved symbol
sklist_insert_socket
[255]# modprobe sg.o
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_command_size
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol allocate_device
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_unregister_module
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_do_cmd
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_init_free
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_register_module
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_init_malloc
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_ioctl
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_free
/lib/modules/2.1.20/scsi/sg.o: unresolved symbol scsi_malloc
[255]# modprobe sr_mod
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol allocate_device
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol
scsi_unregister_module
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_do_cmd
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol need_isa_buffer
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol request_queueable
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_init_free
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol print_sense
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol
scsi_register_module
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol print_command
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_init_malloc
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol dma_free_sectors
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_ioctl
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_free
/lib/modules/2.1.20/scsi/sr_mod.o: unresolved symbol scsi_malloc
[255]#

--
Klaus Kudielka OE1KIB        Peter Jordanstr. 165, A-1180 Wien, AUSTRIA
oe1kib@oe1xtu.ampr.org                  http://oe1xtu.ampr.org/~oe1kib/
OE1KIB@OE1XIB.AUT.EU            http://asterix.nt.tuwien.ac.at/~oe1kib/