Thread: PHP make failure -- why?

PHP make failure -- why?

From
"Gary Hoffman"
Date:
To PHP-PG fans,

I've successfully compiled and installed Apache 1.3.19, PHP 4.0.4 and
PostGreSQL 7.1 onto my new Mac OS X (10.0.1) iMac. Each works in
stand-alone mode. Now I'm recompiling Apache to work with PHP and PHP to
work with Postgres, but I'm getting a failure during the make phase of
PHP, using gmake 3.79.

Here are the options I used to configure the PHP 4.0.4pl1 installer:

./configure --with-pgsql --without-mysql --with-xml
--with-apxs=/usr/sbin/apxs --disable-pear
--libexecdir=/Library/Apache/Modules

And here is the message I get part way through the make.

~/php-4.0.4pl1/.libs/libphp4.lax/libtsrm.al
/usr/bin/ld: table of contents for archive: /usr/local/pgsql/lib/libpq.a
is out
of date; rerun ranlib(1) (can't load from it)
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/Users/ghoffman/php-4.0.4pl1'
make: *** [all-recursive] Error 1

Can I buy a clue as to where to begin to debug this problem?

Thanks,
Gary


**************************************************************************
* Gary B. Hoffman, Computing Services Manager  e-mail: ghoffman@ucsd.edu *
* Graduate School of International Relations and Pacific Studies (IR/PS) *
* University of California, San Diego (UCSD)       voice: (858) 534-1989 *
* 9500 Gilman Dr. MC 0519                            fax: (858) 534-3939 *
* La Jolla, CA 92093-0519 USA             web: http://www-irps.ucsd.edu/ *
**************************************************************************




Re(2): PHP make failure -- why?

From
"Gary Hoffman"
Date:
Well, I tried this suggestion, but it didn't alter the result, and I get
exactly the same error message when the make fails. I wonder if Apple's
libtool is out of whack.

Thanks,
Gary


jlarson@harrison.org writes:
>PostgreSQL 7.1 support:
>$ cd <php-src-dir>/ext/pgsql/
>$ sed "s/postgres.h/postgres_fe.h/" php_pgsql.h > php_pgsql.h.tmp
>$ mv php_pgsql.h.tmp php_pgsql.h
>
>
>GH> To PHP-PG fans,
>
>GH> I've successfully compiled and installed Apache 1.3.19, PHP 4.0.4 and
>GH> PostGreSQL 7.1 onto my new Mac OS X (10.0.1) iMac. Each works in
>GH> stand-alone mode. Now I'm recompiling Apache to work with PHP and PHP
>to
>GH> work with Postgres, but I'm getting a failure during the make phase of
>GH> PHP, using gmake 3.79.
>
>GH> Here are the options I used to configure the PHP 4.0.4pl1 installer:
>
>GH> ./configure --with-pgsql --without-mysql --with-xml
>GH> --with-apxs=/usr/sbin/apxs --disable-pear
>GH> --libexecdir=/Library/Apache/Modules
>
>GH> And here is the message I get part way through the make.
>
>GH> ~/php-4.0.4pl1/.libs/libphp4.lax/libtsrm.al
>GH> /usr/bin/ld: table of contents for archive:
>/usr/local/pgsql/lib/libpq.a
>GH> is out
>GH> of date; rerun ranlib(1) (can't load from it)
>GH> make[1]: *** [libphp4.la] Error 1
>GH> make[1]: Leaving directory `/Users/ghoffman/php-4.0.4pl1'
>GH> make: *** [all-recursive] Error 1
>
>GH> Can I buy a clue as to where to begin to debug this problem?
>
>GH> Thanks,
>GH> Gary



**************************************************************************
* Gary B. Hoffman, Computing Services Manager  e-mail: ghoffman@ucsd.edu *
* Graduate School of International Relations and Pacific Studies (IR/PS) *
* University of California, San Diego (UCSD)       voice: (858) 534-1989 *
* 9500 Gilman Dr. MC 0519                            fax: (858) 534-3939 *
* La Jolla, CA 92093-0519 USA             web: http://www-irps.ucsd.edu/ *
**************************************************************************