php-install Digest 25 Jan 2002 19:51:16 -0000 Issue 668
Topics (messages 5746 through 5754):
gd problem
5746 by: Kae Verens
5748 by: Thomas Kirnbauer
5750 by: Kae Verens
5751 by: Rasmus Lerdorf
Re: error installing php-4.1.1 --with-gd
5747 by: Thomas Kirnbauer
PHP 4.1.1 and Apache 2.0.38 beta
5749 by: Michael Kjorling
XSLT/Sablotron problems
5752 by: Mattias Nordstrom
Re: FreeBSD 4.4 / PHP 4.1.1 / PG 7.x --- /usr/libexec/elf/ld: cannot find -lpq
5753 by: Eric Jones \(Contractor\)
--with-java option not producing shared library
5754 by: Sukhwinder Singh
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 ---
I've been tackling this problem for a few days now (it's essential to a
project I'm working on).
I'm trying to install PHP4.1.1 with gd support. I have the latest gd
installed (2.0.1 - same problem with 1.8.4), and always come across the same
problems
After configuring, a "make >/dev/null" returns these error messages:
========================================
gd.c: In function `zif_imagecreatefromgif':
gd.c:1203: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:1203: (Each undeclared identifier is reported only once
gd.c:1203: for each function it appears in.)
gd.c: In function `zif_imagegif':
gd.c:1432: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
========================================
But - gd doesn't have any .gif functions, so why are these included in the
PHP distro?
I've been thinking of simply deleting the references from the source, but
don't know if that will break anything - any ideas?
Kae
--- End Message ---
--- Begin Message ---
I had the same problem with php-4.1.1 and gd-1.8.4
I finally succeded by installing all the libs again: zlib-1.1.3,
libpng-1.2.1, libjpeg-v6b, freetype-2.0.6,
libgd-1.8.4 and finally php-4.1.1.
There where no more gif-errormessages any more (speak: configure realised,
ther is no gif-support)
Now it works fine.
Good luck
"Kae Verens" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've been tackling this problem for a few days now (it's essential to a
> project I'm working on).
>
> I'm trying to install PHP4.1.1 with gd support. I have the latest gd
> installed (2.0.1 - same problem with 1.8.4), and always come across the
same
> problems
>
> After configuring, a "make >/dev/null" returns these error messages:
> ========================================
> gd.c: In function `zif_imagecreatefromgif':
> gd.c:1203: `gdImageCreateFromGif' undeclared (first use in this function)
> gd.c:1203: (Each undeclared identifier is reported only once
> gd.c:1203: for each function it appears in.)
> gd.c: In function `zif_imagegif':
> gd.c:1432: `gdImageGif' undeclared (first use in this function)
> make[3]: *** [gd.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> ========================================
>
> But - gd doesn't have any .gif functions, so why are these included in the
> PHP distro?
>
> I've been thinking of simply deleting the references from the source, but
> don't know if that will break anything - any ideas?
>
> Kae
>
>
--- End Message ---
--- Begin Message ---
Thomas Kirnbauer <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I had the same problem with php-4.1.1 and gd-1.8.4
>
> I finally succeded by installing all the libs again: zlib-1.1.3,
> libpng-1.2.1, libjpeg-v6b, freetype-2.0.6,
> libgd-1.8.4 and finally php-4.1.1.
> There where no more gif-errormessages any more (speak: configure realised,
> ther is no gif-support)
> Now it works fine.
I tried your solutions - reinstalled all the libraries, and now am getting a
pile of errors from gd.
On my own end, before I'd read your post, I tried taking out all references
to .gifs, which worked, except I started getting errors about .pngs then...
I think I'll just install RedHat 7.2 (I'm running 6.1 atm) and try from
scratch again.
Kae
--- End Message ---
--- Begin Message ---
This happens when you have an old version of GD installed on your system.
The header files from this old version are picked up by PHP and it thinks
your library has GIF support. Do a "locate gd.h" and see how many of
those show up on your server. Then get rid of the old gd install, rm
config.cache and try again.
-Rasmus
On Fri, 25 Jan 2002, Kae Verens wrote:
> I've been tackling this problem for a few days now (it's essential to a
> project I'm working on).
>
> I'm trying to install PHP4.1.1 with gd support. I have the latest gd
> installed (2.0.1 - same problem with 1.8.4), and always come across the same
> problems
>
> After configuring, a "make >/dev/null" returns these error messages:
> ========================================
> gd.c: In function `zif_imagecreatefromgif':
> gd.c:1203: `gdImageCreateFromGif' undeclared (first use in this function)
> gd.c:1203: (Each undeclared identifier is reported only once
> gd.c:1203: for each function it appears in.)
> gd.c: In function `zif_imagegif':
> gd.c:1432: `gdImageGif' undeclared (first use in this function)
> make[3]: *** [gd.lo] Error 1
> make[2]: *** [all-recursive] Error 1
> make[1]: *** [all-recursive] Error 1
> make: *** [all-recursive] Error 1
> ========================================
>
> But - gd doesn't have any .gif functions, so why are these included in the
> PHP distro?
>
> I've been thinking of simply deleting the references from the source, but
> don't know if that will break anything - any ideas?
>
> Kae
>
>
>
> --
> 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]
>
--- End Message ---
--- Begin Message ---
Finally I got it:
I installed zlib-1.1.3, libpng-1.2.1, libjpeg-v6b, freetype-2.0.6,
libgd-1.8.4 and finally php-4.1.1 and now it works.
So the already installed versions of those libs seemed to be the problem.
Thanks anyway !!
"Thomas Kirnbauer" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> Hi there!
>
> I tried to install php-4.1.1 on my linux system with apache server.
> "Configure" worked without error (configure-options see below), but during
> "make install" there was the error described below.
> The previous installation of php-4.0.4pl1 (configured with the same
> configure-options) worked fine.
> None of the other components (gd, zlib, jpeg, libpng) were changed since
> installation of php-4.0.4pl1!
>
> Can anybody help me? Do you have any hints?
>
> Thank you very much!!
>
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everyone,
I have a problem that is pretty urgent. I have recently upgraded from
Apache 1.3.22 to 2.0.38 beta (primarily because of its IPv6 support),
but I cannot get PHP to work. An example of what it looks like is
available here: http://forum.prairiedog.info/
I tried downloading and compiling PHP 4.1.1 (php-4.1.1.tar.gz) on my
Linux box but it failed with a message saying 'NOT_FOUND' was not
declared:
> /bin/sh /d1/home/michael/software/php/php-4.1.1/libtool --silent --mode=compile gcc
>-I. -I/d1/home/michael/software/php/php-4.1.1/sapi/apache
>-I/d1/home/michael/software/php/php-4.1.1/main
>-I/d1/home/michael/software/php/php-4.1.1 -I/usr/local/apache2/include
>-I/d1/home/michael/software/php/php-4.1.1/Zend
>-I/d1/home/michael/software/php/php-4.1.1/ext/mysql/libmysql
>-I/d1/home/michael/software/php/php-4.1.1/ext/xml/expat
>-I/d1/home/michael/software/php/php-4.1.1/TSRM -g -O2 -prefer-pic -c sapi_apache.c
> sapi_apache.c: In function `apache_php_module_main':
> sapi_apache.c:81: `NOT_FOUND' undeclared (first use in this function)
> sapi_apache.c:81: (Each undeclared identifier is reported only once
> sapi_apache.c:81: for each function it appears in.)
> make[3]: *** [sapi_apache.lo] Error 1
> make[3]: Leaving directory `/d1/home/michael/software/php/php-4.1.1/sapi/apache'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/d1/home/michael/software/php/php-4.1.1/sapi/apache'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/d1/home/michael/software/php/php-4.1.1/sapi'
> make: *** [all-recursive] Error 1
I then tried to use the libphp4.* files that I built for PHP 4.0.6 in
Apache 1.3.22, without success. It appears that the correct MIME type
was not returned. (And yes I did add ``AddType application/x-httpd-php
.php'' to my httpd.conf and restart.)
Could anyone please point me in the right direction? I did search the
archives but didn't find any relevant posts.
Thank you very much in advance,
Michael Kjörling
- --
Michael Kjörling -- Programmer/Network administrator ^..^
Internet: [EMAIL PROTECTED] -- FidoNet: 2:204/254.4 \/
PGP: 95f1 074d 336d f8f0 f297 6a5b 2aa3 7bfd 8a70 e33e
``And indeed people sometimes speak of man's "bestial" cruelty, but
this is very unfair and insulting to the beasts: a beast can never be
so cruel as a man, so ingeniously, so artistically cruel.''
(Ivan Karamazov, in Dostoyevsky's 'The Brothers Karamazov')
*** Thinking about sending me spam? Take a close look at
*** http://michael.kjorling.com/spam/ before doing so.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Public key is at http://michael.kjorling.com/contact/pgp.html
iD8DBQE8UWSgKqN7/Ypw4z4RAkBvAJwNfEkBHPJtYDdFh1/iu38nbYMExwCeKO49
diQPotOPeTK3HMxaciZnMwY=
=pFxe
-----END PGP SIGNATURE-----
--- End Message ---
--- Begin Message ---
Hi,
I just compiled PHP with Sablotron, and everything worked great.
However, when I run Apache, I get the following error:
Cannot load /etc/httpd/modules/libphp4.so into server:
/usr/lib/libsablot.so.0: undefined symbol: JS_PropertyStub
I have installed Sablotron from the RPM provided at their page, and I've
also installed Mozilla's JS engine. The SabTest package says everything
is ok.
Can anyone shed some light on this?
--
Mattias Nordström
[EMAIL PROTECTED]
-www.ftlight.net-
--- End Message ---
--- Begin Message ---
Actually I recompiled PG onto my box and it fixed everything.
now I'm having a problem with Apache not booting up.
Cannot load /usr/local/libexec/apache/libphp4.so into server:
/usr/local/libexec/apache/libphp4.so: Undefined symbol "X509_free"
Eric Jones (Contractor)
Pager: 520-459-9515
Temp Phone: 520-533-6628
Temp E-mail: [EMAIL PROTECTED]
********************** NOTICE **********************
This e-mail account is being hosted on a
server that is NOT on the FT. Huachuca network.
This server is not an approved DOD device and
is in no way, shape or form associated with the
DOD.
This e-mail account is not secure and is only in
place as a temporary POC.
********************** NOTICE **********************
----- Original Message -----
From: "Yasuo Ohgaki" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Eric Jones (Contractor)"
<[EMAIL PROTECTED]>
Sent: Thursday, January 24, 2002 6:37 PM
Subject: [PHP-INST] Re: FreeBSD 4.4 / PHP 4.1.1 / PG 7.x ---
/usr/libexec/elf/ld: cannot find -lpq
> Where is the stanadard location for libpq.so/libpq-fe.h under FreeBSD?
> I'll add the location if you tell me :)
>
> What are the output from these command?
> uname -a
> find / -name "libpq.so"
> find / -name "libpq-fe.h"
>
> Eric Jones ) wrote:
> > Hello!
> > I'm having a problem when i do a make on my system.
> >
> *SNIP*
>
> > /usr/libexec/elf/ld: cannot find -lpq
> >
> > -------- end ---------
> >
> > I see that the file /usr/libexec/elf/ld is on my system.
> >
> > i'm not sure what to do so any help would be great!
>
> --
> Yasuo Ohgaki
> Please CC me when you reply to news/list messages.
> Do not reply only to me :)
>
>
> --
> 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]
>
>
--- End Message ---
--- Begin Message ---
Hello,
I tried to compiler php 4.1.1 on Red Hat Linux 7.1 as Apache module and found that
configure script doesn't really work same everytime. When I used option --with-qtdom
(As some others have found). Configure failed with message:
checking whether the C++ compiler (c++ -Wl,-rpath,/usr/local/lib -L/usr/local/lib
-Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local -L/usr/local
-Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib -Wl,-rpath,/lib -L/lib
-Wl,-rpath,/usr/java/j2sdk1.4.0/jre/lib/i386/hotspot
-L/usr/java/j2sdk1.4.0/jre/lib/i386/hotspot
-Wl,-rpath,/usr/java/j2sdk1.4.0/jre/lib/i386/server
-L/usr/java/j2sdk1.4.0/jre/lib/i386/server
-Wl,-rpath,/usr/java/j2sdk1.4.0/jre/lib/i386/native_threads
-L/usr/java/j2sdk1.4.0/jre/lib/i386/native_threads
-Wl,-rpath,/usr/java/j2sdk1.4.0/jre/lib/i386 -L/usr/java/j2sdk1.4.0/jre/lib/i386
-Wl,-rpath,/usr/src/libmcal -L/usr/src/libmcal -Wl,-rpath,/usr/lib/mysql
-L/usr/lib/mysql -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib
-Wl,-rpath,/usr/local/mnogosearch/lib -L/usr/local/mnogosearch/lib
-Wl,-rpath,/usr/lib/pgsql -L/usr/lib/pgsql -Wl,-rpath,/usr/lib/qt-2.3.0/lib
-L/usr/lib/qt-2.3.0/lib) works... no
configure: error: installation or configuration problem: C++ compiler cannot create
executables.
Then I removed --with-qtdom option and configuration went without any problem. There
was no permission problem as I was logged in as root. Qt was installed.
Same kind of problem occurred when using --with-mcrypt. I downloaded and compiled
libmcrypt-2.4.19.tar.gz and mcrypt-2.5.10.tar.gz in /usr/local/lib and ran ldconfig.
But configure failed with error message "Sorry" nothing else.
Frustrated I shut down computer. Next day I again tried to compile and this time
configure found c++ compiler to be working and no problem with libmcrypt. I did
nothing with computer as I am the only user using this system. Everything was
successful.
As I am only testing options I tried to compile php using option --enable-mailparse
and --enable-php-streams. Php configure, build and install were successful but when I
compiled Apache it resulted in so many undefined references to php_stream* functions.
So I had to remove these options.
Now Main problem I am facing is with -with-java option. Build and install were
successful with this option but no libphp_java.so is created. Only libphp_java.a is
created. So I am unable to access java code.
I am using is jdk1.4 beta 1. (in /usr/java/j2sdk1.4.0).
Earlier I had to use only these options in php.ini to enable java support with
php4.0.6.
///////////////////////////////////////////////////
java.home=/usr/java/j2sdk1.4.0
extension_dir=/wwwroot/php/lib/php/20010901
java.class.path=/wwwroot/php/lib/php/php_java.jar
extension=libphp_java.so // This file is missing
///////////////////////////////////////////////////
I think it should be clearly written in configure (or manual) etc. which version of a
library is required to enable its support in php. (as was case with libxml and
ncurses, ming and many others). Version changes required were just minor e.g from
libxml2-2.4.1 to libxml2-2.4.13. I don't know if configure script was not able to find
these libraries and because of that saying that other version is required (Even when I
explicitly provided paths and ran ldconfig). As I have wasted so much time to make it
work. I some library support is deprecated then too it should be mentioned as I
downloaded manual and it didn't mention that icap support is deprecated. Only after
searching php net I found it. Also --with-Java option did not create libphp_java.so
but .a. I wonder if configure has been changed to create (static lib).a file as php
4.0.6 created .so file.
Could anyone please whey libphp_java.so file isn't build and what I have to write in
php.ini to enable java support.
--- End Message ---