PHP 4.3 on Redhat Linux 8.0 fails to compile 
Author Message
 PHP 4.3 on Redhat Linux 8.0 fails to compile

my configure command:

./configure --with-mysql -with-apache2=/usr/apache/bin/apxs --with-gd --with
-zlib

I run "make install" and it quits with this error:

/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:680: parse error before
"gdMalloc"
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:690: `bo' undeclared (first use
in this function)
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c: At top level:
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:713: parse error before "else"
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: `row_pointers' used prior to
declaration
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: `png_bytep' undeclared here
(not in a function)
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: `height' undeclared here
(not in a function)
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: warning: initialization
makes integer from pointer without a cast
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: initializer element is not
constant
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:718: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:719: parse error before "for"
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:726: warning: parameter names
(without types) in function declaration
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:726: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:727: warning: parameter names
(without types) in function declaration
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:727: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:729: parse error before "for"
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:731: warning: parameter names
(without types) in function declaration
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:731: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:732: parse error before '}' token
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:736: warning: parameter names
(without types) in function declaration
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:736: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:737: parse error before '}' token
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:740: parse error before '&' token
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:740: warning: data definition has
no type or storage class
/home/dang/php-4.3.0/ext/gd/libgd/gd_png.c:394: storage size of `open' isn't
known
make: *** [ext/gd/libgd/gd_png.lo] Error 1

I have built this version from the same source before, but without
"--with-gd --with-zlib".  Now I need the gd functions for my PHP scripts,
and I am desperate to get it working.

Thanks for any help!



Tue, 02 Aug 2005 10:28:48 GMT  
 PHP 4.3 on Redhat Linux 8.0 fails to compile
Quote:
> my configure command:

./configure --with-mysql -with-apache2=/usr/apache/bin/apxs --with-gd --with

Quote:
> -zlib

> I run "make install" and it quits with this error:

Please forgive me about asking, but did you run "make" before "make install"
command?


Tue, 02 Aug 2005 15:56:39 GMT  
 PHP 4.3 on Redhat Linux 8.0 fails to compile


Quote:
> > my configure command:

./configure --with-mysql -with-apache2=/usr/apache/bin/apxs --with-gd --with

Quote:
> > -zlib

> > I run "make install" and it quits with this error:

> Please forgive me about asking, but did you run "make" before "make
install"
> command?

Yes, I did.

Just now, I ran with:
./configure --with-mysql -with-apache2=/usr/apache/bin/apxs --enable-gd

It seemed to work; I got through make and make install, but something
doesn't seem right still.  phpinfo() doesn't show the correct "configure"
line; it shows the first one, not the one with --enable-gd.  Also, make
install got a bunch of lines like, "...already installed".  The latter is,
of course, since I already installed them once before, but none of those
errors said anything about gd already installed.



Tue, 02 Aug 2005 17:23:54 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. installing php 4.3 on Redhat Linux 8.2

2. Oratcl 4.3 Oratcl_Init() failure on RedHat Enterprise Linux

3. Problem compiling php 4.3 with gd

4. install PHP 4.2 and PHP 4.3 on the same host

5. Redhat 8.0 PHP an dconfigure utility

6. Solution - Apache, Redhat 8.0, PHP & MySQL

7. Apache, Redhat 8.0, PHP & MySQL

8. where to find php 4.2.3 for redhat 8.0

9. New PHP 4.2.2 under RedHat 8.0 -- file uploading broken (sort of)

10. PHP 4.2.2 under RedHat 8.0 -- file uploading broken

11. G77 / GCC Redhat 8.0 compile failure

12. Installing Labview on Linux Redhat 8.0

 

 
Powered by phpBB® Forum Software