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

Problem linking libpq

From: "David Killian" <dkillian(at)uiuc(dot)edu>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: Problem linking libpq
Date: 2004-06-05 00:59:12
Message-ID: 004801c44a98$53661560$db52dd0c@insightbb.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
I'm just trying to compile the example libpq program given in the docs and
I'm getting the following:

$  cc -I  /local/include -o test t2.c -L /local/lib -lpq

/local/lib/libpq.a(fe-connect.o)(.text+0x9b9): In function `connectDBStart':
: undefined reference to `SSL_load_error_strings'
/local/lib/libpq.a(fe-connect.o)(.text+0x9be): In function `connectDBStart':
: undefined reference to `SSL_library_init'
/local/lib/libpq.a(fe-connect.o)(.text+0x9c3): In function `connectDBStart':
: undefined reference to `SSLv23_method'
/local/lib/libpq.a(fe-connect.o)(.text+0x9c9): In function `connectDBStart':
: undefined reference to `SSL_CTX_new'
/local/lib/libpq.a(fe-connect.o)(.text+0x9db): In function `connectDBStart':
: undefined reference to `ERR_get_error'
/local/lib/libpq.a(fe-connect.o)(.text+0x9e1): In function `connectDBStart':
: undefined reference to `ERR_reason_error_string'
/local/lib/libpq.a(fe-connect.o)(.text+0x9f7): In function `connectDBStart':
: undefined reference to `SSL_new'
/local/lib/libpq.a(fe-connect.o)(.text+0xa0f): In function `connectDBStart':
: undefined reference to `SSL_set_fd'
/local/lib/libpq.a(fe-connect.o)(.text+0xa21): In function `connectDBStart':
: undefined reference to `SSL_connect'
/local/lib/libpq.a(fe-connect.o)(.text+0xa2d): In function `connectDBStart':
: undefined reference to `ERR_get_error'
/local/lib/libpq.a(fe-connect.o)(.text+0xa33): In function `connectDBStart':
: undefined reference to `ERR_reason_error_string'
/local/lib/libpq.a(fe-connect.o)(.text+0x1369): In function `freePGconn':
: undefined reference to `SSL_free'
/local/lib/libpq.a(fe-connect.o)(.text+0x1a0b): In function
`parseServiceInfo':
: undefined reference to `__ctype_b'
/local/lib/libpq.a(fe-connect.o)(.text+0x1c64): In function
`conninfo_parse':
: undefined reference to `__ctype_b'
/local/lib/libpq.a(fe-connect.o)(.text+0x1cb5): In function
`conninfo_parse':
: undefined reference to `__ctype_b'
/local/lib/libpq.a(fe-connect.o)(.text+0x1cf5): In function
`conninfo_parse':
: undefined reference to `__ctype_b'
/local/lib/libpq.a(fe-connect.o)(.text+0x1d35): In function
`conninfo_parse':
: undefined reference to `__ctype_b'
/local/lib/libpq.a(fe-exec.o)(.text+0x1aac): more undefined references to
`__cty
pe_b' follow
/local/lib/libpq.a(fe-exec.o)(.text+0x1abb): In function `PQfnumber':
: undefined reference to `__ctype_tolower'
/local/lib/libpq.a(fe-misc.o)(.text+0x7ef): In function `pqReadData':
: undefined reference to `SSL_read'
/local/lib/libpq.a(fe-misc.o)(.text+0x8dc): In function `pqReadData':
: undefined reference to `SSL_read'
/local/lib/libpq.a(fe-misc.o)(.text+0xa29): In function `pqFlush':
: undefined reference to `SSL_write'
/local/lib/libpq.a(fe-auth.o)(.text+0x65): In function `pg_krb5_init':
: undefined reference to `krb5_init_context'
/local/lib/libpq.a(fe-auth.o)(.text+0x72): In function `pg_krb5_init':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0xa1): In function `pg_krb5_init':
: undefined reference to `krb5_cc_default'
/local/lib/libpq.a(fe-auth.o)(.text+0xae): In function `pg_krb5_init':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0x106): In function `pg_krb5_init':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0x149): In function `pg_krb5_init':
: undefined reference to `krb5_unparse_name'
/local/lib/libpq.a(fe-auth.o)(.text+0x156): In function `pg_krb5_init':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0x17a): In function `pg_krb5_init':
: undefined reference to `krb5_free_principal'
/local/lib/libpq.a(fe-auth.o)(.text+0x1ac): In function `pg_krb5_init':
: undefined reference to `krb5_free_context'
/local/lib/libpq.a(fe-auth.o)(.text+0x25b): In function `pg_krb5_sendauth':
: undefined reference to `krb5_sname_to_principal'
/local/lib/libpq.a(fe-auth.o)(.text+0x268): In function `pg_krb5_sendauth':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0x2e4): In function `pg_krb5_sendauth':
: undefined reference to `krb5_free_principal'
/local/lib/libpq.a(fe-auth.o)(.text+0x325): In function `pg_krb5_sendauth':
: undefined reference to `krb5_sendauth'
/local/lib/libpq.a(fe-auth.o)(.text+0x362): In function `pg_krb5_sendauth':
: undefined reference to `error_message'
/local/lib/libpq.a(fe-auth.o)(.text+0x38e): In function `pg_krb5_sendauth':
: undefined reference to `krb5_free_error'
/local/lib/libpq.a(fe-auth.o)(.text+0x3a4): In function `pg_krb5_sendauth':
: undefined reference to `krb5_free_principal'
/local/lib/libpq.a(fe-auth.o)(.text+0x413): In function
`pg_password_sendauth':
: undefined reference to `crypt'
collect2: ld returned 1 exit status



Thanks,
Dave


pgsql-interfaces by date

Next:From: Roman BestuzhevDate: 2004-06-06 09:58:09
Subject: Question about ODBC types
Previous:From: Tom LaneDate: 2004-06-04 16:57:37
Subject: Re: C function linkage and testing

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