On Fri, Jun 13, 2003 at 03:59:06PM +0200, Alessandro de Manzano
wrote:> Hello,
>
> I'm experiencing a weird problem doing "make clean" in
"/usr/src".
>
> It happens on a couple of FreeBSD 4.8-RELEASE machines (RELENG_4_8 to
> be precise).
>
> Cvsup, build & install phases all went fine, just "make
clean" went
> wrong.
>
> I tried rm-ing the incriminated subdirectory and even rm-ing the
> checkout.cvs:RELENG_4_8 file and re-cvsupping but nothing changes.
>
>
> Here is the error log:
>
> [...]
> rm -f telnet authenc.o commands.o main.o network.o ring.o sys_bsd.o
> telnet.o terminal.o utilities.o telnet.1.gz telnet.1.cat.gz
> ===> secure/usr.bin/openssl
> rm -f buildinf.h openssl/opensslconf.h openssl/evp.h xopenssl
> app_rand.o apps.o asn1pars.o ca.o ciphers.o crl.o crl2p7.o dgst.o dh.o
> dhparam.o dsa.o dsaparam.o enc.o engine.o errstr.o gendh.o gendsa.o
> genrsa.o nseq.o ocsp.o openssl.o passwd.o pkcs12.o pkcs7.o pkcs8.o
> rand.o req.o rsa.o rsautl.o s_cb.o s_client.o s_server.o s_socket.o
> s_time.o sess_id.o smime.o speed.o spkac.o verify.o version.o x509.o
> CA.pl.1.gz asn1parse.1.gz ca.1.gz ciphers.1.gz crl.1.gz crl2pkcs7.1.gz
> dgst.1.gz dhparam.1.gz dsa.1.gz dsaparam.1.gz enc.1.gz gendsa.1.gz
> genrsa.1.gz nseq.1.gz ocsp.1.gz openssl.1.gz passwd.1.gz pkcs12.1.gz
> pkcs7.1.gz pkcs8.1.gz rand.1.gz req.1.gz rsa.1.gz rsautl.1.gz
> s_client.1.gz s_server.1.gz sess_id.1.gz smime.1.gz speed.1.gz
> spkac.1.gz verify.1.gz version.1.gz x509.1.gz CA.pl.1.cat.gz
> asn1parse.1.cat.gz ca.1.cat.gz ciphers.1.cat.gz crl.1.cat.gz
> crl2pkcs7.1.cat.gz dgst.1.cat.gz dhparam.1.cat.gz dsa.1.cat.gz
> dsaparam.1.cat.gz enc.1.cat.gz gendsa.1.cat.gz genrsa.1.cat.gz
> nseq.1.cat.gz ocsp.1.cat.gz openssl.1.cat.gz passwd.1.cat.gz
> pkcs12.1.cat.gz pkcs7.1.cat.gz pkcs8.1.cat.gz rand.1.cat.gz
> req.1.cat.gz rsa.1.cat.gz rsautl.1.cat.gz s_client.1.cat.gz
> s_server.1.cat.gz sess_id.1.cat.gz smime.1.cat.gz speed.1.cat.gz
> spkac.1.cat.gz verify.1.cat.gz version.1.cat.gz x509.1.cat.gz
> rm: openssl/opensslconf.h: Not a directory
> rm: openssl/evp.h: Not a directory
> *** Error code 1
>
> Stop in /usr/src/secure/usr.bin/openssl.
> *** Error code 1
>
This means that either /usr/obj/usr/src/secure/usr.bin/openssl
or /usr/src/secure/usr.bin/openssl have the "openssl" file,
where it's supposed to be a directory in /usr/obj/...
rm -r /usr/obj/usr/src/secure/usr.bin/openssl
What "make clean" is trying to do is equivalent to trying to
"rm /COPYRIGHT/foo".
Note that "make clean" is only guaranteed to work if the
object tree was populated using this same sources; everything
else is not guaranteed to work, and "make cleandir" is
advised instead, though even this may break when the types
of some files change from "file" to "directory", like has
happened with /usr/obj/usr/src/secure/usr.bin/openssl/openssl.
Are you perhaps downgrading from 5.x?
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru@sunbay.com Sunbay Software Ltd,
ru@FreeBSD.org FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :
http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030614/08cf762b/attachment.bin