[Psycopg] Compile on Mac OS X?

Michele Comitini mcm@initd.net
Thu, 2 Aug 2001 22:37:22 +0200


--3xoW37o/FfUZJwQG
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello Zachery,

the problem is not in libcrypt.

On Thu, Aug 02, 2001 at 04:24:28PM -0400, zbir@urbanape.com wrote:
[...]
>=20
>=20
> configure:570: checking for python
> configure:617: checking python version
> configure:649: checking python installation prefix
> configure:678: checking python installation exec_prefix
> configure:697: checking definitions in Python library makefile
> configure:827: checking location of python library
> configure:848: checking location of python shared modules
> configure:1079: checking location of python DateTime module
> configure:1086: checking for main in -lcrypt
> configure:1101: cc -o conftest   -L/usr/local/pgsql/lib/  conftest.c -lcr=
ypt  -lpthread  1>&5
> /usr/bin/ld: can't locate file for: -lcrypt
> configure: failed program was:
> #line 1094 "configure"
> #include "confdefs.h"
>=20
> int main() {
> main()
> ; return 0; }
> configure:1130: checking for PQconnectStart in -lpq
> configure:1149: cc -o conftest   -L/usr/local/pgsql/lib/  conftest.c -lpq=
  -lpthread  1>&5
> /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)
                                                  ^
                                                  |
The problem is here ------------------------------+
It could indicate some more serious error!

Try runlib on the library (AFTER backing up):

# runlib /usr/local/pgsql/lib/libpq.a

And try ./configure again.

> configure: failed program was:
> #line 1138 "configure"
> #include "confdefs.h"
> /* Override any gcc2 internal prototype to avoid an error.  */
> /* We use char because int might match the return type of a gcc2
>     builtin and then its argument prototype would still apply.  */
> char PQconnectStart();
>=20
> int main() {
> PQconnectStart()
> ; return 0; }
>=20
[...]

Regards,
michele

--3xoW37o/FfUZJwQG
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7aboCHygWwn5gTsIRAoPwAJ93UCSfcTxSobsVVs4Hmr766QQYNwCdHa/R
W8sMYpoHQ7l9X2pPuM9ONg4=
=ZXEg
-----END PGP SIGNATURE-----

--3xoW37o/FfUZJwQG--