Teemu Rinta-aho | 1 Sep 2005 08:50
Favicon

chicken-or-egg-problem?

How should I update the kernel, as the old config does this:

#   compile  P4/ioconf.o
cc -pipe -ffreestanding -pipe -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-fno-zero-initialized-in-bss -Di386 -I. -I../../../../arch -I../../../..
-nostdinc -DLKM -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ioconf.c
ioconf.c:21: warning: initialization from incompatible pointer type
ioconf.c:24: warning: initialization from incompatible pointer type
ioconf.c:29: warning: initialization from incompatible pointer type
... jada jada ...

and the new one does this:

[root <at> p4 conf]# /usr/obj/usr/src/usr.bin/config/config P4
/usr/obj/usr/src/usr.bin/config/config: Undefined PLT symbol "__fstat30"
(symnum = 13)

[root <at> p4 P4]# uname -a
NetBSD p4.rinta-aho.org 3.99.7 NetBSD 3.99.7 (P4) #0: Thu Aug 11 11:30:36 EEST
2005  root <at> p4.rinta-aho.org:/usr/src/sys/arch/i386/compile/P4 i386
[root <at> p4 P4]# ls -la /usr/obj/usr/src/usr.bin/config/config
-rwxr-xr-x  1 root  wheel  96947 Sep  1 01:32
/usr/obj/usr/src/usr.bin/config/config

--

-- 
teemu <at> rinta-aho.org -+- http://www.rinta-aho.org

(Continue reading)

Teemu Rinta-aho | 1 Sep 2005 09:20
Favicon

Re: chicken-or-egg-problem?

cd /usr/src/usr.bin/config &&
make clean &&
make &&
cd /usr/src/sys/arch/i386/conf &&
/usr/obj/usr/src/usr.bin/config/config P4

did the trick...

Teemu

Teemu Rinta-aho wrote:
> How should I update the kernel, as the old config does this:
> 
> #   compile  P4/ioconf.o
> cc -pipe -ffreestanding -pipe -Werror -Wall -Wno-main -Wno-format-zero-length
> -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type
> -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
> -fno-zero-initialized-in-bss -Di386 -I. -I../../../../arch -I../../../..
> -nostdinc -DLKM -DDEBUG -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c ioconf.c
> ioconf.c:21: warning: initialization from incompatible pointer type
> ioconf.c:24: warning: initialization from incompatible pointer type
> ioconf.c:29: warning: initialization from incompatible pointer type
> ... jada jada ...
> 
> and the new one does this:
> 
> [root <at> p4 conf]# /usr/obj/usr/src/usr.bin/config/config P4
> /usr/obj/usr/src/usr.bin/config/config: Undefined PLT symbol "__fstat30"
> (symnum = 13)
> 
(Continue reading)

Nino Dehne | 2 Sep 2005 06:26
Picon

Re: chicken-or-egg-problem?

Teemu Rinta-aho wrote:
> cd /usr/src/usr.bin/config &&
> make clean &&
> make &&
> cd /usr/src/sys/arch/i386/conf &&
> /usr/obj/usr/src/usr.bin/config/config P4
> 
> did the trick...

Or you could just use /usr/src/build.sh since that is the correct way to
avoid problems like yours.

Regards,

ND


Gmane