Re: Make-Problem Postgres on Cygwin

From: Jason Tishler <jason(at)tishler(dot)net>
To: Norman Vine <nhv(at)cape(dot)com>
Cc: Pgsql-Cygwin <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Make-Problem Postgres on Cygwin
Date: 2002-11-22 17:37:21
Message-ID: 20021122173721.GA1520@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Norman,

On Fri, Nov 22, 2002 at 11:39:55AM -0500, Norman Vine wrote:
> I still am getting a couple of undefined references
>
> dlltool --export-all --output-def postgis.def postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o postgis_proj.o
> postgis_chip.o postgis_transform.o postgis_gist_72.o postgis_estimate.o
> dllwrap -o postgis.dll --dllname postgis.dll --def postgis.def postgis_debug.o postgis_ops.o postgis_fn.o postgis_inout.o
> postgis_proj.o postgis_chip.o postgis_transform.o postgis_gist_72.o postgis_estimate.o
> ./../src/utils/dllinit.o -L../../src/backend -lpostgres -L/usr/local/lib -lcygipc -lcrypt -L/usr/local/lib -L/usr/local/lib -L/usr/
> local/lib -L/usr/local/lib -lproj
>
> fu000019.o(.idata$3+0xc): undefined reference to `_libpostgres_a_iname'

Sorry, I'm not sure what to do about the above.

> nmth000018.o(.idata$4+0x0): undefined reference to `__nm__cpu_index_tuple_cost'

I believe that adding a DLLIMPORT to src/include/optimizer/cost.h:

extern DLLIMPORT double cpu_index_tuple_cost;

should fix this one.

> a nm dump of libpostgres.a yields
>
> [snip]
>
> but no reference to 'fu000019.o' or 'nmth000018.o'
> which are where the complaints are apparently originating

BTW, the fu000019.o and nmth000018.o are from "dllwrap -o postgis.dll..."
not from libpostgres.a.

Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Norman Vine 2002-11-22 18:04:40 Re: Make-Problem Postgres on Cygwin
Previous Message Norman Vine 2002-11-22 16:39:55 Re: Make-Problem Postgres on Cygwin