Re: Solaris 8 PHP 4.3.1 Install
| From: | Justin Thomas | Date: | Sun, 25 May 2003 05:31:07 +0000 |
| Subject: | Re: Solaris 8 PHP 4.3.1 Install | ||
| References: | 1 2 3 4 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10957@lists.php.net to get a copy of this message | ||
Nah - That must have been a typo.
I did figure it out last night. For some extraordinarily odd reason, I had
an extra line inserted at the top of a couple of the source files. To be
specific, my .kshrc file outputs a line when I log in to signify that it's
been read - '.kshrc read!'. For some weird reason, that line was at the top
of main/internal_functions.c and main/internal_functions_cli.c. It was
obvious when I opened the files and looked at them.
Those two files seem to be generated during the compile process (they aren't
in the package), and somehow the output from my .kshrc file was getting put
at the top. Perhaps during the configure a subshell was called that
re-sourced the profiles or something? Very odd.
"Allowee" <php@allowee.no-ip.com> wrote in message
news:200305241136.06369.php@allowee.no-ip.com...
> do you compile php with that space? --with-a pxs2=
> or is that just a typo...
>
> ./configure --with-mysql --enable-bcmath --with-gd --enable-sockets
> --with-a pxs2=/usr/local/apache/bin/apxs --with-zlib-dir=/usr/local/lib
>
>
> I've seen apache2 with PHP version 4.3.2RC4
> and only 4.3.1 without --enable-sockets
>
> I would say try a newer version.
> but I'm not sure if it's going to work
>
> .: Allowee
>
> On Saturday 24 May 2003 11:06, Justin Thomas wrote:
> > Hi Allowee,
> >
> > Check out this page:
> > http://www.php.net/manual/en/install.apache2.php
> >
> > Some more information on this error - it appears to be only present
> > when --enable-sockets and --with-apxs2 are used together. Either one
> > separately compiles fine. Unfortunately, I need both.
> >
> > "Allowee" <php@allowee.no-ip.com> wrote in message
> > news:200305241042.33225.php@allowee.no-ip.com...
> >
> > > as far as I've heard here..
> > > php doesn't want to work on apache2 yet.
> > >
> > > or it brings up errors...
> > >
> > > .: Allowee
> > >
> > > On Saturday 24 May 2003 07:09, Justin Thomas wrote:
> > > > I've been fighting through issues one by one on this install and
have
> > > > solved the majority of them, but I've come up against a wall. I'm
> > > > configuring PHP solely to use with Snort, MySQL and Acid for
analysis
> > > > of Intrusion Detection events.
> > > >
> > > > When I compiled as a CGI module, everything worked fine. Acid
requires
> > > > that PHP be installed as an Apache module, so I added
> > > > '--with-apxs2=/usr/local/apache/bin/apxs' to my configure line.
Apache
> >
> > 2
> >
> > > > is installed in /usr/local/apache. Here is my full configure
> > > > statement:
> > > >
> > > > ./configure --with-mysql --enable-bcmath --with-gd --enable-sockets
> > > > --with-a
pxs2=/usr/local/apache/bin/apxs --with-zlib-dir=/usr/local/lib
> > > >
> > > > Now the configure works, but the compilation fails with this error:
> > > >
> > > > /bin/sh libtool --silent --mode=compile
> >
> >
gcc -Imain/ -I/export/home/jdthomas/install/php-4.3.1/main/ -DPHP_ATOM_INC
> >
> > > > -I/export/home/jdthomas/install/php-4.3.1/include
> > > > -I/export/home/jdthomas/in stall/php-4.3.1/main
> > > > -I/export/home/jdthomas/install/php-4.3.1 -I/usr/local/
apache/include
> > > > -I/export/home/jdthomas/install/php-4.3.1/Zend -I/usr/local/i nclude
> > >
-I/export/home/jdthomas/install/php-4.3.1/ext/xml/expat -D_POSIX_PTH
> > > >
READ_SEMANTICS -I/export/home/jdthomas/install/php-4.3.1/TSRM -g -O2
> > > > -pref er-pic -c main/internal_functions.c -o
main/internal_functions.lo
> > > > main/internal_functions.c:1: parse error before `.'
> > > > In file included from /usr/include/stdio.h:22,
> > > > from
> > > > /export/home/jdthomas/install/php-4.3.1/Zend/zend.h:35,
> > > > from main/php.h:34,
> > > > from main/internal_functions.c:24:
> > > > /usr/include/iso/stdio_iso.h:186: parse error before `__va_list'
> > > > /usr/include/iso/stdio_iso.h:187: parse error before `__va_list'
> > > > /usr/include/iso/stdio_iso.h:188: parse error before `__va_list'
> > > > In file included from
> > > > /export/home/jdthomas/install/php-4.3.1/Zend/zend.h:35,
> > > > from main/php.h:34,
> > > > from main/internal_functions.c:24:
> > > > /usr/include/stdio.h:227: parse error before `__va_list'
> > > > In file included from main/php_syslog.h:14,
> > > > from
> >
> >
/export/home/jdthomas/install/php-4.3.1/ext/standard/php_ext_syslog.h:26,
> >
> > > > from
> > > >
/export/home/jdthomas/install/php-4.3.1/ext/standard/php_standard.h:34,
> > > > from main/internal_functions.c:49:
> > > > /usr/include/syslog.h:28: parse error before `__va_list'
> > > > make: *** [main/internal_functions.lo] Error 1
> > > >
> > > > Can someone tell me what I'm doing wrong?
>
>