x222943
07-26-2002, 12:43 AM
m running redhat 7.2, and apache 2.0.35 with mod_ssl and open_ssl
when i configure, compile and install apache, everything works fine...
when i configure php, using,
./configure --with-mysql --with-apxs2=/www/bin/apxs
it configures fine... when i go to 'make' it, i get,
stub.lo: file not recognized: file truncated
collect2: 1d returned 1 exit status
make[1]: *** [libphp4.la] error 1
make[1]: leaving directory '/junk/php-4.2.2'
make: *** [all-recursive error 1
and then it stops... anyone have any idea whats causing this and how i can sucessfully get it installed?
Shyne
07-26-2002, 05:01 PM
http://www.phpbuilder.com/forum/read.php3?num=3&id=106175&thread=100773
Search for the error "stub.lo: file not recognized: file truncated" on google.com and you'll get a ton of help.
x222943
07-26-2002, 06:56 PM
thanks, that helped alot, and fixed the error, but now i get another, and im about to kick it... ill do a search on google for it, but if any of you could help me with it, that would be great... now i get
php_functions.c:93:27: missing binarty operator before '!'
make[3]: ***[php_functions.lo] error 1
make[3]: leaving directory '/junk/php-4.2.2/sapi/apache2filter'
make[2]: *** [all-recursive] error 1
make[2]: leaving directory '/junk/php-4.2.2/sapi/apache2filter'
make[1]: *** [all-recursive] error 1
make[2]: leaving directory '/junk/php-4.2.2/sapi/apache2filter''
make: *** [all-recursive] error 1
thanks for any help.
Shyne
07-26-2002, 07:11 PM
http://www.phpbuilder.com/forum/read.php3?num=3&id=111448&thread=111446
http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=php_functions.c+missing+binary
Try to compile the latest version of PHP and Apache.
If you wanna make your life easier. Get PHP and Apache 1.3.26 because Apache2 gives problems.
Also try to compile it as a static module.
CyberScript
07-26-2002, 07:28 PM
Open up "sapi/apache2filter/php_functions.c" in an editor and change where it says "MODULE_MAGIC_AT_LEAST(20020506,0)" to
"AP_MODULE_MAGIC_AT_LEAST(20020506,0)"
then run make and make install
x222943
07-26-2002, 10:02 PM
all of you, thanks alot, that fixed it, now i only have one more problem... when i start up, well, try to start up apache, i get...
syntax error on line 232 of www/conf/httpd.conf
cannot loadwww/modules/libphp4.so into server: /www/modules/libphp4.so
undefined symbol: ts_resource ex
thanks for all the help so far, setting up a server on redhat is alot different than on winbloze...
clocker1996
07-27-2002, 06:54 AM
screw php and apache2
use apche 4.2.2 and apache 1.3.26
i had problems trying to compile php with apache2
x222943
07-27-2002, 02:41 PM
i wanted apache2, but oh well, im back to 1.3.26 where i started... but now, when i try to compile php into apache, on make i get
make[5]: *** no rule to make target 'all'. stop.
thanks for the help so far.
did you " ./configure" first. Also are you in the phpinstall directory that was created when you unzipped / untarred the download?
-neil
x222943
07-27-2002, 04:13 PM
yes to both...
thanks for replying