Date: Sun, 5 May 2002 14:12:56 +0300 (EEST) From: Bernie <Bernie_X@myrealbox.com> To: Axel Scheepers <axel@axel.truedestiny.net> Cc: Bernie <Bernie_X@myrealbox.com>, <freebsd-questions@FreeBSD.ORG> Subject: Re: buildworld problem -- newcomer Message-ID: <20020505140723.M52406-100000@BLAST> In-Reply-To: <20020505141034.B21194@mars.thuis>
next in thread | previous in thread | raw e-mail | index | archive | help
hi, thank you for your reply. i tried what you said and it seems to compile but then it's not in the directory. This is all the process: BLAST# pwd /usr/src/bin/date BLAST# ll total 40 -rw-r--r-- 1 root wheel 208 Aug 28 1999 Makefile -rw-r--r-- 1 root wheel 10239 Sep 4 2001 date.1 -rw-r--r-- 1 root wheel 7867 Dec 25 23:13 date.c -rw-r--r-- 1 root wheel 1972 Aug 28 1999 extern.h -rw-r--r-- 1 root wheel 5589 Sep 4 2001 netdate.c -rw-r--r-- 1 root wheel 11086 Dec 8 2000 vary.c -rw-r--r-- 1 root wheel 1678 Aug 28 1999 vary.h BLAST# make cc -O -pipe -march=pentium -Wall -Wformat -c /usr/src/bin/date/date.c cc -O -pipe -march=pentium -Wall -Wformat -c /usr/src/bin/date/netdate.c cc -O -pipe -march=pentium -Wall -Wformat -c /usr/src/bin/date/vary.c cc -O -pipe -march=pentium -Wall -Wformat -static -o date date.o netdate.o vary.o -lutil gzip -cn /usr/src/bin/date/date.1 > date.1.gz BLAST# ll total 40 -rw-r--r-- 1 root wheel 208 Aug 28 1999 Makefile -rw-r--r-- 1 root wheel 10239 Sep 4 2001 date.1 -rw-r--r-- 1 root wheel 7867 Dec 25 23:13 date.c -rw-r--r-- 1 root wheel 1972 Aug 28 1999 extern.h -rw-r--r-- 1 root wheel 5589 Sep 4 2001 netdate.c -rw-r--r-- 1 root wheel 11086 Dec 8 2000 vary.c -rw-r--r-- 1 root wheel 1678 Aug 28 1999 vary.h BLAST# then i tried to run it and also find it but it doesnt seem to exist... BLAST# ./date ./date: Command not found. BLAST# date date: Command not found. BLAST# find / -name "date" /usr/src/bin/date /usr/src/usr.sbin/timed/SMM.doc/timed/date /usr/compat/linux/bin/date /usr/obj/usr/src/bin/date /usr/obj/usr/src/bin/date/date BLAST# i dont quite understand why it doesnt work but if you can see anything please let me know. thanx again for your help. On Sun, 5 May 2002, Axel Scheepers wrote: > 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?20020505140723.M52406-100000>