Re: PHP 4.3.1 on Mac OS X - make fails when configured with --with-pgsql

From: Date: Tue, 08 Apr 2003 01:45:14 +0000
Subject: Re: PHP 4.3.1 on Mac OS X - make fails when configured with --with-pgsql
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10529@lists.php.net to get a copy of this message
Ray, After some delay, I was able to try your suggestion. I tried things a couple more times just to see if the problem was still there, and then ran the command you suggested: sudo ranlib /usr/local/pgsql/lib/libpq.a After doing that and attempting to recompile, I received a new type of error, which seems a little more alarming than the last one. Here is what I saw after compiling for just a short while: ld: Undefined symbols: _SSLv23_client_method _TLSv1_client_method _SSLv23_method _ERR_error_string_n _ERR_get_error _ERR_peek_error _SSL_CTX_free _SSL_CTX_new _SSL_connect _SSL_copy_session_id _SSL_free _SSL_get_error _SSL_new _SSL_pending _SSL_read _SSL_set_fd _SSL_shutdown _SSL_write _BIO_free _BIO_new_mem_buf _DH_check _DH_generate_parameters _DH_size _ERR_reason_error_string _EVP_PKEY_free _PEM_read_DHparams _PEM_read_PrivateKey _PEM_read_X509 _PEM_read_bio_DHparams _SSL_CTX_ctrl _SSL_CTX_load_verify_locations _SSL_CTX_set_tmp_dh_callback _SSL_CTX_set_verify _SSL_CTX_set_verify_depth _SSL_get_ex_data _SSL_get_peer_certificate _SSL_library_init _SSL_load_error_strings _SSL_set_ex_data _TLSv1_method _X509_NAME_get_text_by_NID _X509_NAME_oneline _X509_check_private_key _X509_free _X509_get_subject_name make: *** [libs/libphp4.bundle] Error 1 This doesn't look good. Anyone have suggestions? Regards, On Friday, Apr 4, 2003, at 11:11 US/Eastern, Barry C. Hawkins wrote:
Ray, Thanks so much for the tip! I have to wait until tonight to try it, but I can't wait! I keep all my source on a FireWire drive at home b/c this PowerBook is short on drive space. Regards, On Friday, April 4, 2003, at 11:01 AM, Ray Aspeitia wrote:
Barry, I'm running the same system and what I found was that you need to run the following command to update your compiler link table: sudo ranlib /usr/local/pgsql/lib/libpq.a try that command and recompile php. (ran under sudo because ranlib needs to be run by root) Ray A.
Hello all, In an effort to stay off the superhighway of the general list, I have searched through the other lists and found this one. Searching the archives showed that some other people had the error I am having back in 1998 - 2001. Lucky me, bringing back the oldies. Anyway, I am running Mac OS 10.2.4 with PostgreSQL 7.3.2, Apache 1.3.27, and PHP 4.3.1. I went back and reconfigured the 4.3.1 source using the following: [powerbookg4:/Volumes/FR-HD75/php-4.3.1] barryh% ./configure --with-apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-xml --with-zlib-dir=/usr/local Configure completes without error (and probably some buried warning), and upon running make I get the following: [powerbookg4:/Volumes/FR-HD75/php-4.3.1] barryh% make . . (vertical ellipsis to show success until...) . 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: *** [libs/libphp4.bundle] Error 1 The old postings refer to running "ldconfig" and "ldconfig -v" and regrettably I have no idea what that is. I can tell you it's not a command in the 4.3.1 source directory 8^). I even reconfigured, compiled, and reinstalled PostgreSQL 7.3.2 to see if that would bring "libpq.a up to date" - no dice. To assure everyone, yes, /usr/local/pgsql is my valid install directory for PostgreSQL. Thanks in advance for any insight. Awaiting enlightenment, -- Barry C. Hawkins Systems Consultant All Things Computed 404-795-9147 voice/fax barry.hawkins@allthingscomputed.com
-- Barry C. Hawkins Systems Consultant All Things Computed 404-795-9147 voice/fax barry.hawkins@allthingscomputed.com


« previous php.install (#10529) next »