Hello,

I am attempting to take over development and maintenance of a very neglected
website (and with your donation of only 50¢ per day...).  The site contained
code which was originally thought to be some proprietary, modified version
of PHP (which really pissed me off!)... but eventually it was discovered
that this was merely the somewhat out of date and rarely seen _PHP2_ (phew,
I guess...).

So I need to get hosting support for this site up ASAP. I will need support
for both PHP2 and PHP4 (which I will be converting the code to) and both
msql and mysql (again, converting from the former to the latter).  Seeing as
how there are several hundred pages on the site, in various states of decay
and coded by various individuals, batch replacements and regular expressions
will not readily handle the conversion, thus necessitating the PHP2 and
msql.  I have one and only one server available for this site (including for
my conversion development), thus necessitating the PHP4 and mysql.

So I'm trying to compile apache w/ the following command (oh, did I mention
I'm adding SSL too?):

[root@machine apache_1.3.14]# SSL_BASE=../openssl-0.9.6
RSA_BASE=/rsaref-2.0/local ./configure --enable-module=ssl
--activate-module=src/modules/php4/libphp4.a --enable-module=php4
--activate-module=src/modules/extra/libphp.a --enable-module=php
--prefix=/usr/local/apache --enable-shared=ssl

...
configuration output... blah blah blah
...

[root@machine apache_1.3.14]# make

it goes through several directories compiling successfully, including
/modules/php4 and modules/extra (which is where PHP2 is).

Then I get the following error:

gcc -c  -I./os/unix -I./include   -DLINUX=2 -DMOD_SSL=207101
-I/usr/local/source/php-4.0.3pl1 -I/usr/local/source/php-4.0.3pl1/main
-I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/Zend
-I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/TSRM
-I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1
-DEAPI -DUSE_EXPAT -I./lib/expat-lite `./apaci` buildmark.c
gcc  -DLINUX=2 -DMOD_SSL=207101 -I/usr/local/source/php-4.0.3pl1
-I/usr/local/source/php-4.0.3pl1/main -I/usr/local/source/php-4.0.3pl1/main
-I/usr/local/source/php-4.0.3pl1/Zend -I/usr/local/source/php-4.0.3pl1/Zend
-I/usr/local/source/php-4.0.3pl1/TSRM -I/usr/local/source/php-4.0.3pl1/TSRM
-I/usr/local/source/php-4.0.3pl1 -DEAPI -DUSE_EXPAT -I./lib/expat-lite
`./apaci`   -rdynamic \
     -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a modules/extra/libextra.a main/libmain.a
./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a
-Wl,-rpath,/usr/local/Hughes/lib -Wl,-rpath,/usr/local/mysql/lib/mysql
-rdynamic -L/usr/local/Hughes/lib -L/usr/local/mysql/lib/mysql
-Lmodules/php4 -L../modules/php4 -L../../modules/php4 -lmodphp4  -lpam  -
ldl -lmysqlclient -lz -lmsql -lgd -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
-lm -lcrypt -ldl

modules/extra/libextra.a: could not read symbols: Archive has no index; run
ranlib to add one
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/usr/local/source/apache_1.3.14/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/usr/local/source/apache_1.3.14'
make: *** [build] Error 2
[root@machine apache_1.3.14]#


Now, I've searched the archives and found references to the
"modules/extra/libextra.a: could not read symbols: Archive has no index; run
ranlib to add one" error... but no solution.  The one exception was someone
who was screwing up because they were trying to use libextra.a as part of a
PHP3 install, not a PHP2 install.  Duh.  Unfortunately that's not the case
here.

Any assistance would be appreciated, and yes, I have tried the obvious:
ranlib /path/to/modules/extra/libextra.a

FWIW, this is ranlib version "GNU ranlib 2.9.5"

Any assistance appreciated, TIA...

-- 
Doug Taylor
Lead Web Developer
Enabled Sites
331 Soquel Ave, Suite 205
Santa Cruz, CA 95062 

Reply via email to