2.5.13: link failure
Subsystems (2)
2.5.13 with root nfs enabled doesn't link:
fs/fs.o: In function `root_nfs_getport':
fs/fs.o(.text.init+0x187c): undefined reference to `in_ntoa'
I haven't looked into this one yet.
2.5.13 with SCSI enabled:
drivers/scsi/scsidrv.o: In function `sd_init':
drivers/scsi/scsidrv.o(.text+0x128c8): undefined reference to vmalloc' drivers/scsi/scsidrv.o(.text+0x128fc): undefined reference to vmalloc' drivers/scsi/scsidrv.o(.text+0x12934): undefined reference to vmalloc' drivers/scsi/scsidrv.o(.text+0x12948): undefined reference to vmalloc' drivers/scsi/scsidrv.o(.text+0x1296c): undefined reference to vmalloc' drivers/scsi/scsidrv.o(.text+0x12980): more undefined references to vmalloc' follow
The following patch fixes this, and also fixes the similar problem in scsi_debug.c:
drivers/scsi/scsi_debug.c +2 -1
@@ -32,6 +32,7 @@#include <linux/init.h> #include <linux/proc_fs.h> #include <linux/smp_lock.h> +#include <linux/vmalloc.h> #include <asm/system.h> #include <asm/io.h>
@@ -40,7 +41,7 @@#include "scsi.h" #include "hosts.h" -#include <linux/stat.h> +#include <linux/stat.h> #ifndef LINUX_VERSION_CODE #include <linux/version.h>
drivers/scsi/sd.c +1 -1
@@ -41,7 +41,7 @@#include <linux/errno.h> #include <linux/interrupt.h> #include <linux/init.h> - +#include <linux/vmalloc.h> #include <linux/smp.h> #include <asm/uaccess.h>
Signature · 2 lines
Russell King ([email protected]) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Russell King <[email protected]> writes:
> 2.5.13 with root nfs enabled doesn't link:
> fs/fs.o: In function `root_nfs_getport':
> fs/fs.o(.text.init+0x187c): undefined reference to `in_ntoa'
> I haven't looked into this one yet.
Nothing serious. Whoever it was that did that global replace missed a spot is all...
Cheers,
Trond
fs/nfs/nfsroot.c renamed from fs/nfs/nfsroot.c.orig +2 -2
@@ -374,8 +374,8 @@ {struct sockaddr_in sin; -printk (KERN_NOTICE "Looking up port of RPC %d/%d on %s\n" , - program, version,in_ntoa (servaddr)); +printk (KERN_NOTICE "Looking up port of RPC %d/%d on %u.%u.%u.%u\n" , + program, version,NIPQUAD (servaddr));set_sockaddr (&sin, servaddr,0 );return rpc_getport_external (&sin, program, version, proto); }