Re: Make-Problem Postgres on Cygwin

From: "Norman Vine" <nhv(at)cape(dot)com>
To: "Pgsql-Cygwin" <pgsql-cygwin(at)postgresql(dot)org>
Subject: Re: Make-Problem Postgres on Cygwin
Date: 2002-11-22 16:39:55
Message-ID: 036c01c29245$caa7aba0$0100a8c0@sfdev3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin

Jason Tishler writes:
>
> Please post instead of sending private email. However, your timing is
> impeccable. I just got around (yesterday) to building PostgreSQL under
> the latest Cygwin gcc2 and gcc packages.

< snip >

> To build PostgreSQL 7.2.3 under gcc (i.e gcc 3.2), use the following
> procedure:
>
> 1. apply attached postgresql-7.2.3-gcc3.patch
> $ patch -p1 <postgresql-7.2.3-gcc3.patch
>
> 2. define LDFLAGS as appropriate on configure command line:
> $ LDFLAGS=-L/usr/local/lib configure ...

Ahhh... Thanks this patch gets me a lot further building my extension but ...

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'
nmth000018.o(.idata$4+0x0): undefined reference to `__nm__cpu_index_tuple_cost'

$ gcc --version
gcc (GCC) 3.2 20020927 (prerelease).

$ ld --version
GNU ld version 2.13.90 20021118

a nm dump of libpostgres.a yields

dt.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$7
00000000 t .text
00000000 I __libpostgres_a_iname

ds01498.o:
00000000 b .bss
00000000 d .data
00000000 i .idata$4
00000000 i .idata$5
00000000 i .idata$6
00000000 i .idata$7
00000000 t .text
U __head_libpostgres_a
00000000 I __imp__cpu_index_tuple_cost

but no reference to 'fu000019.o' or 'nmth000018.o'
which are where the complaints are apparently originating

Anyone got any ideas ??

Norman

In response to

Responses

Browse pgsql-cygwin by date

  From Date Subject
Next Message Jason Tishler 2002-11-22 17:37:21 Re: Make-Problem Postgres on Cygwin
Previous Message Jason Tishler 2002-11-22 14:20:31 Re: Make-Problem Postgres on Cygwin