Mail Archives: cygwin/1999/12/08/00:03:01
Thanks for the patch. It looks like this is already fixed in
our sources. I appreciate your tracking this down, though.
-chris
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 ();
> #else
> 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: tomdkat AT home DOT com
>+ */
>+ int amount = 0;
> #if !defined (__hpux) && !defined (cray)
>- 1
>+ amount = 1;
> #else
>- 2
>-#endif /* !__hpux && !cray */
>- );
>+ amount = 2;
>+#endif /* !__hupx && !cray */
>+ return !strncmp (name, mem,
>+ sizeof (hdr.ar_name) - amount);
> #endif
> }
>
>Peace......
>
>Tom
>
>
>
>
>Chris Faylor <cgf AT cygnus DOT com> on 12/06/99 01:47:03 PM
>
>Please respond to cygwin AT sourceware DOT cygnus DOT com
>
>To: Tom Williams/HQ/dssi, cygwin AT sourceware DOT cygnus DOT com
>cc:
>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,
>Win32
>>>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.
>cgf
>
>
>
>
>
>
>
>--
>Want to unsubscribe from this list?
>Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>
--
cgf AT cygnus DOT com
http://www.cygnus.com/
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -