Current-Users archive

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

Re: svr4_net* not being registered?

In article <>,
 <> wrote:
>I'm out of my comfort zone, but no matter; I dug in. 
>I'm trying to compile (on amd64) svr4, svr4_32, elf32 binary 
>compatibility. It's failing with: 
># compile kamloops/vers.o 
>-mcmodel=kernel -mno-red-zone -ffreestanding
>-fno-zero-initialized-in-bss -O2 -fn
>o-omit-frame-pointer -fstack-protector -Wstack-protector --param
>ssp-buffer-size=1 -fno-strict-aliasing -fstack-protector
>-Wstack-protector --param 
>ssp-buffer-size=1 -Werror -Wall -Wno-main -Wno-format-zero-length
>-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch
>-Wshadow -Wcas
>t-qual -Wwrite-strings -Wno-unreachable-code -Wno-sign-compare
>-Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter -Werror
>/usr/src/obj/destdir.amd64 -Damd64 -Dx86_64 -I.
>-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys
>-D_KERNEL_OPT -std=gnu99
>-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad -
>st/ipf -I/usr/src/sys/external/isc/atheros_hal/dist
>-I/usr/src/sys/external/bsd/drm/dist/bsd-core -I/usr/
>-I/usr/src/sys/external/bsd/acpica/dist/include -c vers.c 
>--- netbsd --- 
># link kamloops/netbsd 
>/usr/src/obj/tooldir.NetBSD-5.99.49-amd64/bin/x86_64--netbsd-ld -Map
> --cref -T /usr/src/sys/arch/amd64/conf/kern.ldscript -Ttext
>ff80100000 -e start -z max-page-size=0x100000 -X -o netbsd ${SYSTEM_OBJ}
>${EXTRA_OBJ} vers.o 
>devsw.o:(.data+0x7b8): undefined reference to `svr4_net_cdevsw' 
>*** [netbsd] Error code 1 
>nbmake: stopped in /usr/obj/sys/arch/amd64/compile/kamloops 
>1 error 
>nbmake: stopped in /usr/obj/sys/arch/amd64/compile/kamloops 
>ERROR: Failed to make all in "/usr/src/sys/arch/amd64/compile/obj/kamloops" 
>My digging suggests svr4_net needs to register itself? This is outside 
>my domain, so I'll post here in case somebody familiar w/ this knows 
>exactly what to do... 

No, this cannot work right now. The reason you are getting the warning
is because someone copied just the svr4_net line to the device majors
file, but all the rest MI stuff is missing from amd64 to make this work.
fgrep -ir svr4 src/sys/arch/i386/conf and then do the same for amd64.
What are you trying to run? Solaris binaries?


Home | Main Index | Thread Index | Old Index