philip Sat Jan 26 13:16:56 2002 EDT
Modified files:
/phpdoc/en/faq build.xml
Log:
Modify answer #11 regarding apxs, as per bug #12151. A little WS too.
Index: phpdoc/en/faq/build.xml
diff -u phpdoc/en/faq/build.xml:1.8 phpdoc/en/faq/build.xml:1.9
--- phpdoc/en/faq/build.xml:1.8 Wed Dec 12 15:46:32 2001
+++ phpdoc/en/faq/build.xml Sat Jan 26 13:16:56 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<chapter id="faq.build">
<title>Build Problems</title>
<titleabbrev>Build Problems</titleabbrev>
@@ -299,28 +299,30 @@
There are three things to check here. First, for some reason
when Apache builds the apxs Perl script, it sometimes ends up
getting built without the proper compiler and flags variables.
- Edit your apxs (sometimes found in /usr/local/apache/bin/apxs
- or /usr/sbin/apxs) and check for these lines:
+ Find your apxs script (try the command 'which apxs',
+ it's sometimes found in /usr/local/apache/bin/apxs or /usr/sbin/apxs.
+ Open it and check for lines similar to these:
<programlisting>
-my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
+my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl
-my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
+my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
</programlisting>
- If this is what you see, you have found your problem. Change these lines
- to say:
+ If this is what you see, you have found your problem. They may
+ contain just spaces or other incorrect values, such as 'q()'. Change
+ these lines to say:
<programlisting>
-my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl
-my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
-my $CFG_LDFLAGS_SHLIB = q(-shared);# substituted via Makefile.tmpl
+my $CFG_CFLAGS_SHLIB = '-fpic -DSHARED_MODULE'; # substituted via Makefile.tmpl
+my $CFG_LD_SHLIB = 'gcc'; # substituted via Makefile.tmpl
+my $CFG_LDFLAGS_SHLIB = q(-shared); # substituted via Makefile.tmpl
</programlisting>
The second possible problem should only be an issue on RedHat-6.1/6.2.
The apxs script RedHat ships is broken. Look for this line:
<programlisting>
-my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install
+my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install
</programlisting>
If you see the above line, change it to this:
<programlisting>
-my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install
+my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install
</programlisting>
Last, if you reconfigure/reinstall Apache, add a 'make clean'
to the process after './configure' and before 'make'.