httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Wiedmann <>
Subject Re: [mod_fcgid] can't find apr headers
Date Wed, 09 Dec 2009 14:02:20 GMT
Jeff Trawick schrieb:
> Check for the following after configure.apxs finishes:
> fcgid-2.3.4/Makefile sets top_builddir to /usr/local
I have:
| top_builddir=/usr/local/share/apache22

But I think that's ok, because "", "" ... are in:

> fcgid-2.3.4/Makefile includes /usr/local/build/ (from your
> httpd install)

I have:
| include /usr/local/share/apache22/build/

> /usr/local/build/ includes $(top_builddir)/build/

I have:
| include  $(top_builddir)/build/

> /usr/local/build/ includes /usr/local/include/apr-1 in
>   (if not, what is EXTRA_INCLUDES set to?)

No, the apr include dir is not part of EXTRA_INCLUDES. The apr inlude dir is
defined in APR_INCLUDEDIR.

BTW: A normal apxs run is using the script defined in APR_CONFIG
(/usr/local/bin/apr-1-config) to get e.g. the apr include dir.

OK, with using apxs I can build and install the module:
# cd modules/fcgid
# apxs -c mod_fcgid.c fcgid_bridge.c fcgid_conf.c fcgid_pm_main.c \
        fcgid_protocol.c fcgid_spawn_ctl.c fcgid_proctbl_unix.c \
        fcgid_pm_unix.c fcgid_proc_unix.c fcgid_bucket.c fcgid_filter.c
# apxs -i -a

And and least I have to set e.g.:
| FcgidIPCDir /var/run/
| FcgidProcessTableFile /var/run/fcgid_shm
Or Apache can't start: No access/exists to the default values of these two
directives. Maybe e.g. TMPDIR should be used as default?

So for me there is only one problem left. php_apc does not work together
with mod_fcgid. And the question, who the guilty party is (mod_fcgid or
apc...). Only the first request for a file is working, a core dump at the
second, and so on.

>> in config.apxs.log I have 2 errors for "conftest_sys_mutex.h.c".  Maybe
>> that's normal and can happen?
> That shouldn't affect a build for httpd 2.2, but what are those errors?

| /usr/local/build-1/libtool --silent --mode=compile cc -I/usr/local/include
 -O2 -pipe -I/usr/include -fno-strict-aliasing
-I/usr/local/include/apache22 -I. -I/var/ports/usr/ports/www/apache22
| In file included from /usr/include/sys/mutex.h:37,
|                  from conftest_sys_mutex_h.c:1:
| /usr/include/sys/_lock.h:36: error: expected specifier-qualifier-list
before 'u_int'
| In file included from /usr/include/sys/mutex.h:38,
|                  from conftest_sys_mutex_h.c:1:
| /usr/include/sys/_mutex.h:39: error: expected ':', ',', ';', '}' or
'__attribute__' before 'mtx_lock'
| *** Error code 1
| Stop in /root/mod_fcgid-2.3.4/build.

Hope that helps.


View raw message