* Problem with diff3
@ 1997-07-31 0:12 Billinghurst, David
1997-08-01 8:15 ` Patrick Doyle
0 siblings, 1 reply; 2+ messages in thread
From: Billinghurst, David @ 1997-07-31 0:12 UTC (permalink / raw)
To: 'gnu-win32@cygnus.com'
I have (successfully) build rcs-5.7 using gnuwin32 b18.
Configure failed due to a problem with diff3
To reproduce the error
echo 0 > conftest0
echo 1 > conftest1
diff3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 /dev/null
On ultrix 4.3 and Irix 6.2 I get
<<<<<<< 0
0
=======
>>>>>>> 2
With win95 and gnuwin32 b18 I get
diff3: /dev/null: No such file or directory
+++++++++++++++++++++++++++++++++++++++++
(Mr) David Billinghurst
Comalco Research Centre
PO Box 316, Thomastown, Vic, Australia, 3074
Phone: +61 3 9469 0642
FAX: +61 3 9462 2700
Email: David.Billinghurst@restech.cra.com.au
It's not my speeling that's the trouble. It's just taht I can't tipe.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem with diff3
1997-07-31 0:12 Problem with diff3 Billinghurst, David
@ 1997-08-01 8:15 ` Patrick Doyle
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Doyle @ 1997-08-01 8:15 UTC (permalink / raw)
To: David.Billinghurst; +Cc: gnu-win32
I have (successfully) build rcs-5.7 using gnuwin32 b18.
Configure failed due to a problem with diff3
To reproduce the error
echo 0 > conftest0
echo 1 > conftest1
diff3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 /dev/null
On ultrix 4.3 and Irix 6.2 I get
<<<<<<< 0
0
=======
>>>>>>> 2
With win95 and gnuwin32 b18 I get
diff3: /dev/null: No such file or directory
The problem is that "diff3" attempts to perform a 'stat()' system call
on each of the file names and 'stat()' fails (returns ENOENT) for
"/dev/null". You can fix this at least four different ways:
1) Change offending line to read (something like):
cat /dev/null | diff3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 -
2) Change the offending line to read (something like):
diff3 -E -m -L 0 -L 1 -L 2 conftest0 conftest1 NUL
3) Change "diff3" to compare the filename to be opened with
"/dev/null" and not call 'stat()' if they are equal. (It's a hack,
but it solves the problem).
4) Change the implementation of 'stat()' in CYGWIN32.DLL to produce
the correct (i.e. unix-like) result for files called "/dev/null".
I believe that 'open()' already does this.
--
--patrick
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-08-01 8:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-31 0:12 Problem with diff3 Billinghurst, David
1997-08-01 8:15 ` Patrick Doyle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).