Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <003601c0fd82$73b7e020$6464648a@ca.boeing.com> From: "Michael A. Chase" To: "Soren Andersen" , References: <5 DOT 1 DOT 0 DOT 14 DOT 2 DOT 20010624204747 DOT 024b8828 AT pop3 DOT cris DOT com> Subject: Re: cp error -- oh the great sanity of *nix tools?!? Date: Mon, 25 Jun 2001 07:22:58 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Because Cygwin mounts allow the same directory to be reachable by different routes, it is not always obvious to the user whether two directories or files are the same. I guess the same could be true with symbolic links in normal UNIXs. Please confirm what directory make was working in when it tried to copy those files. The output from 'mount' is also needed to see if that directory and /usr/sbin/ are really the same directory. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. ----- Original Message ----- From: "Randall R Schulz" To: "Soren Andersen" ; Sent: Sunday, June 24, 2001 20:59 Subject: Re: cp error -- oh the great sanity of *nix tools?!? > 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. > > At 19:58 2001-06-24, you wrote: > > > >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 > >file > >./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 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple