[devel] memtest86-3.2-alt2: rebuild failed

Damir Shayhutdinov =?iso-8859-1?q?damir_=CE=C1_altlinux=2Eorg?=
Чт Окт 12 13:58:04 MSD 2006


12.10.06, Michael Shigorin<mike@> написал(а):
> On Thu, Oct 12, 2006 at 01:35:55PM +0400, QA Team Robot wrote:
> > Package: memtest86-3.2-alt2
> > Packager: Michael Shigorin <mike на altlinux>
> ...
> > gcc -c -Wall -march=i486 -m32 -Os -fomit-frame-pointer -fno-builtin -ffreestanding -fPIC extra.c
> > ld --warn-constructors --warn-common -static -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o && \
> >       ld -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o linuxbios.o memsize.o pci.o controller.o random.o extra.o
> > lib.o: In function `.L152':
> > lib.c:(.text+0x916): undefined reference to `__stack_chk_fail_local'
> > make: *** [memtest_shared] Error 1
> > make: Leaving directory `/usr/src/RPM/BUILD/memtest86-3.2'
>
> On Thu, Oct 12, 2006 at 01:35:54PM +0400, QA Team Robot wrote:
> > Package: memtest86+-1.65-alt2
> > Packager: Serge Pavlovsky <pal на altlinux>
> ...
> > ld --warn-constructors --warn-common -static -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o linuxbios.o memsize.o pci.o controller.o extra.o random.o  && \
> >       ld -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o linuxbios.o memsize.o pci.o controller.o extra.o random.o
> > lib.o: In function `.L162':
> > lib.c:(.text+0x98a): undefined reference to `__stack_chk_fail_local'
> > make: *** [memtest_shared] Error 1
> > make: Leaving directory `/usr/src/RPM/BUILD/memtest86+-1.65'
>
> Похоже, чинится это одинаково.  Как?

Похоже надо либо линковать через gcc (там включается
-fstack-protector), либо к строчке линковки через ld добавить -lssp


Подробная информация о списке рассылки Devel