[HACKERS] Linking libpq statically to libssl - Mailing list pgsql-hackers

From Daniele Varrazzo
Subject [HACKERS] Linking libpq statically to libssl
Date
Msg-id CA+mi_8YjGC9DvHqMhYufcOdXEzJcNUoTYA-O_vuEL5u6o0yFUA@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] Linking libpq statically to libssl
Re: [HACKERS] Linking libpq statically to libssl
List pgsql-hackers
Hello,

I have a problem building binary packages for psycopg2. Binary
packages ship with their own copies of libpq and libssl; however if
another python package links to libssl the library will be imported
twice with conflicting symbols, likely resulting in a segfault (see
https://github.com/psycopg/psycopg2/issues/543). This happens e.g. if
a python script both connects to postgres and opens an https resource.

A solution to work around the problem could be to change libssl
symbols names, in the binaries or in the source code
(https://github.com/psycopg/psycopg2-wheels/issues/7). But maybe a
simpler workaround could be just to build libpq linking to libssl
statically. Is this possible?

...and other libs too I guess, because the problem was found on libssl
but conflicts with other libs is possible too, ldap comes to mind...

Any help to solve the problem would be appreciated. Thank you very much.

-- Daniele


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Thomas Kellerer
Date:
Subject: [HACKERS] Re: Burst in WAL size when UUID is used as PK whilefull_page_writes are enabled
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] MERGE SQL Statement for PG11