> Hi Paul,
>
> I indeed commented out some things in the rm and tar sections, because so
> far, I am only trying to see of I can get PHP make'd. (I have also already
> Apache-Jserv configured and make'd and make install'ed, which puts things
> in the Apache source tree. If I wipe out the Apache source tree, I have to
> make everything from JServ again every time (I want to get sure it all
> works together), this takes a long time)
>
> Normally, when doing trial installs, I always work from freshly tar'ed
copies
> (in fact from gtar'ed .tar.gz copies) at every trial, but now I wanted to
> save some time.. and I do a make clean in PHP ..
>
> The
> # esql -libs
> responds with:
> /home/informix2000/lib/esql/libsql.a
> /home/informix2000/lib/esql/libos.a
> /home/informix2000/lib/libasf.a
> /home/informix2000/lib/netlib.a
> /home/informix2000/lib/esql/libgen.a
> /home/informix2000/lib/esql/libos.a
> /home/informix2000/lib/esql/libgen.a
> /home/informix2000/lib/libasf.a
> -lnsl
> -lsocket
> -lm
> -laio
>
> I guess this is OK with the
> IFX_LIBS="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
> ?
It's the second definition of IFX_LIBS further down the script where all the
above need to be specifically specified, including paths if you have more
than one version of Informix. This is required for when building Apache. The
first IFX_LIBS above should be ok. I found by setting this the configure
file didn't try to determine them itself which was causing problems.
In your case something like:
IFX_LIBS="/home/informix2000/lib/esql/libsql.a \
/home/informix2000/lib/esql/libos.a \
/home/informix2000/lib/libasf.a \
/home/informix2000/lib/netlib.a \
/home/informix2000/lib/esql/libgen.a \
/home/informix2000/lib/esql/libos.a \
/home/informix2000/lib/esql/libgen.a \
/home/informix2000/lib/libasf.a \
-lnsl -lsocket -lm -laio"
>
> But, I overlooked something! we also have an older version of Informix
> installed in /home/informix and for users, this is still the
> actual in use, untill our Apache web server can talk to the newly
> installed Informix2000 via PHP ..
> When switching to super-user, INFORMIXDIR is still set to /home/informix
> - I forgot about that ! esql -libs reminded me vividly !
>
> Should't have happend, but I thought since INFORMIXDIR was set to the
> 2000 version in the shell script, it would be OK. Seems it is not and
> still needs a INFORMIXDIR=/home/informix2000; export INFORMIXDIR
> in my super-user shell, before starting the shell-script,
>
> Now it gets much farther but still crashes...
>
> ...
>
gcc -I. -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql -I/home/win
s/cosslocal/src/other/php-4.0.4pl1/main -I/home/wins/cosslocal/src/other/php
-4.0.4pl1 -I/home/wins/cosslocal/src/other/apache_1.3.14/src/include -I/home
/wins/cosslocal/src/other/apache_1.3.14/src/os/unix -I/home/wins/cosslocal/s
rc/other/php-4.0.4pl1/Zend -I/home/informix2000/incl/esql -I/home/wins/cossl
ocal/src/other/php-4.0.4pl1/ext/mysql/libmysql -I/home/wins/cosslocal/src/ot
her/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/wins/cosslocal/src/other/php-4
.0.4pl1/ext/xml/expat/xmlparse -I/home/wins/cosslocal/src/other/php-4.0.4pl1
/TSRM -I/usr/local/pgsql/include -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER
=21 -g -O2 -I/home/informix2000/incl/esql -c pgsql.c && touch pgsql.lo
> pgsql.c: In function `php_if_pg_put_line':
> pgsql.c:750: void value not ignored as it ought to be
> gmake[3]: *** [pgsql.lo] Error 1
> gmake[3]: Leaving directory
`/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory
`/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/pgsql'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory
`/home/wins/cosslocal/src/other/php-4.0.4pl1/ext'
> gmake: *** [all-recursive] Error 1
>
> Pieter
I would suggest trying to compile without postgres support for the time
being and add it on later when you know Informix is successful. It looks
like thats whats causing the trouble now.
Let me know how you get on.
Regards,
- Paul -
> _______________
> / Pieter Donche \____________________________________________
> | I.T. Manager e-mail [EMAIL PROTECTED] \
> | Dept. Mathem. & Computer Science tel +32(0)3/820.24.29 |
> | University of Antwerp, room A2.23 fax +32(0)3/820.24.21 |
> | (UIA) Universiteitsplein 1, B 2610 Wilrijk, BELGIUM (EU) |
> |____________________________________________________________|
>
> On Tue, 23 Jan 2001, Paul Gardiner wrote:
>
> > Hi Pieter,
> >
> > Just tested 4.0.4pl1 and compiles ok. Looking at the error it seems like
> > it's a problem relating to your platform of which unfortunately I have
no
> > experience. *bing* Just thought of someone who might have a sun/solaris
> > setup. I could contact them to see if they have compiled php before. I
know
> > it will be a production machine so they may not want to play about, but
I
> > will try.
> >
> > Also, did you check by running esql -libs at the prompt that your
> > libraries matched mine in the second IFX_LIBS= section just before
Apache is
> > configured properly?
> >
> > Regards,
> >
> > - Paul -
> >
> > ----- Original Message -----
> > From: "Pieter.Donche" <[EMAIL PROTECTED]>
> > To: "Paul Gardiner" <[EMAIL PROTECTED]>
> > Sent: Tuesday, January 23, 2001 3:21 PM
> > Subject: Re: Apache/PHP/Informix install script
> >
> >
> > > Hi Paul,
> > >
> > > Thanks for your script ! I adapted it for my needs (paths etc..)
> > >
> > > But I get now an error very soon in the make'ing of PHP :
> > >
> > > ...
> > > MAKE PHP4
> > > Press RETURN to continue, or DEL to Abort.
> > >
> > > Making all in Zend
> > > gmake[1]: Entering directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/Zend'
> > > gmake[1]: Nothing to be done for `all'.
> > > gmake[1]: Leaving directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/Zend'
> > > Making all in main
> > > gmake[1]: Entering directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/main'
> > > gmake[2]: Entering directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/main'
> > > gcc -I. -I/home/wins/cosslocal/src/other/php-4.0.4pl1/main
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/main
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1
> > > -I/home/wins/cosslocal/src/other/apache_1.3.14/src/include
> > > -I/home/wins/cosslocal/src/other/apache_1.3.14/src/os/unix
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/Zend
> > > -I/home/informix2000/incl/esql
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/mysql/libmysql
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/xml/expat/xmltok
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/xml/expat/xmlparse
> > > -I/home/wins/cosslocal/src/other/php-4.0.4pl1/TSRM
> > > -D_POSIX_PTHREAD_SEMANTICS -DXML_BYTE_ORDER=21 -g -O2
> > > -I/home/informix2000/incl/esql -c internal_functions.c && touch
> > internal_functions.lo
> > > In file included from php.h:288,
> > > from internal_functions.c:23:
> > >
/home/wins/cosslocal/src/other/php-4.0.4pl1/TSRM/tsrm_virtual_cwd.h:116:
> > parse error before `*'
> > >
/home/wins/cosslocal/src/other/php-4.0.4pl1/TSRM/tsrm_virtual_cwd.h:116:
> > warning: data definition has no type or storage class
> > > In file included from php.h:297,
> > > from internal_functions.c:23:
> > > php_reentrancy.h:50: parse error before `*'
> > > In file included from
> >
/home/wins/cosslocal/src/other/php-4.0.4pl1/ext/standard/php_standard.h:43,
> > > from internal_functions.c:33:
> > > /home/wins/cosslocal/src/other/php-4.0.4pl1/ext/standard/fsock.h:69:
> > warning: `struct in_addr' declared inside parameter list
> > > /home/wins/cosslocal/src/other/php-4.0.4pl1/ext/standard/fsock.h:69:
> > warning: its scope is only this definition or declaration, which is
probably
> > not what you
> > > want.
> > > gmake[2]: *** [internal_functions.lo] Error 1
> > > gmake[2]: Leaving directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/main'
> > > gmake[1]: *** [all-recursive] Error 1
> > > gmake[1]: Leaving directory
> > `/home/wins/cosslocal/src/other/php-4.0.4pl1/main'
> > > gmake: *** [all-recursive] Error 1
> > >
> > > This seems to be even before he gets to doing something with libtool
..
> > >
> > > Do you have any hints what could be going wrong.
> > > This machine is Sun/Solaris 2.6
> > >
> > > Thanks for any help !
> > >
> > > Pieter
> > >
> > > Below is my updated script
> > > ---------------------------------------------------------------
> > > #!/usr/local/bin/ksh
> > >
> > > SOURCETOPDIR=/home/wins/cosslocal/src/other
> > >
> > > #APACHE_DIR=/php4test
> > > APACHE_DIR=/usr/local/apache_1314
> > >
> > > APACHE_VER=apache_1.3.14
> > > PHP_VER=php-4.0.4pl1
> > > PHP_TAR=php-4.0.4pl1
> > >
> > > cd $SOURCETOPDIR/$APACHE_VER
> > >
> > > INFORMIXDIR=/home/informix2000
> > > # INFORMIXSERVER wordt niet verder gebruikt in dit script ...
> > > INFORMIXSERVER=sales
> > >
> >
LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/incl/esq
> > l
> > >
> > > export INFORMIXDIR INFORMIXSERVER LD_LIBRARY_PATH
> > >
> > > # set IFX_LIBS to library dirs so configure doesn't try to configure
them
> > > IFX_LIBS="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
> > > IFX_INCDIR=$INFORMIXDIR/incl/esql
> > > IFX_LIBDIR="-L$INFORMIXDIR/lib -L$INFORMIXDIR/lib/esql"
> > >
> > > export IFX_LIBS IFX_INCDIR IFX_LIBDIR
> > >
> > >
> > > echo "Static Module PHP4 with Apache, pgsql and Informix\n"
> > > #echo "Ensure httpd is stopped.\n"
> > > echo "Apache Version: $APACHE_VER"
> > > echo "Apache Source: $SOURCETOPDIR/$APACHE_VER"
> > > echo "Apache InstallDir:$APACHE_DIR"
> > > echo "PHP4 Version: $PHP_VER\n"
> > > #echo "PHP4 Tar File: $PHP_TAR\n"
> > >
> > > if [ "$1" != "Y" ]
> > > then
> > > echo "Press RETURN to continue, or DEL to Abort."
> > > read ANS
> > > fi
> > > #
> > > #echo "RM $APACHE_VER"
> > > #rm -r $APACHE_VER
> > > #
> > > #echo "RM $PHP_VER"
> > > #rm -r $PHP_VER
> > > #
> > > #echo "Un-TAR Apache"
> > > #tar xvf $APACHE_VER.tar
> > > #
> > > #echo "Un-TAR PHP4"
> > > #tar xvf $PHP_TAR.tar
> > > #
> > > #echo "CONFIGURE Apache"
> > > #cd $APACHE_VER
> > > #./configure --prefix=$APACHE_DIR
> > >
> > > echo "CONFIGURE PHP4"
> > > if [ "$1" != "Y" ]
> > > then
> > > echo "Press RETURN to continue, or DEL to Abort."
> > > read ANS
> > > fi
> > > cd ../$PHP_VER
> > >
> > > ./configure --with-apache=$SOURCETOPDIR/$APACHE_VER \
> > > --with-pgsql \
> > > --with-informix=$INFORMIXDIR
> > >
> > > echo "MAKE PHP4"
> > > if [ "$1" != "Y" ]
> > > then
> > > echo "Press RETURN to continue, or DEL to Abort."
> > > read ANS
> > > fi
> > > gmake
> > >
> > > exit
> > > echo "MAKE INSTALL PHP4"
> > > if [ $2 != "Y" ]
> > > then
> > > echo "Press RETURN to continue, or DEL to Abort."
> > > read ANS
> > > fi
> > > gmake install
> > >
> > > echo "CONFIGURE Apache"
> > > if [ "$1" != "Y" ]
> > > then
> > > echo "Press RETURN to continue, or DEL to Abort."
> > > read ANS
> > > fi
> > > cd ../$APACHE_VER
> > >
> > > # get these by running esql -libs
> > > IFX_LIBS="-lifsql -lifasf -lifgen -lifos -lifgls -lnsl_s -lcrypt_i \
> > > /usr/lib/libgen.a -lsocket -lnsl -lm -lsuds -ltinfo -lprot -lx \
> > > -ltinfo -lm -lc $INFORMIXDIR/lib/esql/checkapi.o -lifglx"
> > >
> > > # Add any extra libs in here if required
> > > LIBS="$IFX_LIBS"
> > >
> > > export LIBS
> > >
> > > set >/tmp/setapache
> > >
> > > ./configure --prefix=$APACHE_DIR \
> > > --activate-module=src/modules/php4/libphp4.a \
> > > --activate-module=src/modules/jserv/libjserv.a
> > >
> > > echo "MAKE APACHE"
> > > gmake
> > >
> > > echo "Press RETURN to MAKE INSTALL Apache, or DEL to copy httpd
> > manually.\n"
> > >
> > > read ANS
> > >
> > > echo "MAKE INSTALL Apache"
> > > gmake install
> > >
> > > echo "Now copy ./$PHP_VER/php.ini-dist to /usr/local/lib and modify"
> > > echo "as required.\n"
> > > echo "Edit $APACHE_DIR/conf/httpd.conf"
> > > echo "Add line: AddType application/x-httpd-php .php .php4"
> > > ---------------------------------------------------------------
> > >
> > > _______________
> > > / Pieter Donche \____________________________________________
> > > | I.T. Manager e-mail [EMAIL PROTECTED] \
> > > | Dept. Mathem. & Computer Science tel +32(0)3/820.24.29 |
> > > | University of Antwerp, room A2.23 fax +32(0)3/820.24.21 |
> > > | (UIA) Universiteitsplein 1, B 2610 Wilrijk, BELGIUM (EU) |
> > > |____________________________________________________________|
> > >
> > >
> > >
> > >
> >
> >
>
>
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]