php-install Digest 16 Dec 2002 17:06:25 -0000 Issue 1164

Topics (messages 9402 through 9405):

Re: Can't change values in php.ini
        9402 by: Seraphim

php+gdlib 2.0.7 with gif support
        9403 by: cj

Warning: This library needs some functionality provided by -lresolv
        9404 by: JP

Re: Installing php on AIX (4.3.3)
        9405 by: Kirt Thomas

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Mad99 wrote:
> I have updated my apache webserverto 1.3.27 and php 4.2.23 and now
> any changes to php.ini are ignored;-( What am I doing wrong?

Check the path to the config file php uses. You can do this by executing
phpinfo() in a php file.

-Peter


--- End Message ---
--- Begin Message ---
G'day All
I am trying to compile php with gdlib+gif support,
I am using gd 2.0.7 which as already been patched to add back in the gif
stuff.
When I run
./configure --with-jpeg-dir=/usr/local/src/jpeg-6b --with-png-dir=/usr/local
/src/libpng-1.2.4 --with-zli
b --with-gd=/usr/local/src/gd-2.0.7gif --with-apache=../apache_1.3.26 --with
-pgsql=/usr/local/pgsql --wi
th-mysql=/usr/local/mysql --with-iodbc-dir=/usr/local/src/odbcsdk --enable-d
ebug=no --enable-track-vars
--enable-cli

It runs through fine, no errors

but when I run make I get the following message.

gcc -I. -I/usr/local/src/php-4.2.2/ext/gd -I/usr/local/src/php-4.2.2/main -I
/usr/local/src/php-4.2.2 -I/usr/local/src/apache_1.3.26/src/include -I/usr/l
ocal/src/apache_1.3.26/src/os/unix -I/usr/local/src/php-4.2.2/Zend -I/usr/lo
cal/src/gd-2.0.7gif/ -I/usr/local/mysql/include -I/usr/local/pgsql/include -
I/usr/local/src/php-4.2.2/ext/xml/expat  -I/usr/local/src/php-4.2.2/TSRM -g 
-O2  -c gd.c && touch gd.lo
In file included from gd.c:83:
gd_ctx.c: In function `_php_image_output_ctx':
gd_ctx.c:70: structure has no member named `free'
gd_ctx.c:98: structure has no member named `free'
gd.c: In function `_php_image_type':
gd.c:1014: structure has no member named `free'
gd.c:1017: structure has no member named `free'
gd.c: In function `_php_image_create_from':
gd.c:1208: structure has no member named `free'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.2.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.2.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.2.2/ext'
make: *** [all-recursive] Error 1

I have tried php 4.2.2 and 4.2.3 I have also tried with clean copies of the
source code, so there isn't any thing left over from from previous attemps.

any help would be much apreciated.


Thanks
CJ

--- End Message ---
--- Begin Message ---
I get this warning when I run make :

*** Warning: This library needs some functionality provided by -lresolv.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This library needs some functionality provided by -lresolv.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

What can I do to solve this?





--- End Message ---
--- Begin Message --- I tried this and end with the same results, is it the shtool that creates the libphp4.so in the libs directory? It seems like it's not getting created there, and so can't be copied ?

At 04:33 PM 12/13/2002 -0700, Jim Thome wrote:
It appears like the extension for shared libraries on AIX is .a (depends on your version of AIX; the new linker in AIX release 4.2.1 is .so).

To hack the apxs...

On line 116 of the apxs script in Apache 1.3.26:

Change: my $dso_ext = "so";
To: my $dso_ext = "a";

On line 381:
Change: $d =~ s|\.so$||;
To: $d =~ s|\.a$||;

If you are using a different version of Apache, search for ".so" and look for code similar to the above.

--
Jim

>>> Kirt Thomas <[EMAIL PROTECTED]> 12/13/02 03:39PM >>>
As far as I can tell it's .so - what would I change in the apxs script from
so to sl, if it does turn out that it's sl?

At 03:04 PM 12/13/2002 -0700, Jim Thome wrote:
>What suffix does AIX use for shared libaries? .sl or .so? If it's
>something other than .so, you will have to hack your apxs script to change
>it to whatever your system needs. (Just search apxs for .so; it is only
>in two places in newer apxs scripts).
>
>After changing your apxs script, run make distclean, configure, make, make
>install.
>
>--
>Jim
>
> >>> Kirt Thomas <[EMAIL PROTECTED]> 12/13/02 02:57PM >>>
>I'm trying to install php on an AIX server. I use the folling configure
>command:
>
>configure --with-apxs=/usr/local/apache/bin/apxs
>--with-oci8=/u01/app/oracle/product/8.1.6 --prefix=/usr/local/apache
>
>Which works. Then I run a make, and that also completes. But when I run a
>'make install' I end with...
>
>Making install in .
> /u01/AIX_Stuff/php/php-4.2.2/build/shtool mkdir -p
>"/usr/local/apache/libexec" && /usr/local/apache/bin/apxs -S
>LIBEXECDIR="/usr/local/apache/libexec" -i -a -n php4 libs/lo
>cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
>cp: libs/libphp4.so: A file or directory in the path name does not exist.
>apxs:Break: Command failed with rc=1
>make: 1254-004 The error code from the last command is 1.
>Stop.
>make: 1254-004 The error code from the last command is 1.
>Stop.
>
>If I look in the libs directory only the libphp4.a and libphp4.la are there
>- no libphp4.so (which afaik is created here in a normal Linux
>install). If I leave apx out of the configure, everything runs fine (no
>errors) it just doesn't create and copy the libphp4.so into the libexecs/
>directory. I'm flummoxed.
>
>I should add that there is a 4.0.5 version of php up and running on this
>box - but whenever it was done (by a sysadmin long gone) it was done
>specifically excluding mysql, which I need to have (along with the Oracle
>stuff). Any I deas? Thanks.
>
>[EMAIL PROTECTED] http://www.sky.net/~kirtt
>-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-
>PGP Public Key at: http://pgpkeys.mit.edu:11371
>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>--
>PHP Install Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php

-=-=-=-=-=-=-=-=-=-==-=-=-=-=--=-=-=-=-=-
Kirt Thomas [EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-=-=-=-=-=-=-=-=-=-==-=-=-=-=--=-=-=-=-=-
Kirt Thomas           [EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--- End Message ---

Reply via email to