cortesi Thu May 23 09:12:05 2002 EDT
Modified files:
/phpdoc/en/faq build.xml
Log:
adding CDATAs
Index: phpdoc/en/faq/build.xml
diff -u phpdoc/en/faq/build.xml:1.16 phpdoc/en/faq/build.xml:1.17
--- phpdoc/en/faq/build.xml:1.16 Wed Apr 17 13:42:18 2002
+++ phpdoc/en/faq/build.xml Thu May 23 09:11:57 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.16 $ -->
+<!-- $Revision: 1.17 $ -->
<chapter id="faq.build">
<title>Build Problems</title>
<titleabbrev>Build Problems</titleabbrev>
@@ -63,11 +63,15 @@
in non-standard locations by specifying additional flags to pass to
the C preprocessor and linker, such as:
<programlisting>
+<![CDATA[
CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure
+]]>
</programlisting>
If you're using a csh-variant for your login shell (why?), it would be:
<programlisting>
+<![CDATA[
env CPPFLAGS=-I/path/to/include LDFLAGS=-L/path/to/library ./configure
+]]>
</programlisting>
</para>
</answer>
@@ -303,26 +307,34 @@
or <filename>/usr/sbin/apxs</filename>.
Open it and check for lines similar to these:
<programlisting>
-my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
-my $CFG_LD_SHLIB = ' '; # substituted via Makefile.tmpl
-my $CFG_LDFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
+<![CDATA[
+my $CFG_CFLAGS_SHLIB = ' '; # substituted via Makefile.tmpl
+my $CFG_LD_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. They may
contain just spaces or other incorrect values, such as 'q()'. Change
these lines to say:
<programlisting>
+<![CDATA[
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_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 Red Hat 6.1
and 6.2. The apxs script Red Hat ships is broken. Look for this line:
<programlisting>
+<![CDATA[
my $CFG_LIBEXECDIR = 'modules'; # substituted via APACI install
+]]>
</programlisting>
If you see the above line, change it to this:
<programlisting>
+<![CDATA[
my $CFG_LIBEXECDIR = '/usr/lib/apache'; # substituted via APACI install
+]]>
</programlisting>
Last, if you reconfigure/reinstall Apache, add a <command>make clean</command>
to the process after <command>./configure</command> and before
<command>make</command>.
@@ -341,19 +353,21 @@
During the <command>make</command> portion of installation, if you encounter
problems
that look similar to this:
<programlisting>
- microtime.c: In function `php_if_getrusage':
- microtime.c:94: storage size of `usg' isn't known
- microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function)
- microtime.c:97: (Each undeclared identifier is reported only once
- microtime.c:97: for each function it appears in.)
- microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this function)
- make[3]: *** [microtime.lo] Error 1
- make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard'
- make[2]: *** [all-recursive] Error 1
- make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard'
- make[1]: *** [all-recursive] Error 1
- make[1]: Leaving directory `/home/master/php-4.0.1/ext'
- make: *** [all-recursive] Error 1
+<![CDATA[
+microtime.c: In function `php_if_getrusage':
+microtime.c:94: storage size of `usg' isn't known
+microtime.c:97: `RUSAGE_SELF' undeclared (first use in this function)
+microtime.c:97: (Each undeclared identifier is reported only once
+microtime.c:97: for each function it appears in.)
+microtime.c:103: `RUSAGE_CHILDREN' undeclared (first use in this function)
+make[3]: *** [microtime.lo] Error 1
+make[3]: Leaving directory `/home/master/php-4.0.1/ext/standard'
+make[2]: *** [all-recursive] Error 1
+make[2]: Leaving directory `/home/master/php-4.0.1/ext/standard'
+make[1]: *** [all-recursive] Error 1
+make[1]: Leaving directory `/home/master/php-4.0.1/ext'
+make: *** [all-recursive] Error 1
+]]>
</programlisting>
</para>
<para>
@@ -362,10 +376,12 @@
absolutely nothing to do with PHP. To prove this to yourself, try this
simple test:
<programlisting>
- $ cat >test.c <<X
- #include <sys/resource.h>
- X
- $ gcc -E test.c >/dev/null
+<![CDATA[
+$ cat >test.c <<X
+#include <sys/resource.h>
+X
+$ gcc -E test.c >/dev/null
+]]>
</programlisting>
If that spews out errors, you know your include files are messed up.
</para>
@@ -384,7 +400,9 @@
Either you look at config.nice file, in the source tree of your current PHP
installation or, if this is not available, you simply run a
<programlisting>
+<![CDATA[
<?php phpinfo(); ?>
+]]>
</programlisting>
script. On top of the output the <command>./configure</command> line, that was
used
to build this PHP installation is shown.