Can't link 2.4.2 kernel on PPC

Mark D Dunn mddunn at
Sat Sep 1 02:02:30 EST 2001

Can someone please help me?

There appears to be undefined variable (in pmac_pci), called
When I try to compile the 2.4.2 kernel on PPC machine with USB support on,
there is an error saying that this is
undefined. After "fixing" the problems (using menu makeconfig), I am left
with the linkage problems:

make[1]: Entering directory `/usr/src/linux-2.4.2/arch/ppc/xmon'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.4.2/arch/ppc/xmon'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/linux-2.4.2/arch/ppc/xmon'
make[1]: Leaving directory `/usr/src/linux-2.4.2/arch/ppc/xmon'
ld -T arch/ppc/ -Ttext 0xc0000000 -Bstatic
arch/ppc/kernel/head.o ini
t/main.o init/version.o \
        --start-group \
        arch/ppc/kernel/kernel.o arch/ppc/mm/mm.o arch/ppc/lib/lib.o
el.o mm/mm.o fs/fs.o ipc/ipc.o arch/ppc/xmon/x.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o
t/net.o drivers/media/media.o  drivers/ide/idedriver.o
drivers/scsi/scsidrv.o dr
ivers/cdrom/driver.o drivers/pci/driver.o drivers/macintosh/macintosh.o
video/video.o drivers/usb/usbdrv.o \
        net/network.o \
        /usr/src/linux/lib/lib.a \
        --end-group \
        -o vmlinux
drivers/scsi/scsidrv.o: In function `ncr_script_copy_and_bind':
drivers/scsi/scsidrv.o(.text.init+0x890): undefined reference to
drivers/scsi/scsidrv.o(.text.init+0x890): relocation truncated to fit:
          R_PPC_REL24 phys_to_bus
drivers/scsi/scsidrv.o: In function `ncr_attach':
drivers/scsi/scsidrv.o(.text.init+0x1888): undefined reference to
drivers/scsi/scsidrv.o(.text.init+0x1888): relocation truncated to fit:
          R_PPC_REL24 phys_to_bus
drivers/video/video.o: In function `chips_of_init':
drivers/video/video.o(.text.init+0x4b7c): undefined reference to
drivers/video/video.o(.text.init+0x4b7c): relocation truncated to fit:
          R_PPC_REL24 pci_device_loc
drivers/video/video.o(.text.init+0x4bc0): undefined reference to
drivers/video/video.o(.text.init+0x4bc0): relocation truncated to fit:
     R_PPC_REL24 pci_io_base
drivers/video/video.o(.text.init+0x4bcc): undefined reference to
drivers/video/video.o(.text.init+0x4bcc): relocation truncated to fit:
     R_PPC_REL24 pci_io_base
make: *** [vmlinux] Error 1

Thanks in advance for your help.

Mark D. Dunn
IBM Jibe Project
(919) 254-7052

** Sent via the linuxppc-dev mail list. See

More information about the Linuxppc-dev mailing list