2005-03-19 19:19:21

by Jim Gifford

[permalink] [raw]
Subject: Build issue current MIPS - RaQ2

I have not been able to build kernels since 2.6.9 on my RaQ2 for some
time. I have tried the linux-mips.org port and the current 2.6.11.5
release. I keep getting the same error.

Building modules, stage 2.
MODPOST
*** Warning: "pci_iounmap" [drivers/net/tulip/tulip.ko] undefined!
*** Warning: "pci_iomap" [drivers/net/tulip/tulip.ko] undefined!

with Make V=1
Building modules, stage 2.
make -rR -f /usr/src/linux-2.6.11.5/scripts/Makefile.modpost
scripts/mod/modpost -o /usr/src/linux-2.6.11.5/Module.symvers
vmlinux drivers/block/loop.o drivers/block/rd.o drivers/cdrom/cdrom.o
drivers/char/rtc.o drivers/net/tulip/tulip.o drivers/scsi/scsi_mod.o
drivers/scsi/scsi_transport_spi.o drivers/scsi/sd_mod.o
drivers/scsi/sr_mod.o drivers/scsi/st.o
drivers/scsi/sym53c8xx_2/sym53c8xx.o fs/exportfs/exportfs.o
fs/isofs/isofs.o fs/lockd/lockd.o fs/nfs/nfs.o fs/nfsd/nfsd.o
fs/nls/nls_ascii.o fs/nls/nls_base.o fs/nls/nls_cp437.o
fs/nls/nls_iso8859-1.o fs/nls/nls_utf8.o fs/smbfs/smbfs.o lib/crc32.o
lib/zlib_inflate/zlib_inflate.o net/key/af_key.o
net/netlink/netlink_dev.o net/packet/af_packet.o net/sunrpc/sunrpc.o
net/unix/unix.o
*** Warning: "pci_iounmap" [drivers/net/tulip/tulip.ko] undefined!
*** Warning: "pci_iomap" [drivers/net/tulip/tulip.ko] undefined!

Now it seems to me that the Makefile.modpost would need to include
arch/mips/lib/iomap.o file to correct this issue, but that doesn't seem
like the correct thing to do, and I have no clue on how to do that.

--
----
Jim Gifford
[email protected]


2005-03-20 06:28:21

by Jim Gifford

[permalink] [raw]
Subject: Patch for iomap on MIPS was Re: Build issue current MIPS - RaQ2

Jim Gifford wrote:

> I have not been able to build kernels since 2.6.9 on my RaQ2 for some
> time. I have tried the linux-mips.org port and the current 2.6.11.5
> release. I keep getting the same error.
>
> Building modules, stage 2.
> MODPOST
> *** Warning: "pci_iounmap" [drivers/net/tulip/tulip.ko] undefined!
> *** Warning: "pci_iomap" [drivers/net/tulip/tulip.ko] undefined!
>
>
I Finally figured it out, Here is a patch

diff -Naur linux-2.6.11/arch/mips/lib/Makefile
linux-mips-2.6.11/arch/mips/lib/Makefile
--- linux-2.6.11/arch/mips/lib/Makefile 2005-03-01 23:37:48 -0800
+++ linux-mips-2.6.11/arch/mips/lib/Makefile 2005-03-19 21:49:03 -0800
@@ -2,7 +2,10 @@
# Makefile for MIPS-specific library files..
#

-lib-y += csum_partial_copy.o dec_and_lock.o iomap.o memcpy.o promlib.o \
+lib-y += csum_partial_copy.o dec_and_lock.o memcpy.o promlib.o \
strlen_user.o strncpy_user.o strnlen_user.o

+
+obj-y += iomap.o
+
EXTRA_AFLAGS := $(CFLAGS)

--
----
Jim Gifford
[email protected]

2005-03-20 06:31:36

by Andrew Morton

[permalink] [raw]
Subject: Re: Build issue current MIPS - RaQ2

Jim Gifford <[email protected]> wrote:
>
> I have not been able to build kernels since 2.6.9 on my RaQ2 for some
> time. I have tried the linux-mips.org port and the current 2.6.11.5
> release. I keep getting the same error.
>
> Building modules, stage 2.
> MODPOST
> *** Warning: "pci_iounmap" [drivers/net/tulip/tulip.ko] undefined!
> *** Warning: "pci_iomap" [drivers/net/tulip/tulip.ko] undefined!

Does this fix it?

--- 25/arch/mips/lib/Makefile~mips-linkage-fix 2005-03-19 22:29:34.000000000 -0800
+++ 25-akpm/arch/mips/lib/Makefile 2005-03-19 22:30:07.000000000 -0800
@@ -2,7 +2,9 @@
# Makefile for MIPS-specific library files..
#

-lib-y += csum_partial_copy.o dec_and_lock.o iomap.o memcpy.o promlib.o \
+lib-y += csum_partial_copy.o dec_and_lock.o memcpy.o promlib.o \
strlen_user.o strncpy_user.o strnlen_user.o

+obj-y += iomap.o
+
EXTRA_AFLAGS := $(CFLAGS)
_