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 98EA652B83 for ; Tue, 28 Jun 2005 04:59:50 -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 54319-10 for ; Tue, 28 Jun 2005 07:59:41 +0000 (GMT) Received: from charlie.ekt.com (ns.elkomtech.com.pl [62.233.147.142]) by svr1.postgresql.org (Postfix) with ESMTP id CFE4152B7A for ; Tue, 28 Jun 2005 04:59:39 -0300 (ADT) Received: from [192.168.1.55] (eljot.ekt.com [192.168.1.55]) by charlie.ekt.com (8.12.11/8.12.11) with ESMTP id j5S8jvW0005753 for ; Tue, 28 Jun 2005 10:45:58 +0200 Message-ID: <42C10512.60100@elkomtech.com.pl> Date: Tue, 28 Jun 2005 10:06:42 +0200 From: eljot User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: unresolved externals when linking app with libpq 8.03 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200506/65 X-Sequence-Number: 5633 Hi everybody, I have got some problems with linking my postgres application on Linux Environment: Fedora core 4, PostgreSQL 8.0.3 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. I believe it's due to new version of libpq library (which has been announced with pgsql ver. 8.0.2). But I can't realize which additional libraries I should put to linker to get success. There are examples of unresoved symbols when using -lpq option to linker: lib/sql/postgresql/ver803/lib/linux/libpq.a(fe-misc.o)(.text+0x68a): In function 'pqSocketCheck': /usr/src/build/565044-i386/BUILD/postgresql-8.0.3/src/interfaces/libpq/fe-misc.c :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' (66 unresolved symbols in total) when I added -lkrb5 (kerberos library as I guess) to linker some unresolved symbols vanishes whereas the others appeared, for example lib/sql/postgresql/ver803/lib/linux/libkrb5.a(init_ctx.o)(.text+0x221): In function `get_profile_etype_list':: undefined reference to `krb5_string_to_enctype' (114 unresolved externals in total) adding -lkrb5support to linking doesn't help So, my question is which libraries I shoud add to the linker command line and in which sequence to get my app linked successfully. I couldn't find any examples in Web till now. Thanks in advance. -- Regards Jarek Lubczynski There are 10 kinds of people: Those who understand binary and those who don't