Subject: Re: Failure to compile GENERIC
To: Arnaud Lacombe <al@sigfpe.info>
From: ober <ober@linbsd.org>
List: current-users
Date: 07/25/2006 13:03:19
Now it gets past that, but since fileassoc is missing from GENERIC,
it fails with
# link isac/netbsd
/stuff/src/tooldir.NetBSD-3.99.17-x86_64/bin/powerpc--netbsd-ld -N -Ttext
0x100000 -e __start -X -o netbsd ${SYSTEM_OBJ} ${EXTRA_OBJ} vers.o
kern_verifiedexec.o: In function `veriexec_lookup':
/stuff/src/sys/kern/kern_verifiedexec.c:361: undefined reference to
`fileassoc_lookup'
kern_verifiedexec.o: In function `veriexec_tblfind':
/stuff/src/sys/kern/kern_verifiedexec.c:355: undefined reference to
`fileassoc_tabledata_lookup'
kern_verifiedexec.o: In function `veriexec_removechk':
/stuff/src/sys/kern/kern_verifiedexec.c:593: undefined reference to
`fileassoc_clear'
kern_verifiedexec.o: In function `veriexec_hashadd':
/stuff/src/sys/kern/kern_verifiedexec.c:374: undefined reference to
`fileassoc_add'
kern_verifiedexec.o: In function `veriexec_init_fp_ops':
/stuff/src/sys/kern/kern_verifiedexec.c:141: undefined reference to
`fileassoc_register'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Init'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Init'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Update'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Final'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Update'
/stuff/src/sys/kern/kern_verifiedexec.c:153: undefined reference to
`RMD160Final'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Final'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:161: undefined reference to
`SHA256_Final'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Final'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:169: undefined reference to
`SHA384_Final'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Init'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Final'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Update'
/stuff/src/sys/kern/kern_verifiedexec.c:177: undefined reference to
`SHA512_Final'
verified_exec.o: In function `veriexec_delete':
/stuff/src/sys/dev/verified_exec.c:375: undefined reference to
`fileassoc_table_clear'
/stuff/src/sys/dev/verified_exec.c:379: undefined reference to
`fileassoc_clear'
verified_exec.o: In function `veriexec_newtable':
/stuff/src/sys/dev/verified_exec.c:230: undefined reference to
`fileassoc_table_add'
/stuff/src/sys/dev/verified_exec.c:235: undefined reference to
`fileassoc_tabledata_add'
*** [netbsd] Error code 1
1 error
nbmake: stopped in /stuff/src/sys/arch/macppc/compile/obj/isac
ERROR: Failed to make all in /stuff/src/sys/arch/macppc/compile/obj/isac
*** BUILD ABORTED ***
I will keep looking.
Thanks for the fix. I really should have looked at it closer.
-Ober
On Tue, 25 Jul 2006, Arnaud Lacombe wrote:
> Date: Tue, 25 Jul 2006 19:50:52 +0200
> From: Arnaud Lacombe <al@sigfpe.info>
> To: ober <ober@linbsd.org>
> Cc: current-users@netbsd.org, port-macppc@netbsd.org
> Subject: Re: Failure to compile GENERIC
>
> On Tue, Jul 25, 2006 at 12:35:45PM -0500, ober wrote:
>> I get the following failure on the latest current
>> when cross compiling GENERIC
>>
>> --- mem.o ---
>> # compile isac/mem.o
>> /stuff/src/tooldir.NetBSD-3.99.17-x86_64/bin/powerpc--netbsd-gcc -mno-strict-align -msoft-float -Wa,-maltivec -ffreestanding -fno-zero-initialized-in-bss -g -O2
>> -Wreturn-type -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow -Wcast-qual -Wwrite-strings
>> -Wno-sign-compare -Wno-pointer-sign -Wno-attributes -fno-strict-aliasing -Dmacppc=macppc -I. -I/stuff/src/sys/../common/include -I/stuff/src/sys/arch -I/stuff/src/sys
>> -nostdinc -DLKM -DZS_CONSOLE_ABORT -DOFB_ENABLE_CACHE -DVERIFIED_EXEC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -I/stuff/src/sys/lib/libkern/../../../common/lib/libc/quad
>> -I/stuff/src/sys/lib/libkern/../../../common/lib/libc/string -I/stuff/src/sys/lib/libkern/../../../common/lib/libc/arch/powerpc/string -I/stuff/src/sys/dist/pf
>> -I/stuff/src/sys/dist/ipf -c /stuff/src/sys/arch/powerpc/powerpc/mem.c
>> /stuff/src/sys/arch/powerpc/powerpc/mem.c: In function 'mmmmap':
>> /stuff/src/sys/arch/powerpc/powerpc/mem.c:170: error: 'l_cred' undeclared (first use in this function)
>> /stuff/src/sys/arch/powerpc/powerpc/mem.c:170: error: (Each undeclared identifier is reported only once
>> /stuff/src/sys/arch/powerpc/powerpc/mem.c:170: error: for each function it appears in.)
>> *** [mem.o] Error code 1
>> 1 error
>>
>> nbmake: stopped in /stuff/src/sys/arch/macppc/compile/obj/isac
>>
>> ERROR: Failed to make all in /stuff/src/sys/arch/macppc/compile/obj/isac
>> *** BUILD ABORTED ***
>>
>> Build machine is amd64, and I was able to build .22 fine.
>>
>> -Ober
> could you try the following patch, it should work better after
>
> regards,
>
> Arnaud
>