Click to See Complete Forum and Search --> : libphp4.la ?? why does php stop here on make?


karzsystems
02-28-2003, 01:06 PM
while running the make with php, it stops at this file and gives me an error.
libphp4.la

any ideas??

Redhat 8.0 with Apache 2.0.44 with Php 4.3.1

shad0w
02-28-2003, 01:07 PM
what does your ./configure look like?

karzsystems
02-28-2003, 01:26 PM
here it is

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

it configures fine... but

Here is the error i get when i try to make php.

ext/ctype/ctype.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

I have tried many different ./configures and it always seems to stop at that error above. I just used this ./configure and it happened again, same error about libphp4.la.

./configure --prefix=/usr/local/apache2 --with-apxs2=/usr/local/apache2/bin/apxs --with-mod_charset --enable-force-cgi-redirect --enable-discard-path --with-config-file-path=/usr/local/apache2/conf --enable-safe-mode --with-openssl --enable-bcmath --enable-calendar --enable-ctype --with-gdbm --enable-dbase --enable-ftp --enable-gd-imgstrttf --with-gmp --with-mysql --with-xml=shared --enable-trans-sid --enable-shmop --enable-sockets --with-regex=php --enable-sysvsem --enable-sysvshm --enable-yp --enable-memory-limit --enable-shared --with-zlib

thanks
jeff

shad0w
02-28-2003, 02:31 PM
I'm going to test an install with your config options. I'll let you know what I come up with...

karzsystems
02-28-2003, 02:43 PM
thank you so much
jeff

shad0w
02-28-2003, 03:30 PM
how did you install mysql?

do this:

echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf

then run:

ldconfig

if your mysql libs are in a different place then point the echo thing to the proper location

shad0w
02-28-2003, 03:40 PM
This is really kicking my butt... But I'm still working on it.

shad0w
02-28-2003, 03:45 PM
Ok I think I know where its coming from now. Check this out:

cp /home/mruiz/new/mysql-3.23.55/libmysql/ctype.lo /home/mruiz/new/php-4.3.1/ext/ctype/ctype.lo

It passes when I do a make now, but if fails on the next mysql dependant file:

lresolv -lm -ldl -lnsl -lcrypt -o libphp4.la
ext/mysql/php_mysql.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1


so its looking for the mysql libs. Why its looking to itself is beyond me. I should loook for it in the shared libs (based on the ld.so.conf). . . I beileve.

karzsystems
02-28-2003, 05:32 PM
well after plenty of unsuccessful ./configures and makes, apache won't even make now. So we are reinstalling redhat for the 4th time now. This is getting old, but we are determined to get RedHat 8.0 to run Apache 2.0 with PHP.

thanks for your help
jeff

shad0w
02-28-2003, 05:55 PM
I'm going to be messing with this over the weekend, so If I come up with anything I"ll let you know

karzsystems
03-01-2003, 05:20 PM
thanks again... i got it working great on windows xp, but redhat 8 is tough to get going with php and apache. I'd really rather run the server on red hat8
jeff

shad0w
03-01-2003, 08:43 PM
The problem seems to be with Redhat 8.0. I installed MySQL 3.23.55, Apache 2.0.44, and PHP 4.3.1 on Redhat 6.2 ( I don't have any version of 7 ) and it works fine.

I've been reading around on newsgroups and people who seem to have problems compiling are Solaris (but I don't know the version, I think its the 2.7 series) and Redhat 8.

I would try using Redhat 7.3 and see if that works for you. But at this point RH8.0 is not going work.

:mad:

I'm beginning to dislike Redhat...

shad0w
03-03-2003, 12:56 PM
Okey-Dokey. I tested this on RH 7.3 and compiling works fine! Redhat ATE (ATE=8) is horrible. Go with 7.3.

karzsystems
03-03-2003, 02:14 PM
hehe, this morning i got Redhat 8.0, Apache 2.0, PHP 4.3.1, and MySql all to work together. It was actually surprising to find out that apache and php work right out of Redhat 8's Box. If you do a clean install of redhat8 as a server and keep the rpms it installs, php will work. It was a blur but i got it running. Thanks for all your help, i really appreciate your willingness to help me out.

jeff

shad0w
03-04-2003, 10:40 PM
And here it is...

Mr. Himanshu Soni wrote that he received this error when using php 4.2.3 and apache 2.0.39 on Linux:

....
sapi_apache2.c: In function `php_register_hook':
sapi_apache2.c:567: incompatible type for argument 3 of
`ap_register_output_filter'
sapi_apache2.c:567: too many arguments to function
`ap_register_output_filter'
sapi_apache2.c:568: incompatible type for argument 3 of
`ap_register_input_filter'
sapi_apache2.c:568: too many arguments to function
`ap_register_input_filter'
make[3]: *** [sapi_apache2.lo] Error 1
....


Some people using PHP 4.2.2 and Apache 2.0.39 also said that they are receiving the same errors. To solve this porblem he changed two lines in function php_register_hook(apr_pool_t *p) in sapi_apache2.c near line 567 (this function may be near line 534 if using php 4.2.2):

from

ap_register_output_filter("PHP", php_output_filter, NULL, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, NULL, AP_FTYPE_RESOURCE);

to

ap_register_output_filter("PHP", php_output_filter, AP_FTYPE_RESOURCE);
ap_register_input_filter("PHP", php_input_filter, AP_FTYPE_RESOURCE);

Here function call was made with four arguments when only three were required. These problems arise when using incompatible versions of PHP and Apache.