Re: unresolved externals when linking app with libpq 8.03 - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: unresolved externals when linking app with libpq 8.03
Date
Msg-id 14766.1119967285@sss.pgh.pa.us
Whole thread Raw
In response to unresolved externals when linking app with libpq 8.03  (eljot <eljot@elkomtech.com.pl>)
Responses Re: unresolved externals when linking app with libpq  (eljot <eljot@elkomtech.com.pl>)
List pgsql-interfaces
eljot <eljot@elkomtech.com.pl> writes:
> I was able to link my postgresql apps successfully when I was using 
> PostgreSQL version 8.0.1 or earlier. Now (v. 8.0.3) the linker tells me 
> there is many unresolved externals.

> :974: undefined reference to `SSL_pending'
> undefined reference to `PEM_read_DHparams'
> undefined reference to `DH_size'
> undefined reference to `PEM_read_bio_DHparams'
> undefined reference to `BIO_free'
> undefined reference to `SSL_read'
> undefined reference to `X509_NAME_oneline'
> undefined reference to `CRYPTO_num_locks'
> undefined reference to `krb5_cc_get_principal'
> undefined reference to `error_message'

Apparently you've configured the new Postgres build with SSL and
Kerberos support, which you didn't have in your 8.0.1 build.  The
path of least resistance might be to go back to the old configuration.
Alternatively, look at psql with ldd to find out what libraries it
depends on.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: "Ingo Luebken"
Date:
Subject: ADO.net OleDbConnection only available via Port=5432, no other ports are valid
Next
From: eljot
Date:
Subject: Re: unresolved externals when linking app with libpq