Re: Win32 testing needed - Mailing list pgsql-hackers-win32

From Andreas Pflug
Subject Re: Win32 testing needed
Date
Msg-id 41135A14.9030605@pse-consulting.de
Whole thread Raw
In response to Re: Win32 testing needed  (Mark Kirkwood <markir@coretech.co.nz>)
Responses Re: Win32 testing needed - 1 Tablespaces  (markir@coretech.co.nz)
List pgsql-hackers-win32
Mark Kirkwood wrote:
>
> ../../src/port/libpgport.a(dirmod.o)(.text+0x33a):dirmod.c: undefined
> reference to `_imp__CurrentMemoryContext'
>

I know this message. It does not appear for me if I do a clean checkout,
and make from the pgsql top directory. If I make from src/backend (to
skip the lengthy locale makes on my slow machine), that said undefined
reference comes up, and won't go even if I make from the top dir unless
dirmod.c is touched.

Apparently the reason is crossover referencing between libs, i.e.
libpgport.a using libpostgres.a and vice versa.

So it's better if src/port sources don't use backend's functions.

Regards,
Andreas

pgsql-hackers-win32 by date:

Previous
From: "Dave Page"
Date:
Subject: Re: New pginstaller beta
Next
From: Andreas Pflug
Date:
Subject: Re: Win32 testing needed