Skip site navigation (1) Skip section navigation (2)

Re: [pgsql-hackers-win32] Static build of libpq fails

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Cc: pgsql-hackers-win32(at)postgresql(dot)org,PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>,PostgreSQL Cygwin mailing list <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: [pgsql-hackers-win32] Static build of libpq fails
Date: 2004-10-13 09:51:36
Message-ID: 200410130951.i9D9pao25458@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-cygwinpgsql-hackers-win32pgsql-patches
I was able to reproduce the failure, and the attached applied patch
fixes the problem.  Seems someone just disable the libpq.a make rule in
Makefile.shlib, probably because it didn't used to work, but it does
now.  I am not sure about Cygwin but our build experience so far is that
if it works on Win32, it works on Cygwin, so I enabled it for both.

---------------------------------------------------------------------------

Dave Page wrote:
>  
> 
> > -----Original Message-----
> > From: Bruce Momjian [mailto:pgman(at)candle(dot)pha(dot)pa(dot)us] 
> > Sent: 12 October 2004 02:08
> > To: Dave Page
> > Cc: pgsql-hackers-win32(at)postgresql(dot)org; PostgreSQL-patches
> > Subject: Re: [pgsql-hackers-win32] Static build of libpq fails
> > 
> > Dave Page wrote:
> > > Hi,
> > > 
> > > I tried building a static libpq with Mingw, which it seems doesn't 
> > > work any more:
> > > 
> > > make[3]: *** No rule to make target `libpq.a', needed by 
> > > `all-static-lib'.  Stop.
> > > make[3]: Leaving directory `/cvs/pgsql/src/interfaces/libpq'
> > > make[2]: *** [all] Error 2
> > > make[2]: Leaving directory `/cvs/pgsql/src/interfaces'
> > > make[1]: *** [all] Error 2
> > > make[1]: Leaving directory `/cvs/pgsql/src'
> > > make: *** [all] Error 2
> > > 
> > > I can work around this easily enough, however it should 
> > obviously get 
> > > fixed at some point.
> > 
> > I got it working easily by doing 'gmake all-static-lib' from 
> > the src/interfaces/libpq directory.  Is it supposed to work 
> > somewhere else?
> 
> $ ./configure --disable-shared; make all
> 
> Will fail (and still does with cvs tip). I normally use that on Linux -
> I assume it should also work on Mingw.
> 
> Regards, Dave
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
> 
>                http://archives.postgresql.org
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-cygwin by date

Next:From: Dave PageDate: 2004-10-13 11:59:42
Subject: Re: [pgsql-hackers-win32] Static build of libpq fails
Previous:From: Leeuw van der, TimDate: 2004-10-13 06:32:22
Subject: Re: [HACKERS] open item: tablespace handing in pg_dump/pg_restore

pgsql-patches by date

Next:From: Bruce MomjianDate: 2004-10-13 10:21:08
Subject: Re: more dirmod CYGWIN
Previous:From: Neil ConwayDate: 2004-10-13 01:28:54
Subject: Re: more code cleanup

pgsql-hackers-win32 by date

Next:From: Bruce MomjianDate: 2004-10-13 10:05:23
Subject: Re: building and linking C user defined functions
Previous:From: Jean-Marc EBERDate: 2004-10-13 08:40:21
Subject: building and linking C user defined functions for the native win32 PG8.0 beta 3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group