From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10759 invoked by alias); 6 Oct 2010 15:37:12 -0000 Received: (qmail 10705 invoked by uid 22791); 6 Oct 2010 15:37:11 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_SUB_OBFU_Q0,TW_BP,TW_PQ,TW_QT,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gy0-f171.google.com (HELO mail-gy0-f171.google.com) (209.85.160.171) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Oct 2010 15:37:05 +0000 Received: by gyc15 with SMTP id 15so3983017gyc.2 for ; Wed, 06 Oct 2010 08:37:03 -0700 (PDT) Received: by 10.101.131.32 with SMTP id i32mr10078123ann.115.1286379422245; Wed, 06 Oct 2010 08:37:02 -0700 (PDT) Received: from [10.10.3.220] (nat-cc-inf.campus.utfsm.cl [200.1.20.190]) by mx.google.com with ESMTPS id m12sm140157anm.14.2010.10.06.08.37.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 06 Oct 2010 08:37:01 -0700 (PDT) Message-ID: <4CAC9799.7070901@gmail.com> Date: Wed, 06 Oct 2010 15:37:00 -0000 From: Tomas Staig User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: libpq: problem with shared library References: <1286375134.4cac86de663eb@mail.atlantis.sk> In-Reply-To: <1286375134.4cac86de663eb@mail.atlantis.sk> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-10/txt/msg00139.txt.bz2 Tomá¹ Hajas wrote: > Hello, > > I'm trying to use PostgreSQL C API under Cygwin, but libpq attempts load a very > strange shared library. On run-time it states: > "error while loading shared libraries: ?: cannot open shared object file: No > such file or directory" > and yes, name of the missing shared library is literally a question mark. > > To reproduce the problem, all it takes is just to use the library: > > #include > int main(int argc, char **argv) > { > PQconnectdb("dbname=test"); > return 0; > } > > Compiled with: > gcc -o pqtest pqtest.c /usr/lib/libpq.a > > What could possibly cause this? Thanks in advace. > > Best regards, > Tomas Hajas > > ------------------------------------------------------------------------ > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Hi, for some reason when this error message appears it has some problems showing you which dll it isn't able to find. It happened to me with both this question mark and with available dll files (while another dll was the one really missing). What I did to see which dll was really missing was to execute "strace program". This should pop up a windows message with the real problem. Hope this works for you. Cheers, Tomás. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple