Re: Problem configuring Postgres under Cygwin

From: Jason Tishler <jason(at)tishler(dot)net>
To: Kjell-Olav Bjerknes <kob(at)norkart(dot)no>
Cc: "'pgsql-cygwin(at)postgresql(dot)org'" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Problem configuring Postgres under Cygwin
Date: 2002-10-31 16:06:30
Message-ID: 20021031160630.GA1588@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Kjell-Olav,

On Thu, Oct 31, 2002 at 04:11:47PM +0100, Kjell-Olav Bjerknes wrote:
> And get this output on screen:
> [snip]
> configure: error: installation or configuration problem: C compiler cannot create executables.
> [snip]
>
> The config.log shows this:
>
> [snip]
> configure:1361: checking whether the C compiler (gcc -O2 ) works
> configure:1377: gcc -o conftest -O2 conftest.c -lcygipc 1>&5
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: cannot find -lcygipc
> collect2: ld returned 1 exit status
> configure: failed program was:

The above implies that either libcygipc.a is not installed (in the
normal place) on your system or that the default library search path has
changed in the gcc 3.x package.

Please perform the following and report back to the list:

$ ls -l /usr/local/lib/libcygipc.a
-rwxrwxrwx 1 Administ Domain U 26912 Nov 26 2001 /usr/local/lib/libcygipc.a

$ echo 'main(){return(0);}' >conftest.c
$ gcc -v -o conftest conftest.c -lcygipc
Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs
gcc version 2.95.3-5 (cygwin special)
[snip]
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe -Bdynamic --dll-search-prefix=cyg -o conftest.exe /usr/lib/crt0.o -L/usr/local/lib -L/usr/lib -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 /mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/cchqAaau.o -lcygipc -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc

Note that I'm still using the gcc 2.95.3-5 package and with this package
"-L/usr/local/lib" is automatically passed during linking. Maybe this
is not the case in the gcc 3.x package?

Jason

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Achilleus Mantzios 2002-10-31 16:07:35 Re: [SQL] Returning a recordset and filling datatable in a .NET
Previous Message Jonas Wouters 2002-10-31 15:33:08 Returning a recordset and filling datatable in a .NET applicatio n