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