Hello, I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf /usr/obj/*, etc; but nothing helps. This is the error cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/lib/libkvm/kvm_getloadavg.c cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/lib/libkvm/kvm_getswapinfo.c cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c /usr/src/lib/libkvm/kvm_proc.c /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist': /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev' isn't known /usr/src/lib/libkvm/kvm_proc.c:114: error: storage size of 'pr' isn't known /usr/src/lib/libkvm/kvm_proc.c:176: error: structure has no member named `ki_jid' /usr/src/lib/libkvm/kvm_proc.c:377: error: structure has no member named `p_rux' *** Error code 1 Stop in /usr/src/lib/libkvm. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Some info FreeBSD jmb.mine.nu 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Aug 15 21:16:37 CEST 2005 sunray@jmb.mine.nu:/usr/obj/usr/src/sys/GENERIC i386 Regards, Markus
Markus Buretorp wrote:> Hello, > > I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup > to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf > /usr/obj/*, etc; but nothing helps. > > This is the error >I'm not entirely sure why so many users have so much troube upgrading. The process is outlined well on the FBSD site and to surmise: Assuming you have done your cvsup of the src tree: # cd /usr/src/usr.sbin/mergemaster # ./mergemaster.sh -p Drop to Single User Mode: As the superuser, you can execute: # shutdown now from a running system, which will drop it to single user mode. Alternatively, reboot the system, and at the boot prompt, enter the -s flag. The system will then boot single user. At the shell prompt you should then run: # fsck -p # mount -u / # mount -a -t ufs # swapon -a # cd /usr/obj # chflags -R noschg * # rm -rf * # cd /usr/src # make buildworld # cd /usr/src # make buildkernel KERNCONF=MYKERNEL # make installkernel KERNCONF=MYKERNEL # shutdown now # fsck -p # mount -u / # mount -a -t ufs # swapon -a # cd /usr/src # make installworld # shutdown -r now Done. -- Best regards, Chris Nature always sides with the hidden flaw.
On Sat, 2005-Nov-05 21:17:58 +0100, Markus Buretorp wrote:>I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a cvsup >to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make clean, rm -rf >/usr/obj/*, etc; but nothing helps....> /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev' > isn't knownI've just done a buildworld of RELENG_6 on 5.3 without problems so I suspect it's something you've done. It looks very much like kvm_proc.c is being built using the wrong include files - the ones in /usr/include/sys rather than the ones in /usr/src/sys/sys. Where is this error occurring during the buildworld? (What are the latest lines beginning '>>>' and '===>') What non-standard bits do you have in your command line, /etc/make.conf or MAKEOBJDIRPREFIX? -- Peter Jeremy
Markus Buretorp wrote:> Hello, > > I'm trying to upgrade from FreeBSD 5.4-STABLE to 6.0. I've done a > cvsup to RELENG_6 and RELENG_6_0, I've ran make cleanworld, make > clean, rm -rf /usr/obj/*, etc; but nothing helps. > > This is the error > > cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c > /usr/src/lib/libkvm/kvm_getloadavg.c > cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c > /usr/src/lib/libkvm/kvm_getswapinfo.c > cc -O2 -pipe -march=athlon-xp -DLIBC_SCCS -I/usr/src/lib/libkvm -c > /usr/src/lib/libkvm/kvm_proc.c > /usr/src/lib/libkvm/kvm_proc.c: In function `kvm_proclist': > /usr/src/lib/libkvm/kvm_proc.c:108: error: storage size of 't_cdev' > isn't known > /usr/src/lib/libkvm/kvm_proc.c:114: error: storage size of 'pr' > isn't known > /usr/src/lib/libkvm/kvm_proc.c:176: error: structure has no member > named `ki_jid' > /usr/src/lib/libkvm/kvm_proc.c:377: error: structure has no member > named `p_rux' > *** Error code 1 > > Stop in /usr/src/lib/libkvm. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > Some info > > FreeBSD jmb.mine.nu 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Aug 15 > 21:16:37 CEST 2005 > sunray@jmb.mine.nu:/usr/obj/usr/src/sys/GENERIC i386 > > > Regards, > Markus >Ok, I solved it. I had some stupid exports (INCLUDE_PATH etc) in my shell config.
On Mon, 06 Feb 2006 14:13:13 +0100 Markus Buretorp <markus.buretorp@home.se> wrote:> For me, the problem was caused by some stupid envvars I had > in my shell config. I removed these and the problem was solved. > > export INCLUDE_PATH=/usr/include:/usr/local/include export > C_INCLUDE_PATH=/usr/include:/usr/local/include:/usr/X11R6/include > export CPLUS_INCLUDE_PATH=$C_INCLUDE_PATH export > LIBRARY_PATH=/usr/lib:/usr/local/lib export LD_LIBRARY_PATH=.Thanks for the info, Markus. I didn't have anything of the sort in my shell config, but fortunately after I upgraded to 5.4-RELEASE-p11, I executed a successful buildworld for 6.0-RELEASE. Cheers! -- Anthony Chavez http://anthonychavez.org/ mailto:acc@anthonychavez.org jabber:acc@jabber.anthonychavez.org -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 477 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060209/11d5a4e1/attachment.bin