Skip site navigation (1) Skip section navigation (2)

bad libpq.a generation on Mac OS X 10.0.3?

From: Joël Brogniart <Joel(dot)Brogniart(at)univ-lyon2(dot)fr>
To: pgsql-ports(at)postgresql(dot)org
Subject: bad libpq.a generation on Mac OS X 10.0.3?
Date: 2001-05-30 08:49:03
Message-ID: p04330106b73a63da0919@[159.84.67.229] (view raw or whole thread)
Thread:
Lists: pgsql-ports
If PostgreSQL failed to compile on your computer or you found a bug that
is likely to be specific to one platform then please fill out this form
and e-mail it to pgsql-ports(at)postgresql(dot)org(dot)

To report any other bug, fill out the form below and e-mail it to
pgsql-bugs(at)postgresql(dot)org(dot)

If you not only found the problem but solved it and generated a patch
then e-mail it to pgsql-patches(at)postgresql(dot)org instead.  Please use the
command "diff -c" to generate the patch.

You may also enter a bug report at http://www.postgresql.org/ instead of
e-mail-ing this form.

============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name		:	Joël Brogniart
Your email address	: Joel(dot)Brogniart(at)univ-lyon2(dot)fr


System Configuration
---------------------
  Architecture (example: Intel Pentium)  	: Apple iMac G3 400Mhz - Apple PowerBook G4 400 Mhz

  Operating System (example: Linux 2.0.26 ELF) 	: Mac OS X 10.0.3

  PostgreSQL version (example: PostgreSQL-7.1.1):   PostgreSQL-7.1.1 - PostgreSQL-7.1.2

  Compiler used (example:  gcc 2.95.2)		: cc 2.95.2


Please enter a FULL description of your problem:
------------------------------------------------
After having compiled, tested and installed PostgreSQL successfully a PHP 4.0.5 configure fails.




Please describe a way to repeat the problem.   Please try to provide a
concise reproducible example, if at all possible: 
----------------------------------------------------------------------
First configure, make, install PostgreSQL (full French description on <http://nte.univ-lyon2.fr/nte/ressources/fiches/mosx-postgresql-install.html>).

user% get ftp://ftp.fr.postgresql.org/pub/v7.1.2/postgresql-7.1.2.tar.gz
user% tar xzf postgresql-7.1.2.tar.gz
user% cd postgresql-7.1.2
user% ./configure --enable-locale --enable-multibyte=UNICODE --enable-unicode-conversion --enable-syslog
user% make
user% sudo make install

Then try to install PHP 4.0.5 with PostgreSQL support.

user% wget http://www.php.net/distributions/php-4.0.5.tar.gz
user% wget http://graphics.stepwise.com/Articles/Workbench/php-4.0.5-genif.sh
user% tar xzf php-4.0.5.tar.gz
user% cp php-4.0.5-genif.sh php-4.0.5/build/genif.sh
user% cd php-4.0.5
user% ./configure --with-xml --with-apxs=/usr/sbin/apxs --with-mysql=/usr/local/mysql --with-pgsql=/usr/local/pgsql --with-zlib=/usr/lib

Configure fails with a bad zlib error.

If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------

I tried different PHP config option and I found that the problem where somewhere from libpq.a, so I used the following command and then configuration, compilation and installation of PHP worked.

user% sudo ranlib /usr/local/pgsql/lib/libpq.a

Best regards.

Joël Brogniart

Responses

pgsql-ports by date

Next:From: Leandro MedinaDate: 2001-05-30 20:19:09
Subject: Re: lock in qnx rtp.
Previous:From: Lamar OwenDate: 2001-05-29 23:02:28
Subject: Re: RedHat 7.0 problems with PostG 7.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group