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

Re: plpgsql compile error on win32

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: plpgsql compile error on win32
Date: 2004-07-31 20:04:25
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE4569C0@algol.sollentuna.se (view raw or flat)
Thread:
Lists: pgsql-hackers
>> pg_strcasecmp is *not* included in libpostgres.a. It is in
>> port/libpgport.a, though. (It's also in postgres.exe, but we 
>don't link
>> against that..) 
>
>What do you mean we don't link against that?  There must be hundreds of
>functions in the main backend that plpgsql.dll needs to call.  How is
>it resolving the rest of them?
>

Isn't that what libpostgres.a is used for?
(double-checks)
Ok. Egg on face. libpostgres.a is just the import library for
postgres.exe. I knew that. It just slipped my mind at a bad time.

Ok. So the problem is that functions from libpgport aren't included in
postgres.def, and thus not in libpostgres.a. It seems that can be fixed
with the following patch, which is probably a whole lot close to being
right than what I did before:

*** Makefile    21 Jul 2004 20:34:44 -0000      1.103
--- Makefile    31 Jul 2004 20:03:08 -0000
***************
*** 66,72 ****
        rm -f $(at)(dot)exp $(at)(dot)base
  
  postgres.def: $(OBJS)
!       $(DLLTOOL) --export-all --output-def $@ $^
  
  libpostgres.a: postgres.def
        $(DLLTOOL) --dllname postgres.exe --def postgres.def
--output-lib $@
--- 66,72 ----
        rm -f $(at)(dot)exp $(at)(dot)base
  
  postgres.def: $(OBJS)
!       $(DLLTOOL) --export-all --output-def $@ $^
$(top_builddir)/src/port/libpgport.a
  
  libpostgres.a: postgres.def
        $(DLLTOOL) --dllname postgres.exe --def postgres.def
--output-lib $@



//Magnus

Responses

pgsql-hackers by date

Next:From: Tom LaneDate: 2004-07-31 20:08:46
Subject: Re: plpgsql compile error on win32
Previous:From: Tom LaneDate: 2004-07-31 19:28:06
Subject: Re: plpgsql compile error on win32

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