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

Re: BCC55 and libpq 8.2

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: CN <cnliou9(at)fastmail(dot)fm>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: BCC55 and libpq 8.2
Date: 2007-01-15 22:18:20
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfacespgsql-patches
CN wrote:
> On Fri, 5 Jan 2007 20:57:00 -0500 (EST), Bruce Momjian <bruce(at)momjian(dot)us>  
> wrote:
> > I have created the following patch based on your description of how to
> > get BCC compiled.  Please let me know how it works against a stock
> > PostgreSQL 8.2.X and I can include the patch in 8.2.2.
> I tried the CVS version just now and noticed that
> (1) I have to do "ln -s libpq.rc".

Interesting question.  I looked at the install instructions and there is
no mention of this for MSVC or BCC:

I looked at the win32.mak file, and see no refererence to,
so how is the MSVC working?  Should we add rules for both?

> (2) File blibpqdll.def is missing. I then got one from
> Then it compiles fine and appears to work with _old_ libwine.

Uh, it is supposed to be build by this rule:

	$(srcdir)/blibpqdll.def: exports.txt
	        echo '; DEF file for Borland C++ Builder' > $@
	        echo 'LIBRARY BLIBPQ' >> $@
	        echo 'EXPORTS' >> $@
	        sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/    _\1@ \2/' < $< >> $@
	        echo '' >> $@
	        echo '; Aliases for MS compatible names' >> $@
	        sed -e '/^#/d' -e 's/^\(.* \)\([0-9][0-9]*\)/    \1= _\1/' < $< | sed 's/ *$$//' >> $@

Is there a reason this failed?

> By the way, I have not received any response to BUG #2827. Hopefully  
> someone will help.

Yes, I saw that.  It is not clear whether this is a libpq problem or a
Wine problem.  We are unsure how to debug this.  I wonder whether it is
a problem with getaddrinfo.  We did fix an addrinfo issue in 8.2.1:

     * Improve handling of getaddrinfo() on AIX (Tom)

I wonder if that fixes it.

  Bruce Momjian   bruce(at)momjian(dot)us

  + If your life is a hard drive, Christ can be your backup. +

In response to


pgsql-patches by date

Next:From: Bruce MomjianDate: 2007-01-15 22:28:14
Subject: Re: TODO improvements
Previous:From: Alvaro HerreraDate: 2007-01-15 22:15:09
Subject: Re: [HACKERS] Autovacuum improvements

pgsql-interfaces by date

Next:From: L BayukDate: 2007-01-16 01:31:18
Subject: Re: BCC55 and libpq 8.2
Previous:From: Carlo StonebanksDate: 2007-01-15 15:14:18
Subject: Re: ODBC: how to change search_path in DSN?

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