[Fedora-directory-users] mod_nss compile fails
Rob Crittenden
rcritten at redhat.com
Mon Jul 31 18:08:01 UTC 2006
Alan Ferrier wrote:
> Hi guys,
>
> Trying to do a "one-step" build. It's failing during the compile of
> mod_nss-1.0.2 with:
>
> nss_expr_eval.c: In function `nss_expr_eval_comp':
> nss_expr_eval.c:116: error: `ap_regex_t' undeclared (first use in this
> function)
> nss_expr_eval.c:116: error: (Each undeclared identifier is reported only
> once
> nss_expr_eval.c:116: error: for each function it appears in.)
> nss_expr_eval.c:116: error: `regex' undeclared (first use in this function)
> nss_expr_eval.c:121: error: syntax error before ')' token
> nss_expr_eval.c:133: error: syntax error before ')' token
> make[2]: *** [nss_expr_eval.lo] Error 1
> make[2]: Leaving directory
> `/usr/local/src/dsbuild-fds102/ds/mod_nss/work/mod_nss-1.0.2'
> make[1]: *** [build-work/mod_nss-1.0.2/Makefile] Error 2
> make[1]: Leaving directory `/usr/local/src/dsbuild-fds102/ds/mod_nss'
> make: *** [dep-../../ds/mod_nss] Error 2
>
> Any clues would be appreciated.
>
The problem is that in Apache 2.0.54 (and below) there was no way for
the compiler to know the numeric version. Starting with 2.2 they added a
define for AP_SERVER_MAJORVERSION_NUMBER.
So what I did was assume that if that wasn't defined then we were
dealing with Apache 2.0 otherwise 2.2.
In at least 2.0.58 someone added this define in and caused the code to
blow up.
rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20060731/62e13f53/attachment.bin>
More information about the Fedora-directory-users
mailing list