Return-Path: Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Delivered-To: mailing list apreq-dev@httpd.apache.org Delivered-To: moderator for apreq-dev@httpd.apache.org Received: (qmail 48905 invoked from network); 3 Feb 2001 02:14:49 -0000 Received: from smtp1.mts.net (205.200.16.74) by h31.sny.collab.net with SMTP; 3 Feb 2001 02:14:49 -0000 Received: from oemcomputer (wnpguw02-p05.mts.net [205.200.63.91]) by smtp1.mts.net (8.10.1/8.8.8) with SMTP id f132Eou09330; Fri, 2 Feb 2001 20:14:50 -0600 (CST) Message-ID: <000d01c08d86$3c364ea0$5b3fc8cd@oemcomputer> From: "Randy Kobes" To: "Jim Winstead" , "Matt Sergeant" Cc: , "Randy Kobes" References: <20010202132613.A4738@trainedmonkey.com> Subject: Re: Ready to go? Date: Fri, 2 Feb 2001 20:08:41 -0600 Organization: University of Winnipeg MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000A_01C08D53.F02173A0" 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 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C08D53.F02173A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit ----- Original Message ----- From: "Jim Winstead" To: "Matt Sergeant" Cc: ; "Randy Kobes" Sent: Friday, February 02, 2001 3:26 PM Subject: Re: Ready to go? > On Thu, Feb 01, 2001 at 09:03:04AM +0000, Matt Sergeant wrote: > > Is the libapreq release ready to go now mod_perl 1.25 is out? > > i put an updated snapshot of libapreq from cvs at > http://www.apache.org/~jimw/httpd-apreq-20010202.tar.gz. if i could > get a few people to double-check that it compiles for them with 1.25 > (particularly under win32), i'll go ahead and put out 0.32. > > jim Hi, On Win32 the attached patch is needed to get rid of some warnings and fatal errors concerning certain symbols ... There's also a problem with an unresolved external symbol _PerlIO_importFILE with ActivePerl 6xx, but not with another Win32 perl I have that was compiled without fork emulation. The difference seems to be the presence of PERL_IMPLICIT_SYS - if I put into Request/Request.xs the line #undef PERL_IMPLICIT_SYS then it compiles fine on ActivePerl. Workarounds might be to put something like the following at the top of Request/Request.xs: #ifdef WIN32 #ifdef PERL_IMPLICIT_SYS #undef PERL_IMPLICIT_SYS #endif #endif However, I'm not sure if this is the right way, or even if it's only a problem with Win32 .... Another way might be to define PerlIO_importFILE, if it's not defined, as is done in Request/Request.xs at line 97 for when PerlIO is not defined. Finally, since when I last looked at it, an additional symbol from the mod_perl lib is required. For this, one must add, in the mod_perl sources, the line hvrv2table at the end of src/modules/win32/mod_perl.def to get this included in the mod_perl lib. With these changes, the request and cookie tests of mod_perl pass (mod_perl-1.25 and apache_1.3.17, on ActivePerl 620). best regards, randy ------=_NextPart_000_000A_01C08D53.F02173A0 Content-Type: application/octet-stream; name="ap.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ap.patch" --- Request/Request.xs.orig Mon Jan 29 12:16:46 2001 +++ Request/Request.xs Fri Feb 02 19:42:22 2001 @@ -1,6 +1,72 @@ #include "apache_request.h" + +#ifdef WIN32 + +#ifdef uid_t +#define apache_uid_t uid_t +#undef uid_t +#endif +#define uid_t apache_uid_t + +#ifdef gid_t +#define apache_gid_t gid_t +#undef gid_t +#endif +#define gid_t apache_gid_t + +#ifdef stat +#define apache_stat stat +#undef stat +#endif + +#ifdef lstat +#define apache_lstat lstat +#undef lstat +#endif + +#ifdef sleep +#define apache_sleep sleep +#undef sleep +#endif + +#endif /* WIN32 */ + #undef __attribute__ #include "mod_perl.h" + +#ifdef WIN32 + +#undef uid_t +#ifdef apache_uid_t +#define uid_t apache_uid_t +#undef apache_uid_t +#endif + +#undef gid_t +#ifdef apache_gid_t +#define gid_t apache_gid_t +#undef apache_gid_t +#endif + +#ifdef apache_lstat +#undef lstat +#define lstat apache_lstat +#undef apache_lstat +#endif + +#ifdef apache_stat +#undef stat +#define stat apache_stat +#undef apache_stat +#endif + +#ifdef apache_sleep +#undef sleep +#define sleep apache_sleep +#undef apache_sleep +#endif + +#endif /* WIN32 */ typedef ApacheRequest * Apache__Request; typedef ApacheUpload * Apache__Upload; --- Cookie/Cookie.xs.orig Sat Jan 06 21:25:04 2001 +++ Cookie/Cookie.xs Fri Feb 02 19:27:20 2001 @@ -1,6 +1,72 @@ #include "apache_cookie.h" + +#ifdef WIN32 + +#ifdef uid_t +#define apache_uid_t uid_t +#undef uid_t +#endif +#define uid_t apache_uid_t + +#ifdef gid_t +#define apache_gid_t gid_t +#undef gid_t +#endif +#define gid_t apache_gid_t + +#ifdef stat +#define apache_stat stat +#undef stat +#endif + +#ifdef lstat +#define apache_lstat lstat +#undef lstat +#endif + +#ifdef sleep +#define apache_sleep sleep +#undef sleep +#endif + +#endif /* WIN32 */ + #undef __attribute__ #include "mod_perl.h" + +#ifdef WIN32 + +#undef uid_t +#ifdef apache_uid_t +#define uid_t apache_uid_t +#undef apache_uid_t +#endif + +#undef gid_t +#ifdef apache_gid_t +#define gid_t apache_gid_t +#undef apache_gid_t +#endif + +#ifdef apache_lstat +#undef lstat +#define lstat apache_lstat +#undef apache_lstat +#endif + +#ifdef apache_stat +#undef stat +#define stat apache_stat +#undef apache_stat +#endif + +#ifdef apache_sleep +#undef sleep +#define sleep apache_sleep +#undef apache_sleep +#endif + +#endif /* WIN32 */ typedef ApacheCookie * Apache__Cookie; End of Patch. ------=_NextPart_000_000A_01C08D53.F02173A0--