Strange problem with "make clean"

Ruslan Ermilov ru at
Fri Jun 13 14:07:02 PDT 2003

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
> ===> 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
> 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
> 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?

Ruslan Ermilov		Sysadmin and DBA,
ru at		Sunbay Software Ltd,
ru at		FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list