X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3F416D1B1DF for ; Fri, 4 Jun 2004 22:10:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24352-02 for ; Sat, 5 Jun 2004 01:10:28 +0000 (GMT) Received: from sccimhc92.asp.att.net (sccimhc92.asp.att.net [63.240.76.166]) by svr1.postgresql.org (Postfix) with ESMTP id 6C350D1B1EC for ; Fri, 4 Jun 2004 22:10:23 -0300 (ADT) Received: from davestock (12-221-82-219.client.insightbb.com[12.221.82.219]) by sccimhc92.asp.att.net (sccimhc92) with SMTP id <20040605011023i920003kaue>; Sat, 5 Jun 2004 01:10:27 +0000 Message-ID: <004801c44a98$53661560$db52dd0c@insightbb.com> From: "David Killian" To: Subject: Problem linking libpq Date: Fri, 4 Jun 2004 19:59:12 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_SORBS X-Spam-Level: X-Archive-Number: 200406/8 X-Sequence-Number: 4936 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