httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14243] - can't compile apache 2.0.43 on solaris 2.7 ap_max_mem_free prefork.c
Date Tue, 05 Nov 2002 11:23:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14243>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14243

can't compile apache 2.0.43 on solaris 2.7 ap_max_mem_free prefork.c





------- Additional Comments From trawick@apache.org  2002-11-05 11:23 -------
I think you're going to have to do most of the debugging yourself because we 
haven't seen this error ourselves and it likely is some sort of setup problem.

Here is how ap_max_mem_free should get defined:

prefork.c includes mpm_common.h

mpm_common.h includes mpm.h
(verify that mpm.h is picked up from server/mpm/prefork directory)

mpm.h has this line:

#define AP_MPM_WANT_SET_MAX_MEM_FREE

mpm_common.h has this code after the include of mpm.h:

#ifdef AP_MPM_WANT_SET_MAX_MEM_FREE
extern apr_uint32_t ap_max_mem_free;
extern const char *ap_mpm_set_max_mem_free(cmd_parms *cmd, void *dummy,
                                           const char *arg);
#endif

Thus prefork.c should see the declaration of ap_max_mem_free.

I think the only way this can fail is that the wrong mpm.h is getting
picked up.

These should be the only copies of mpm.h in your tree:

$ find . -name mpm.h
./server/mpm/beos/mpm.h
./server/mpm/st/mpm.h
./server/mpm/worker/mpm.h
./server/mpm/prefork/mpm.h
./server/mpm/winnt/mpm.h
./server/mpm/netware/mpm.h
./server/mpm/experimental/leader/mpm.h
./server/mpm/experimental/perchild/mpm.h
./server/mpm/experimental/threadpool/mpm.h
./server/mpm/mpmt_os2/mpm.h

Put "#error prefork mpm.h was included" at the top of server/mpm/prefork/mpm.h, 
try the make again, and see if you see that error message when prefork.c is 
compiled.

If you don't, you're not picking up the right mpm.h and you need to see which 
one you are getting.

Be sure to look in /usr/local/include for some mpm.h.  You may have done an
install to there a long time ago, leaving an old mpm.h which was missing
some later code.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message