Bug 25530 - perchild does not compile on Solaris8
Summary: perchild does not compile on Solaris8
Status: CLOSED DUPLICATE of bug 27926
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mpm_perchild (show other bugs)
Version: 2.0.48
Hardware: Sun Solaris
: P3 blocker (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2003-12-15 11:41 UTC by Piotr Klaban
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Klaban 2003-12-15 11:41:47 UTC
MPM perchild does not compile on Solaris8 with gcc. The similar problem
was fixed in php in old ages:
http://www.phpbuilder.com/lists/php-developer-list/2001011/1299.php

Then after applying the below patch, mpm perchild compiled properly:

--- perchild.c.orig     Fri Sep  5 21:00:52 2003
+++ perchild.c  Mon Dec 15 12:22:50 2003
@@ -56,6 +56,13 @@
  * University of Illinois, Urbana-Champaign.
  */
 
+#ifdef SOLARIS2
+#if (SOLARIS2 == 8)
+#define _XPG4_2
+#define __EXTENSIONS__
+#endif
+#endif
+
 #include "apr_hash.h"
 #include "apr_strings.h"
 #include "apr_pools.h"
Comment 1 Jeff Trawick 2003-12-20 16:08:05 UTC
Thanks for pointing out the problem.  It can't be committed as-is, because of a
need to avoid putting those sorts of definitions in the source files.

Probably the best place is in the config*.m4 file for perchild.  We'd want to
see if we can compile a tiny program using the key msghdr fields
(msg_controllen?).  If it fails, then try again defining _XPG4_2 and
__EXTENSIONS__ and if it works, add those to CPPFLAGS.  If it still fails, then
fail at configure time since we know that perchild can't be built.
Comment 2 Paul Querna 2004-08-30 10:13:13 UTC

*** This bug has been marked as a duplicate of 27926 ***