problems compiling dev-src (Cygwin B20.1) on Linux
Fri Dec 31 13:28:00 GMT 1999
Thanks for the patch. It looks like this is already fixed in
our sources. I appreciate your tracking this down, though.
On Tue, Dec 07, 1999 at 01:00:56PM -0800, Tom Williams wrote:
>Here is the patch:
>--- arscan.c-orig Fri Nov 1 14:08:25 1996
>+++ arscan.c Mon Dec 6 19:12:46 1999
>@@ -434,14 +434,21 @@ ar_name_equal (name, mem, truncated)
> abort ();
> struct ar_hdr hdr;
>- return !strncmp (name, mem,
>- sizeof (hdr.ar_name) -
>+ /* Changed code to determine the truncated amount to remove
>+ the #ifdef code that was in the middle of the call to strncmp
>+ to fix a gcc-2.95.2 on Linux 2.2.13 compile problem.
>+ Code changed by Tom Williams on 12/6/99
>+ e-mail: email@example.com
>+ int amount = 0;
> #if !defined (__hpux) && !defined (cray)
>+ amount = 1;
>-#endif /* !__hpux && !cray */
>+ amount = 2;
>+#endif /* !__hupx && !cray */
>+ return !strncmp (name, mem,
>+ sizeof (hdr.ar_name) - amount);
>Chris Faylor <firstname.lastname@example.org> on 12/06/99 01:47:03 PM
>Please respond to email@example.com
>To: Tom Williams/HQ/dssi, firstname.lastname@example.org
>Subject: Re: problems compiling dev-src (Cygwin B20.1) on Linux
>On Mon, Dec 06, 1999 at 01:10:31PM -0500, Chris Faylor wrote:
>>On Sun, Dec 05, 1999 at 06:11:26PM -0800, Tom Williams wrote:
>>>Hi! I was trying to build Cygwin B20.1 from source (dev-src) on Linux
>>>(2.2.13 kernel w/ glibc-2.1.2) in an attempt to build a Linux hosted,
>>>targetted cross compiler based on gcc-2.95.2.
>>>I found the file arscan.c would not compile due to some #ifdef coding for
>>>portability in a certain function.
>>>How should I send in the "patch" I made to get it to properly compile?
>>Send the patch to the mailing list.
>>I assume that it is small enough that it won't bother anyone.
>I'm sorry. This is not a patch. Peruse past mailing list articles for
>information on generating patches. Hint: You use diff.
>Want to unsubscribe from this list?
>Send a message to email@example.com
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin