Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2002 14:10:34 +0200
From:      Axel Scheepers <axel@axel.truedestiny.net>
To:        Bernie <Bernie_X@myrealbox.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: buildworld problem -- newcomer
Message-ID:  <20020505141034.B21194@mars.thuis>
In-Reply-To: <20020505131812.A52406-100000@BLAST>; from Bernie_X@myrealbox.com on Sun, May 05, 2002 at 01:27:13PM %2B0300
References:  <20020505131812.A52406-100000@BLAST>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Bernie,

First you could try to locate the date command using whereis:
fbsd# whereis date
date: /bin/date /usr/share/man/man1/date.1.gz /usr/src/bin/date

It should be in /bin as you see, which might not be in your PATH, which
you can verify using 'echo $PATH' and look for /bin in the output.
If it is in your /bin and /bin is not in your PATH you can add it with:
export PATH=${PATH}:/bin or
setenv PATH ${PATH}:/bin

If it is missing you could try to recompile it from your src dir. As you
can see from the whereis output, that should be /usr/src/bin/date
Try:
fbsd# cd /usr/src/bin/date
fbsd# make
02:07pm root@mars:/usr/src/bin/date $make
Warning: Object directory not changed from original /usr/src/bin/date
cc -O -pipe  -Wall -Wformat    -c date.c
cc -O -pipe  -Wall -Wformat    -c netdate.c
cc -O -pipe  -Wall -Wformat    -c vary.c
cc -O -pipe  -Wall -Wformat     -static -o date date.o netdate.o vary.o  -lutil
gzip -cn date.1 > date.1.gz
fbsd# ./date
Sun May  5 14:08:03 CEST 2002
fbsd# cp ./date /bin

et voila, your date is back again. Now you should be able to do a fresh 
make world. Don't forget to run mergemaster afterwards, which allows you
to intergrate the changes in the config files in an easy way.

Gr,

--
Axel Scheepers
UNIX System Administrator

email: axel@axel.truedestiny.net
       a.scheepers@iae.nl
http://axel.truedestiny.net/~axel
------------------------------------------
If you have a procedure with 10 parameters, you probably missed some.
------------------------------------------

On Sun, May 05, 2002 at 01:27:13PM +0300, Bernie wrote:
> hi,
> 
> i had 4.5 prerelease and tried to go to 4.5 release doing a buildworld.
> 
> the first time i did it, the buildworld + kernel went ok but the
> installworld failed with an error about date. The i thought that may
> be that the date is incorrect and tried to change it, but it seems
> that the command date does not exist!
> 
> T# date
> date: Command not found.
> 
> then i deleted all /usr/obj and repeated the whole process from
> scretch but now buildworld fails and it seems it cant find the 'date'
> command.
> 
> the error i'm getting from buildworld is:
> 
> 
> ting osreldate.h from newvers.sh
> setvar PARAMFILE /usr/src/include/../sys/sys/param.h;  .
> /usr/src/include/../sys
> /conf/newvers.sh;                        echo "$COPYRIGHT" > osreldate.h;
>                  echo "#ifdef _KERNEL" >> osreldate.h;
> echo '#
>                  error "osreldate.h must not be used in the kernel, use
> sys/param.h"' >> osreldat
>                  e.h;  echo "#else" >> osreldate.h;
> echo \#'undef _
>                  _FreeBSD_version' >> osreldate.h;        echo \#'define
> __FreeBSD_version' $RELD
>                  ATE >> osreldate.h;  echo "#endif" >> osreldate.h
>                  date: not found
>                  *** Error code 127
>                  Stop in /usr/src/include.
>                  *** Error code 1
>                  Stop in /usr/src.
>                  *** Error code 1
> 
> 
> 
> which from what i can see is caused by the the missing date command.
> 
> at the moment, the kernel is updated so i'm running 4.5 release, but
> i cant do buildworld.
> 
> any help would be much appreciated since i' stuck at the moment and i
> realy dont want to format and do it all from scretch...
> 
> thanx in advance for your help
> 
> regards,
> 
> bernie
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020505141034.B21194>