www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/06/11:37:18

X-Recipient: archive-cygwin AT delorie DOT com
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
Message-ID: <4CAC9799.7070901@gmail.com>
Date: Wed, 06 Oct 2010 11:36:57 -0400
From: Tomas Staig <tomas DOT staig AT gmail DOT com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: libpq: problem with shared library
References: <1286375134 DOT 4cac86de663eb AT mail DOT atlantis DOT sk>
In-Reply-To: <1286375134.4cac86de663eb@mail.atlantis.sk>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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 <libpq-fe.h>
> 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019