[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: compile and linking problems with kernel 2.5.67, "-fPIC"?



Hello Michel!

Am Mittwoch, 16.04.03 um 23:30 Uhr schrieb Michel Dänzer:

On Mit, 2003-04-16 at 13:02, Christoph Ewering wrote:

I trying to get vdr (DVB video recording) running on my beige G3.
Because I had no luck with 2.4.10-ben* i thought about 2.5.67. This
source has the dvb-drivers included but I always get linking error (i
am not in the front of my linux box) ".....data exception ....
R_REL24_PPC"

It's hard to say anything without seeing the actual output.

Yes you are right, but this was from my memory, now here are the hard facts:

gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -DKBUILD_MODNAME=version -c -o init/.tmp_version.o init/version.c scripts/fixdep init/.version.o.d init/version.o 'gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -fomit-frame-pointer -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -DKBUILD_MODNAME=version -c -o init/.tmp_version.o init/version.c' > init/.version.o.tmp; rm -f init/.version.o.d; mv -f init/.version.o.tmp init/.version.o.cmd ld -r -o init/built-in.o init/main.o init/version.o init/mounts.o init/initramfs.o ld -Ttext 0xc0000000 -Bstatic -T arch/ppc/vmlinux.lds.s arch/ppc/kernel/head.o arch/ppc/kernel/idle_6xx.o init/built-in.o --start-group usr/built-in.o arch/ppc/kernel/built-in.o arch/ppc/platforms/built-in.o arch/ppc/mm/built-in.o arch/ppc/lib/built-in.o arch/ppc/syslib/built-in.o arch/ppc/xmon/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a drivers/built-in.o sound/built-in.o net/built-in.o --end-group -o vmlinux
drivers/built-in.o(.text+0x2a284): In function `do_fd_request':
: undefined reference to `sti'
drivers/built-in.o(.text+0x2a284): In function `do_fd_request':
: relocation truncated to fit: R_PPC_REL24 sti
drivers/built-in.o(.text+0x2a488): In function `set_timeout':
: undefined reference to `save_flags'
drivers/built-in.o(.text+0x2a488): In function `set_timeout':
: relocation truncated to fit: R_PPC_REL24 save_flags
drivers/built-in.o(.text+0x2a48c): In function `set_timeout':
: undefined reference to `cli'
drivers/built-in.o(.text+0x2a48c): In function `set_timeout':
: relocation truncated to fit: R_PPC_REL24 cli
drivers/built-in.o(.text+0x2a4d0): In function `set_timeout':
: undefined reference to `restore_flags'
drivers/built-in.o(.text+0x2a4d0): In function `set_timeout':
: relocation truncated to fit: R_PPC_REL24 restore_flags
drivers/built-in.o(.text+0x2b518): In function `grab_drive':
: undefined reference to `save_flags'
drivers/built-in.o(.text+0x2b518): In function `grab_drive':
: relocation truncated to fit: R_PPC_REL24 save_flags
drivers/built-in.o(.text+0x2b51c): In function `grab_drive':
: undefined reference to `cli'
drivers/built-in.o(.text+0x2b51c): In function `grab_drive':
: relocation truncated to fit: R_PPC_REL24 cli
drivers/built-in.o(.text+0x2b568): In function `grab_drive':
: undefined reference to `restore_flags'
drivers/built-in.o(.text+0x2b568): In function `grab_drive':
: relocation truncated to fit: R_PPC_REL24 restore_flags
drivers/built-in.o(.text+0x2b59c): In function `grab_drive':
: undefined reference to `restore_flags'
drivers/built-in.o(.text+0x2b59c): In function `grab_drive':
: relocation truncated to fit: R_PPC_REL24 restore_flags
drivers/built-in.o(.text+0x2b5d8): In function `release_drive':
: undefined reference to `save_flags'
drivers/built-in.o(.text+0x2b5d8): In function `release_drive':
: relocation truncated to fit: R_PPC_REL24 save_flags
drivers/built-in.o(.text+0x2b5dc): In function `release_drive':
: undefined reference to `cli'
drivers/built-in.o(.text+0x2b5dc): In function `release_drive':
: relocation truncated to fit: R_PPC_REL24 cli
drivers/built-in.o(.text+0x2b5f4): In function `release_drive':
: undefined reference to `restore_flags'
drivers/built-in.o(.text+0x2b5f4): In function `release_drive':
: relocation truncated to fit: R_PPC_REL24 restore_flags
make: *** [vmlinux] Error 1

What did I miss?

Bye,
Christoph


Reply to: