Re: Problem configuring Postgres under Cygwin

From: Kjell-Olav Bjerknes <kob(at)norkart(dot)no>
To: 'Jason Tishler' <jason(at)tishler(dot)net>
Cc: "pgsql-cygwin(at)postgresql(dot)org" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Problem configuring Postgres under Cygwin
Date: 2002-11-04 07:30:13
Message-ID: 01C283DC.6658E1E0.kob@norkart.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Hi..

This worked great.

I tried first the symlink: ln -s /usr/local/lib/libcygipc.a /usr/lib
it startet to configure, but failed ..

Then when I tried the: LDFLAGS=-L/usr/local/lib configure --enable-multibyte..............
The configuring suceeded..

thanks,

Kjell-Olav

-----Opprinnelig melding-----
Fra: Jason Tishler [SMTP:jason(at)tishler(dot)net]
Sendt: 1. november 2002 18:09
Til: kob(at)norkart(dot)no
Kopi: pgsql-cygwin(at)postgresql(dot)org
Emne: Re: [CYGWIN] Problem configuring Postgres under Cygwin

Kjell-Olav,

On Thu, Oct 31, 2002 at 12:50:55PM -0500, Jason Tishler wrote:
> On Thu, Oct 31, 2002 at 06:10:12PM +0100, kob(at)norkart(dot)no wrote:
> > Thanks for helping:
>
> No problem -- actually, you are helping me.

Would you be willing to try another workaround?

> > 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/../../../../i686-pc-cygwin/bin/ld: cannot find -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

If so then, then delete the above symlink and then configure as follows:

$ LDFLAGS=-L/usr/local/lib configure --enable-multibyte ...
^^^^^^^^^^^^^^^^^^^^^^^^

By reading configure, it seems that defining LDFLAGS as above should
enable PostgreSQL 7.2.3 to configure successfully under gcc 3.x. Does
it?

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

Actually, I checked PostgreSQL CVS and I think that PostgreSQL 7.3 and
later will no longer have this problem.

Thanks,
Jason

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2002-11-04 12:21:32 Re: Problem configuring Postgres under Cygwin
Previous Message tachung_h 2002-11-03 00:53:06 Where Do I download a PostgrSQL for Window 2000?