Re: CLI Sapi automatic build
| From: | Markus Fischer | Date: | Sat, 12 Jan 2002 18:56:10 +0000 |
| Subject: | Re: CLI Sapi automatic build | ||
| References: | 1 2 | Groups: | php.dev php.qa |
| Request: | Send a blank email to php-dev+get-76795@lists.php.net to get a copy of this message | ||
On Sat, Jan 12, 2002 at 03:57:09PM +0100, Edin Kadribasic wrote :
> > Here is the second part of adding cli sapi wich would be built no matter
> > what other sapi was selected. My plan is to commit it later today, unless
> > someone reviews the patch and finds some problems with it.
> >
> > There is one known problem. If you select cgi sapi, make install we
> > overwrite cgi binary with cli binary in $(bindir)/php. One of them would
> > either have to be renamed, or installed in a different dir. They are both
> > compiled correctly: cgi in $srcdir and cli in $srcdir/sapi/cli.
>
> I have just commited those changes. I would appreciate if people tried
> building PHP on their own platform and see if the build still works.
>
> Tested so far:
> RadHat Linux 6.2
> FreeBSD 4.4-STABLE
Trying on debian unstable with latest CVS I get:
./configure --with-apxs=/home/mfischer/apache/1.3.22/bin/apxs
&& make install
/home/mfischer/isrc/cvs/php4/build/shtool mkdir -p "/home/mfischer/apache/1.3.22/libexec"
&& /home/mfischer/apache/1.3.22/bin/apxs -S
LIBEXECDIR="/home/mfischer/apache/1.3.22/libexec" -i -a -n php4 libs/libphp4.so;
/home/mfischer/isrc/cvs/php4/build/shtool install -c -m 0755 sapi/cli/php /usr/local/bin/
[activating module `php4' in /home/mfischer/apache/1.3.22/conf/httpd.conf]
cp libs/libphp4.so /home/mfischer/apache/1.3.22/libexec/libphp4.so
chmod 755 /home/mfischer/apache/1.3.22/libexec/libphp4.so
cp /home/mfischer/apache/1.3.22/conf/httpd.conf /home/mfischer/apache/1.3.22/conf/httpd.conf.bak
cp /home/mfischer/apache/1.3.22/conf/httpd.conf.new /home/mfischer/apache/1.3.22/conf/httpd.conf
rm /home/mfischer/apache/1.3.22/conf/httpd.conf.new
cp: cannot stat `sapi/cli/php': No such file or directory
make[1]: *** [install-sapi] Error 1
make[1]: Leaving directory `/home/mfischer/isrc/cvs/php4'
Looking into sapi/cli reveals the Makefile has been built,
but the compiler didn't ran over it. Doing a manual 'make' in
this dir, going to source basedir and doing 'make install'
works though.
However, and that confused me most, the installed php4 binary
is just a shell-script wrapper which stubs to my source
install dir :
relink_command="cd /home/mfischer/isrc/cvs/php4/sapi/cli; { test -z ....
So after removing my source dir I get:
$ php -v
lt-php: error while loading shared libraries: libphp4cli.so: cannot open shared object file: No such
file or directory
Ok, probably the build process is fucked up anyway because
the sapi/cli did't compile itself in the first.
--
Please always Cc to me when replying to me on the lists.