Re: make installworld problem (4.7 p2 - p7)

2003-03-13 Thread Socketd
Hi again

Nobody has answered in the last week, so I will try again.
I have installed 4.7 on a i386.
I have upgraded to p2 and now want to upgrade p7.
All my drives are mounted locally (on the same computer) and I try to 
upgrade the system as I always have with:
	make buildworld
	make buildkernel KERNCONF=SOCKETD
	make installkernel KERNCONF=SOCKETD
	reboot
	make installworld
I reboot the system and it is running the p7 kernel. I have mounted 
all my drives with rw (not using noexec or nosuid) and I have lots of 
space.
When I cd to /usr/src and type make installworld I get:
mkdir -p /tmp/install.54110
for prog in [ awk cat chflags chmod chown date echo egrep find grep  
ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true 
uname wc zic; do  cp `which $prog` /tmp/install.54110;  done
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
   cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN 
directory
*** Error code 64

Stop in /usr/src.
*** Error code 1
I have tried deleting /usr/src/* and /usr/obj/*, getting all the 
source again and buildworld perfectly.
My securelevel is -1.

Please cc to me as I am not on the list.

br
socketd
To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: make installworld problem (4.7 p2 - p7)

2003-03-13 Thread Nikolay Y. Orlyuk
On Thu, Mar 13, 2003 at 03:47:58PM +0100, Socketd wrote:
 Hi again
 
 Nobody has answered in the last week, so I will try again.
 I have installed 4.7 on a i386.
 I have upgraded to p2 and now want to upgrade p7.
 All my drives are mounted locally (on the same computer) and I try to 
 upgrade the system as I always have with:
   make buildworld
   make buildkernel KERNCONF=SOCKETD
   make installkernel KERNCONF=SOCKETD
   reboot
   make installworld
 I reboot the system and it is running the p7 kernel. I have mounted 
 all my drives with rw (not using noexec or nosuid) and I have lots of 
 space.
 When I cd to /usr/src and type make installworld I get:
 mkdir -p /tmp/install.54110
 for prog in [ awk cat chflags chmod chown date echo egrep find grep  
 ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true 
 uname wc zic; do  cp `which $prog` /tmp/install.54110;  done
 usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN 
 directory
 *** Error code 64
Maybe you should try to check what will say 'which awk', 'which cat' ...
but in any way I can't understand why it need to do it all. In result of
executing this command sequence will be file /tmp/install.54110 which will
contain zic.

Also you may check how `[' accepted by shell. It must be simple word and
must not change of mean any of symbols around it.

 

-- 
With best wishes Nikolay
mail: [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: make installworld problem (4.7 p2 - p7)

2003-03-13 Thread Daniel Bye
On Thu, Mar 13, 2003 at 03:47:58PM +0100, Socketd wrote:
 Hi again
 
 Nobody has answered in the last week, so I will try again.
 I have installed 4.7 on a i386.
 I have upgraded to p2 and now want to upgrade p7.
 All my drives are mounted locally (on the same computer) and I try to 
 upgrade the system as I always have with:
   make buildworld
   make buildkernel KERNCONF=SOCKETD
   make installkernel KERNCONF=SOCKETD
   reboot
   make installworld
 I reboot the system and it is running the p7 kernel. I have mounted 
 all my drives with rw (not using noexec or nosuid) and I have lots of 
 space.
 When I cd to /usr/src and type make installworld I get:
 mkdir -p /tmp/install.54110
 for prog in [ awk cat chflags chmod chown date echo egrep find grep  
 ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true 
 uname wc zic; do  cp `which $prog` /tmp/install.54110;  done
 usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN 
 directory
 *** Error code 64
 
 Stop in /usr/src.
 *** Error code 1
 
 I have tried deleting /usr/src/* and /usr/obj/*, getting all the 
 source again and buildworld perfectly.
 My securelevel is -1.
 
 Please cc to me as I am not on the list.

This came up a couple of weeks ago.  In that case, the file '[' was missing,
and you need to make a link.  The first iteration through the for loop will
fail, because `which $prog` returns nothing - causing the whole thing to
choke.  This is why you see the cp usage message - effectively, it is trying
to run cp /tmp/install.54110, which does not have the right number of
arguments. 

# ln /bin/test /bin/[

should do the trick.  Rerun the installworld and it should work.  Provided
that was the problem...  ;-)

HTH

Dan

-- 
Daniel Bye

PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: make installworld problem (4.7 p2 - p7

2003-03-13 Thread dslb
Damn, sorry for posting the message twice (Balsa did a number on me!).

Daniel and Nikolay you were right, test was missing from /bin and when
I
copied it there and ran make installworld again, it worked! So a big
thank
you to all who replied :-)

br
socketd


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Make installworld problem (4.7-p2 - p7)

2003-03-05 Thread dslb
Hi all

I have a i386 computer with FreeBSD 4.7-p2 installed. I have downloaded
the source to 4.7-p7 and cd to /usr/src. Here I ran:
make buildworld
make buildkernel KERNCONF=SOCKETD
make installkernel KERNCONF=SOCKETD
rebooted into single user mode and did a uname -a:
FreeBSD loadmaster 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #0: Tue Mar  4
15:09:32 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SOCKETD  i386

But when I cd to /usr/src and type make installworld I get:
mkdir -p /tmp/install.362
for prog in [ awk cat chflags chmod chown date echo egrep find grep  ln
make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true uname
wc zic; do  cp `which $prog` /tmp/install.362;  done
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
   cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
*** Error code 64

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

I hope someone can help.

br
socketd


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Make installworld problem (4.7-p2 - p7)

2003-03-05 Thread Kris Kennaway
On Wed, Mar 05, 2003 at 08:26:00PM +0100, [EMAIL PROTECTED] wrote:
 Hi all
 
 I have a i386 computer with FreeBSD 4.7-p2 installed. I have downloaded
 the source to 4.7-p7 and cd to /usr/src. Here I ran:
 make buildworld
 make buildkernel KERNCONF=SOCKETD
 make installkernel KERNCONF=SOCKETD
 rebooted into single user mode and did a uname -a:
 FreeBSD loadmaster 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #0: Tue Mar  4
 15:09:32 CET 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SOCKETD  i386
 
 But when I cd to /usr/src and type make installworld I get:
 mkdir -p /tmp/install.362
 for prog in [ awk cat chflags chmod chown date echo egrep find grep  ln
 make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true uname
 wc zic; do  cp `which $prog` /tmp/install.362;  done
 usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN directory
 *** Error code 64

Let me guess, you have /tmp mounted on a MFS?

Kris


pgp0.pgp
Description: PGP signature


Re: Make installworld problem (4.7-p2 - p7)

2003-03-05 Thread Kent Stewart
On Wednesday 05 March 2003 11:26 am, [EMAIL PROTECTED] wrote:
 Hi all

 I have a i386 computer with FreeBSD 4.7-p2 installed. I have
 downloaded the source to 4.7-p7 and cd to /usr/src. Here I ran:
 make buildworld
 make buildkernel KERNCONF=SOCKETD
 make installkernel KERNCONF=SOCKETD
 rebooted into single user mode and did a uname -a:
 FreeBSD loadmaster 4.7-RELEASE-p7 FreeBSD 4.7-RELEASE-p7 #0: Tue Mar 
 4 15:09:32 CET 2003
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SOCKETD  i386

 But when I cd to /usr/src and type make installworld I get:
 mkdir -p /tmp/install.362
 for prog in [ awk cat chflags chmod chown date echo egrep find grep 
 ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl  test true
 uname wc zic; do  cp `which $prog` /tmp/install.362;  done
 usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN
 directory *** Error code 64

 Stop in /usr/src.
 *** Error code 1

 Stop in /usr/src.

 I hope someone can help.

Do you have /tmp set so that it is non-exec?

Kent

 br
 socketd


 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with unsubscribe freebsd-questions in the body of the message

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message


Re: Make installworld problem (4.7-p2 - p7) (reply to all)

2003-03-05 Thread dslb
On Wed, 5 Mar 2003, Kris Kennaway wrote:
 Date: Wed, 5 Mar 2003 11:34:26 -0800
 To: [EMAIL PROTECTED]
 From: Kris Kennaway [EMAIL PROTECTED]
 Subject: Re: Make installworld problem (4.7-p2 -  p7)

  But when I cd to /usr/src and type make installworld I get:
  mkdir -p /tmp/install.362
  for prog in [ awk cat chflags chmod chown date echo egrep find grep
 ln
  make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl test true
 uname
  wc zic; do cp `which $prog` /tmp/install.362; done
  usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src target
  cp [-R [-H | -L | -P]] [-f | -i | -n] [-pv] src1 ... srcN
 directory
  *** Error code 64

 Let me guess, you have /tmp mounted on a MFS?

Nope

 From: Joshua Lokken [EMAIL PROTECTED]
 At this point I have to ask, (maybe a dumb question), but did you
 reboot into single-user mode after you tested the new kernel, before
 you did 'make installworld'?

I rebooted normally to check if the kernel worked, it did, so I rebooted
again and used boot -s to get single user mode.

 From: Kent Stewart [EMAIL PROTECTED]
 Do you have /tmp set so that it is non-exec?

Ah, I just thought that was it, I removed noexec on /tmp and /var/tmp, but
I still get the error. This is how it is mounted now:

/dev/ad0s1a  /  ufs rw  1 1
/dev/ad1s1e  /home  ufs rw,nosuid  2 2
/dev/ad0s1e  /tmp  ufs rw,nosuid  2 2
/dev/ad0s1f  /usr  ufs rw  2 2
/dev/ad0s1g  /var  ufs rw,nosuid  2 2
/dev/ad0s1h  /var/tmp  ufs rw,nosuid  2 2
procfs  /proc  procfs rw  0 0

Btw I am not on the list, so please CC to me.

br
socketd

ps: securelevel = -1 so that is not it either.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message