pkgsrc-Users archive

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

Re: sysutils/xenkernel4[68] build errors on NetBSD 7



On 12/07/2017 11:15, Gary Duzan wrote:
> if : false; then rm -f /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/xen.efi; echo 'EFI support disabled'; fi
> EFI support disabled
> rm -f /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/.xen.efi.[0-9]*
> ld -L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib    -melf_x86_64     -melf_x86_64  -T xen.lds -N prelink.o \
>     /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/symbols-dummy.o -o /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/.xen-syms.0
> prelink.o: In function `do_domctl':
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/domctl.c:381: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/domctl.c:1141: undefined reference to `__stack_chk_fail'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/domctl.c:1141:(.text+0x394f): relocation truncated to fit: R_X86_64_PLT32 against undefined symbol `__stack_chk_fail'
> prelink.o: In function `do_xen_version':
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/kernel.c:231: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/kernel.c:363: undefined reference to `__stack_chk_fail'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/common/kernel.c:363:(.text+0x11401): relocation truncated to fit: R_X86_64_PLT32 against undefined symbol `__stack_chk_fail'
> [...]
> prelink.o: In function `alternative_instructions':
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/alternative.c:187: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/alternative.c:211: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/alternative.c:211: undefined reference to `__stack_chk_fail'
> prelink.o: In function `construct_dom0':
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/domain_build.c:878: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/domain_build.c:1640: undefined reference to `__stack_chk_guard'
> /usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/arch/x86/domain_build.c:1640: undefined reference to `__stack_chk_fail'
> Makefile:107: recipe for target '/usr/pkg/work/sysutils/xenkernel46/work/xen-4.6.5/xen/xen-syms' failed
> 
>    sysutils/xenkernel48 gets similar results, but both build fine
> on NetBSD 8.

I see the same on -current.
Are you using clang?
If so, have you tried gcc?

Roy


Home | Main Index | Thread Index | Old Index