Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin - Mailing list pgsql-patches

From Jason Tishler
Subject Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin
Date
Msg-id 20020905151915.GB1240@tishler.net
Whole thread Raw
Responses Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
The following build error under Cygwin was recently reported:

On Thu, Sep 05, 2002 at 12:54:50PM +0100, Dave Page wrote:
> I get the following error when building beta 1 on CYGWIN_NT-5.1 PC9
> 1.3.10(0.51/3/2) 2002-02-25 11:14 i686 unknown:
>
> make[3]: Entering directory `/usr/local/src/postgresql-7.3b1/src/backend/utils/mb/conversion_procs/cyrillic_and_mic'
> gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../../../src/include -I/usr/local/include
-DBUILDING_DLL=1-c -o cyrillic_and_mic.o cyrillic_and_mic.c 
> [snip]
> dllwrap -o cyrillic_and_mic.dll --dllname cyrillic_and_mic.dll --def cyrillic_and_mic.def cyrillic_and_mic.o
../../../../../../src/utils/dllinit.o-lcygipc -lcrypt -L/usr/local/lib -L../../../../../../src/backend -lpostgres 
> Warning: resolving _CurrentMemoryContext by linking to __imp__CurrentMemoryContext (auto-import)
> [snip]
> nmth000000.o(.idata$4+0x0): undefined reference to `_nm__CurrentMemoryContext'

The first patch fixes the above, the second one fixes the following:

make[4]: Entering directory `/home/jt/src/pgsql/src/pl/plpgsql/src'
[snip]
dllwrap -o plpgsql.dll --dllname plpgsql.dll --def plpgsql.def pl_gram.o pl_scan.o pl_handler.o pl_comp.o pl_exec.o
pl_funcs.o../../../../src/utils/dllinit.o -L../../../../src/backend -lpostgres -lcygipc -lcrypt -L/usr/local/lib 
Warning: resolving _InterruptPending by linking to __imp__InterruptPending (auto-import)
Warning: resolving _SortMem by linking to __imp__SortMem (auto-import)
[snip]
nmth000000.o(.idata$4+0x0): undefined reference to `_nm__InterruptPending'
nmth000002.o(.idata$4+0x0): undefined reference to `_nm__SortMem'

After applying these patches, PostgreSQL CVS builds cleanly under Cygwin
again.

Thanks,
Jason

P.S. Dave, thanks for the heads up!

Attachment

pgsql-patches by date:

Previous
From: Dennis Björklund
Date:
Subject: swedish translations for 7.3
Next
From: Bruce Momjian
Date:
Subject: Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin