cp error -- oh the great sanity of *nix tools?!?

Randall R Schulz rrschulz@cris.com
Sun Jun 24 20:59:00 GMT 2001


Perhaps those two files _were_ the same. Namely, if make's current 
directory was /usr/sbin at time the cp commands were invoked.

I don't believe cp reports that the source and destination files are the 
same unless they are. Surely you would rather it do this than open the 
destination with the create and truncate options and then copy the source 
(now empty) to it?

Same as on any Unix, Linux, BSD, FreeBSD, AIX, HPUX or other Unix work-alike.

Randall Schulz
Mountain View, CA USA

At 19:58 2001-06-24, you wrote:
>Dogma: GNU/*nix  programming is *always* so much better than what Redmond
>can produce. Yeah, like.
>I am running a Makefile installation (`make install') and I keep getting
>this error (the package is BerkeleyDB, this is irrelevent):
>./db_checkpoint -> /usr/sbin/db_checkpoint
>/usr/bin/cp: `./db_checkpoint' and `/usr/sbin/db_checkpoint' are the same
>./db_deadlock -> /usr/sbin/db_deadlock
>/usr/bin/cp: `./db_deadlock' and `/usr/sbin/db_deadlock' are the same file
>./db_dump -> /usr/sbin/db_dump
>/usr/bin/cp: `./db_dump' and `/usr/sbin/db_dump' are the same file
>./db_load -> /usr/sbin/db_load
>/usr/bin/cp: `./db_load' and `/usr/sbin/db_load' are the same file
>./db_printlog -> /usr/sbin/db_printlog
>/usr/bin/cp: `./db_printlog' and `/usr/sbin/db_printlog' are the same file
>./db_recover -> /usr/sbin/db_recover
>/usr/bin/cp: `./db_recover' and `/usr/sbin/db_recover' are the same file
>./db_stat -> /usr/sbin/db_stat
>/usr/bin/cp: `./db_stat' and `/usr/sbin/db_stat' are the same file
>make: *** [install] Error 1
>You know, the hacker who wrote `cp' to give this error wording needs to be
>put up against a wall and *shot*.
>What does this mean? I am sure that this is "one of those things" that
>everybody but me and two guys in Duluth seem to know.
>    soren andersen
>Want to unsubscribe from this list?
>Check out: http://cygwin.com/ml/#unsubscribe-simple

Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list