This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ntsec patch for setup

Robert Collins wrote:
> On Sat, 2003-03-01 at 01:32, Max Bowsher wrote:
>> I can commit ASAP, once this issue is talked out, but I think it
>> might be wise to use 200206 for an interim release now, unless
>> Robert is very sure 200207 is OK.
> 200206. I wasn't thinking for a sec there.


I've built setup from 200206 with ntsec patch as backported by Pavel. I ran
into other problems:

1) I had to merge these fixes, which enable building of setup with gcc-2.
cvs upd -kk -j2.22 -j2.23
cvs upd -kk -j2.84 -j2.85
cvs upd -kk -j1.5 -j1.6 libgetopt++/

They are to do with erroneous inclusion of -lstdc++ (which is of course
gcc3's now)

2) gcc2 (not g++2) chokes on some lines in /usr/include/mingw/string.h. I
had to patch as below, adding prototypes before the functions declared

I propose to commit the backported ntsec patch and gcc-2 fixes when I
return, in about 2 hours.

I see Pavel has just sent in a passwd-grp.bat removal patch just now. I'll
apply that once it gets the OK from Robert.


Patch follows:

--- /usr/include/mingw/string.h.orig 2003-02-28 15:07:21.000000000 +0000
+++ /usr/include/mingw/string.h 2003-02-28 15:12:50.000000000 +0000
@@ -162,12 +162,16 @@
 int strcmpi (const char*, const char*);
 int stricmp (const char*, const char*);
 extern __inline__ int
+strcasecmp (const char * __sz1, const char * __sz2);
+extern __inline__ int
 strcasecmp (const char * __sz1, const char * __sz2)
   {return _stricmp (__sz1, __sz2);}
 int stricoll (const char*, const char*);
 char* strlwr (char*);
 int strnicmp (const char*, const char*, size_t);
 extern __inline__ int
+strncasecmp (const char * __sz1, const char * __sz2, size_t
+extern __inline__ int
 strncasecmp (const char * __sz1, const char * __sz2, size_t
   {return _strnicmp (__sz1, __sz2, __sizeMaxCompare);}
 char* strnset (char*, int, size_t);
@@ -180,6 +184,8 @@

 /* NOTE: There is no _wcscmpi, but this is for compatibility. */
 extern __inline__ int
+wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2);
+extern __inline__ int
 wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2)
   {return _wcsicmp (__ws1, __ws2);}
 wchar_t* wcsdup (wchar_t*);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]