Re: Help! Problem building PHP 4.3.1 with Apache 1.3.27 on Solaris 2.8
| From: | Bob Boeninger | Date: | Mon, 17 Mar 2003 06:27:58 +0000 |
| Subject: | Re: Help! Problem building PHP 4.3.1 with Apache 1.3.27 on Solaris 2.8 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10348@lists.php.net to get a copy of this message | ||
I think I figured out the problem I was having, wth one of the two options
for building Apache with PHP, the one involving the use of apxs. There seems
to have been a bug in the 'configure' program for PHP (4.3.1), is what I
think at the moment anyway: some of the args passed to the call of 'apxs'
were in the form of 'CFLAGS' rather than '$CFLAGS'.
I wonder though, why no one else seems to have had this problem.
Over and out,
Bob Boeninger
"Bob Boeninger" <robert@boeninger.org> wrote in message
news:20030316012923.16030.qmail@pb1.pair.com...
> Hello,
>
>
>
> Didn't see either of these two problems I'm having building PHP 4.3.1
> with Apache 1.3.27 on Solaris 2.8:
>
>
>
> I've tried two recommended ways of building Apache with PHP:
>
>
>
> ...
> 5. cd apache_xxx
> 6. ./configure --prefix=/www --enable-module=so
> 7. make
> 8. make install
>
> 9. cd ../php-xxx
> 10. ./configure --with-mysql --with-apxs=<correct path>/apxs
> 11. make
> 12. make install
> ------------
>
>
>
> When I get to step 10: ./configure --with-mysql --with-apxs=<correct
> path>/apxs
>
>
>
> I get the error:
>
>
>
> Configuring SAPI modules
>
> checking for AOLserver support... no
>
> checking for Apache 1.x module support via DSO through APXS...
>
> APXS: /opt/apache_March_13_2003/bin/apxs
>
> CFLAGS: -g -O2
>
>
>
> Sorry, I was not able to successfully run APXS. Possible reasons:
>
>
>
> 1. Perl is not installed;
>
> 2. Apache was not compiled with DSO support (--enable-module=so);
>
> 3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
>
>
>
> The output of /opt/apache_March_13_2003/bin/apxs follows
>
> Usage: apxs -g [-S <var>=<val>] -n <modname>
>
> apxs -q [-S <var>=<val>] <query> ...
>
> apxs -c [-S <var>=<val>] [-o <dsofile>] [-D
> <name>[=<value>]]
>
> [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
>
> [-Wl,<flags>] <files> ...
>
> apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
>
> apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
>
> configure: error: Aborting
>
> --------------------
>
>
>
> So, none of these 3 possibilities seem to pertain in my case. And how
should
> it be complaining about the way apxs is being called, since this should be
> included in the configure file correctly, one would think.
>
> ============
>
>
>
> The other recommended way of building everything is:
>
>
>
> cd apache-1.3.27
>
>
>
> ./configure --prefix=/u1/apache_March_11_2003
>
>
>
> That's all for apache for the moment. Now set up PHP:
>
> -------------------
>
> PHP:
>
>
>
> cd php-4.3.1
>
>
>
> ./configure --enable-discard-path \
>
> --prefix=/u1/apache_March_11_2003/php/ \
>
> --with-apache=/u1/apache_March_11_2003/build/apache_1.3.27 \
>
>
>
> gmake
>
>
>
> gmake install
>
>
>
> Then we go back and do another, fancier configure of apache:
>
>
>
> ./configure \
>
> --activate-module=src/modules/php4/libphp4.a \
>
> --enable-module=php4 \
>
> --prefix=/u1/apache_March_11_2003
>
>
>
> make
>
> make install
>
> ----------
>
>
>
> It's during this last 'configure' where I get the following error:
>
> ...
>
> + checking sizeof various data types
>
> + doing sanity check on compiler and options
>
> ** A test compilation with your Makefile configuration
>
> ** failed. The below error output from the compilation
>
> ** test will give you an idea what is failing. Note that
>
> ** Apache requires an ANSI C Compiler, such as gcc.
>
>
>
> ======== Error Output for sanity check ========
>
> cd ..; gcc -DSOLARIS2=280
./apaci -o helpers/dummy
>
lpers/dummy.c -L/usr/ucblib -L/afs/.slac.stanford.edu/package/gcc/sun4x_56
>
/gcc-2.95.3/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3 -L/usr/oracle/lib -Lmodu
> les/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4 -export-symbols
>
pt/apache_March_11_2003/build/php-4.3.1/sapi/apache/php.sym -L/usr/ucbli
>
b -L/afs/.slac.stanford.edu/package/gcc/sun4x_56/gcc-2.95.3/lib/gcc-lib/spar
>
c-sun-solaris2.6/2.95.3 -L/usr/oracle/lib -lcrypt -lresolv -lm -ldl -lnsl
> -lsocket -lgcc -lcrypt -lnsl -lsocket -lgen -ldl -lsched -lclntsh -locijd
bc
>
8 -lnsl -lsocket -lgen -ldl -lsched -lclntsh -lsocket -lnsl -lpthread -lex
> pat -ldl
>
>
>
> ld: fatal: file
> /opt/apache_March_11_2003/build/php-4.3.1/sapi/apache/php.sym: unknown
file
> type
>
>
>
> ld: fatal: File processing errors. No output written to helpers/dummy
>
> collect2: ld returned 1 exit status
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `dummy'
>
> ============= End of Error Report =============
>
>
>
> What's with this silly, innocuous 'php.sym' file? It's a one-line ASCII
> file; nothing to it. Of course I have gcc, which works fine lots of
places.
>
>
>
> By the way, this procedure works fine with PHP 4.2.1 instead of 4.3.1,
> which I'm trying to use here.
>
>
>
> Why can't this just work properly instead causing so much grief?
>
>
>
> Would anyone have any idea on what these two problems might be about?
>
>
>
> Thanks,
>
>
>
> Bob Boeninger
>
> robert@boeninger.org
>
> ~
>
>
>