Re: Problem configuring Postgres under Cygwin - Mailing list pgsql-cygwin

From Jason Tishler
Subject Re: Problem configuring Postgres under Cygwin
Date
Msg-id 20021031175054.GA476@tishler.net
Whole thread Raw
In response to Re: Problem configuring Postgres under Cygwin  (<kob@norkart.no>)
Responses Re: Problem configuring Postgres under Cygwin  (Jason Tishler <jason@tishler.net>)
List pgsql-cygwin
On Thu, Oct 31, 2002 at 06:10:12PM +0100, kob@norkart.no wrote:
> Thanks for helping:

No problem -- actually, you are helping me.

> ls -l /usr/local/lib/libcygipc.a output:
>
> -rw-r--r--    1 kob      None        26912 Nov 27  2001 /usr/local/lib/libcygipc.a

Good, your cygipc installation is fine.

> This seems like the Cygwin installer has given wrong permissions on
> all the files...

The above is a separate and unrelated issue.

> gcc -v -o conftest conftest.c -lcygipc output:
>
> Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/3.2/specs
> [snip]
>  /usr/lib/gcc-lib/i686-pc-cygwin/3.2/collect2.exe -Bdynamic
> --dll-search-prefix=
> cyg -o conftest.exe /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../crt0.o
> /usr/lib
> /gcc-lib/i686-pc-cygwin/3.2/crtbegin.o
> -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2 -L/
> usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../..
> /cygdrive/c/DOCUME~1/KOB~1.SAN/LOCAL
> S~1/Temp/ccotfJYK.o -lcygipc -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32
> -lshe
> ll32 -lgcc /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o
> /usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld:
> cannot fi
> nd -lcygipc
> collect2: ld returned 1 exit status

The above implies that Cygwin gcc 3.x is not automatically searching for
libraries in /usr/local/lib.  BTW, I just tried under Linux gcc 3.x and
it does not search /usr/local/lib either.

You can try the following workaround:

    $ ln -s /usr/local/lib/libcygipc.a /usr/lib

while I try to figure out the best long-term solution.

Any help is greatly appreciated.

Thanks,
Jason

pgsql-cygwin by date:

Previous
From:
Date:
Subject: Re: Problem configuring Postgres under Cygwin
Next
From: "Norman Vine"
Date:
Subject: Re: Problem configuring Postgres under Cygwin