You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Wouter de Jong <ma...@maddog2k.nl> on 2002/02/18 12:04:13 UTC

build/9855: perchild.lo build breaks with MPM perchild

>Number:         9855
>Category:       build
>Synopsis:       perchild.lo build breaks with MPM perchild
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Feb 18 03:10:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     maddog2k@maddog2k.nl
>Release:        2.0.32 beta
>Organization:
apache
>Environment:
Linux segfault.office.source-community.nl 2.4.17 #1 Fri Dec 21 20:18:34 CET 2001 i686 unknown

RedHat 6.2, all useful updates, gcc 2.95.3
>Description:
make[3]: Leaving directory `/opt/apache/httpd-2.0.32/os/unix'
make[2]: Leaving directory `/opt/apache/httpd-2.0.32/os/unix'
make[1]: Leaving directory `/opt/apache/httpd-2.0.32/os'
Making all in server
make[1]: Entering directory `/opt/apache/httpd-2.0.32/server'
Making all in mpm
make[2]: Entering directory `/opt/apache/httpd-2.0.32/server/mpm'
Making all in perchild
make[3]: Entering directory `/opt/apache/httpd-2.0.32/server/mpm/perchild'
make[4]: Entering directory `/opt/apache/httpd-2.0.32/server/mpm/perchild'
/bin/sh /opt/apache/httpd-2.0.32/srclib/apr/libtool --silent --mode=compile gcc  -g -O2 -pthread -DNO_DBM_REWRITEMAP    -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -DAP_HAVE_DESIGNATED_INITIALIZER   -I. -I/opt/apache/httpd-2.0.32/os/unix -I/opt/apache/httpd-2.0.32/server/mpm/perchild -I/opt/apache/httpd-2.0.32/modules/http -I/opt/apache/httpd-2.0.32/modules/proxy -I/opt/apache/httpd-2.0.32/include -I/opt/apache/httpd-2.0.32/srclib/apr/include -I/opt/apache/httpd-2.0.32/srclib/apr-util/include -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -I/opt/apache/httpd-2.0.32/modules/dav/main -I/opt/apache/httpd-2.0.32/srclib/apr-util/include -I/usr/local/include -prefer-non-pic -static -c perchild.c && touch perchild.lo
perchild.c: In function `perchild_open_logs':
perchild.c:1436: `num_listensocks' undeclared (first use in this function)
perchild.c:1436: (Each undeclared identifier is reported only once
perchild.c:1436: for each function it appears in.)
perchild.c:1444: `pod' undeclared (first use in this function)
make[4]: *** [perchild.lo] Error 1
make[4]: Leaving directory `/opt/apache/httpd-2.0.32/server/mpm/perchild'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/apache/httpd-2.0.32/server/mpm/perchild'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/apache/httpd-2.0.32/server/mpm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/apache/httpd-2.0.32/server'
make: *** [all-recursive] Error 1
>How-To-Repeat:
Build with  --with-mpm=perchild
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Re: build/9855: perchild.lo build breaks with MPM perchild

Posted by Wouter de Jong <ma...@maddog2k.nl>.
On Mon, Feb 18, 2002 at 11:10:01AM -0000, submit@bugz.apache.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `build/9855'.
> The individual assigned to look at your
> report is: apache. 
> 
> >Category:       build
> >Responsible:    apache
> >Synopsis:       perchild.lo build breaks with MPM perchild
> >Arrival-Date:   Mon Feb 18 03:10:00 PST 2002

I got it to compile with the following modifications:

server/mpm/perchild/perchild.c:                                                                    
        below 'static int requests_this_child;'                                                    

        static int num_listensocks = 0;                                                            



        below 'int ap_threads_per_child;'

        static ap_pod_t *pod;

server/mpm/perchild/mpm.h:
        above '#define MPM_SYNC_CHILD_TABLE()'

        #define AP_MPM_USES_POD 1


-- 
MadDog2K
http://www.maddog2k.nl
"the great puppy dog"