2002-07-31 11:53:46

by Nick Martens

[permalink] [raw]
Subject: 2.5.29 compile error [undefined reference to `register_serial']

I am trying to compile 2.5.29 but I am running into some compilation problems
i have attached my .config

make[1]: Leaving directory `/usr/src/newkrnls/linux-2.5.29/init'
ld -m elf_i386 -T arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o
arch/i386/kernel/init_task.o init/init.o --start-group
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o security/built-in.o
/usr/src/newkrnls/linux-2.5.29/arch/i386/lib/lib.a lib/lib.a
/usr/src/newkrnls/linux-2.5.29/arch/i386/lib/lib.a drivers/built-in.o
sound/sound.o arch/i386/pci/pci.o net/network.o --end-group -o vmlinux
drivers/built-in.o: In function `serial_register':
drivers/built-in.o(.text+0x316af): undefined reference to `register_serial'
drivers/built-in.o: In function `parport_serial_pci_remove':
drivers/built-in.o(.text+0x319a8): undefined reference to `unregister_serial'
make: *** [vmlinux] Error 1


Attachments:
.config (22.93 kB)

2002-07-31 12:19:27

by Nick Martens

[permalink] [raw]
Subject: Re: 2.5.29 compile error [undefined reference to `register_serial']


I think this output is better

[......]
make[1]: Leaving directory `/usr/src/newkrnls/linux-2.5.29/arch/i386/pci'
Generating build number
make[1]: Entering directory `/usr/src/newkrnls/linux-2.5.29/init'
Generating /usr/src/newkrnls/linux-2.5.29/include/linux/compile.h (updated)
gcc -Wp,-MD,./.version.o.d -D__KERNEL__
-I/usr/src/newkrnls/linux-2.5.29/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include
-DKBUILD_BASENAME=version -c -o version.o version.c
ld -m elf_i386 -r -o init.o main.o version.o do_mounts.o
make[1]: Leaving directory `/usr/src/newkrnls/linux-2.5.29/init'
ld -m elf_i386 -T arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o
arch/i386/kernel/init_task.o init/init.o --start-group
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o
ipc/ipc.o security/built-in.o
/usr/src/newkrnls/linux-2.5.29/arch/i386/lib/lib.a lib/lib.a
/usr/src/newkrnls/linux-2.5.29/arch/i386/lib/lib.a drivers/built-in.o
sound/sound.o arch/i386/pci/pci.o net/network.o --end-group -o vmlinux
drivers/built-in.o: In function `serial_register':
drivers/built-in.o(.text+0x316af): undefined reference to `register_serial'
drivers/built-in.o: In function `parport_serial_pci_remove':
drivers/built-in.o(.text+0x319a8): undefined reference to `unregister_serial'
make: *** [vmlinux] Error 1



> I am trying to compile 2.5.29 but I am running into some compilation
> problems i have attached my .config
>

2002-07-31 19:47:20

by Russell King

[permalink] [raw]
Subject: Re: 2.5.29 compile error [undefined reference to `register_serial']

On Wed, Jul 31, 2002 at 07:52:30PM +0000, Nick Martens wrote:
> I am trying to compile 2.5.29 but I am running into some compilation problems
> i have attached my .config

You need to enable:

> #
> # Serial drivers
> #
> # CONFIG_SERIAL_8250 is not set

this option.

(hmm, parport_serial is earlier in the config system; maybe we should
suck it into drivers/serial so the config system works as expected?)

--
Russell King ([email protected]) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html

2002-08-01 09:16:41

by Nick Martens

[permalink] [raw]
Subject: Re: 2.5.29 compile error [undefined reference to `register_serial']

Ok thanks a lot

On Wednesday 31 July 2002 19:50, Russell King wrote:
> On Wed, Jul 31, 2002 at 07:52:30PM +0000, Nick Martens wrote:
> > I am trying to compile 2.5.29 but I am running into some compilation
> > problems i have attached my .config
>
> You need to enable:
> > #
> > # Serial drivers
> > #
> > # CONFIG_SERIAL_8250 is not set
>
> this option.
>
> (hmm, parport_serial is earlier in the config system; maybe we should
> suck it into drivers/serial so the config system works as expected?)