Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin

From: Jason Tishler <jason(at)tishler(dot)net>
To: Pgsql-Patches <pgsql-patches(at)postgresql(dot)org>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>
Subject: Re: [CYGWIN] 7.3 Beta 1 Build Error on Cygwin
Date: 2002-09-05 15:19:15
Message-ID: 20020905151915.GB1240@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers 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 Content-Type Size
Makefile.win.diff text/plain 562 bytes
miscadmin.h.diff text/plain 765 bytes

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2002-09-05 15:29:50 Re: 7.3 Beta 1 Build Error on Cygwin
Previous Message Dave Page 2002-09-05 11:54:50 7.3 Beta 1 Build Error on Cygwin

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-09-05 15:21:18 Re: I am done
Previous Message Tom Lane 2002-09-05 15:19:06 Re: beta1 packaged

Browse pgsql-patches by date

  From Date Subject
Next Message Jason Tishler 2002-09-05 15:29:50 Re: 7.3 Beta 1 Build Error on Cygwin
Previous Message Joe Conway 2002-09-05 15:12:19 Re: Please rename split(text,text,int) to splitpart