Johann Spies wrote:
> On Wed, Aug 26, 1998 at 01:41:42AM +0200, Martin Schulze wrote:
> > It would be a good idea if you would describe your problem so others are
> > able to help.
> 
> Thanks for your reply.  The background and present state of the
> problem is this:
> 
> I have recompiled pygres 2.1 to use with postgresql 6.3.2-8.  Trying
> to use it results in:
> ---------------------------------
> from pg import *
> ImportError: /usr/lib/python1.5/lib-dynload/pgmodule.so: undefined
> symbol: lo_creat
> ------------------------------------

This looks like the program isn't linked against the correct library.
Since you say that you've compiled them on your own, did you make sure
that no former binaries were there and weren't re-compiled?

> -----------------------------------------
> ldd /usr/lib/python1.5/lib-dynload/pgmodule.so
>       statically linked

Huh?  Since when are dynamic libraries statically linked?  Somehting's
wrong in this place.

> Wayne suggested that I change the line beginning with pgmodule.so to
> 
> pgmodule.so:    pgmodule.o
>         $(GCC) -shared -o pgmodule.so pgmodule.o -lpq
 ^^^^^^^^^
 This *must* be *one* tabulator

> 
> It compiled successfully and the result of ldd was:
> 
> ldd /usr/lib/python1.5/lib-dynload/pgmodule.so
>       libpq.so.1 => /usr/lib/libpq.so.1 (0x4000a000)
>       libc.so.6 => /lib/libc.so.6 (0x40015000)
>       /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00000000)
> 
> When I tried to run it:
> 
>     from pg import *
> ImportError: /usr/lib/libpq.so.1: undefined symbol: crypt

Crypt is either part of libc or libcrypt.

> Thanks for your interest.

Well, only trying to help our users. :-)

Regards,

        Joey

-- 
Whenever you meet yourself you're in a time loop or in front of a mirror.

Reply via email to