[postgis-users] Fw: [CYGWIN] Make-Problem Postgres on Cygwin
Norman Vine
nhv@cape.com
Fri Nov 22 18:14:18 2002
This is a multi-part message in MIME format.
---------------------- multipart/mixed attachment
FYI
This is a synopsis of changes to the 'current' Cygwin Postgres
source that are required to build PostGIS with the 'current'
Cygwin distribution
Note after applying the appropriate patches running the
included 'build.sh' script from the Postgres ROOT directory
*should* be all you need todo to build PostGIS
Norman
----- Original Message -----
From: "Norman Vine" <nhv@cape.com>
To: "Pgsql-Cygwin" <pgsql-cygwin@postgresql.org>
Sent: Friday, November 22, 2002 11:39 AM
Subject: Re: [CYGWIN] Make-Problem Postgres on Cygwin
> Jason Tishler writes:
> >
> < 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
>
> Anyone got any ideas ??
Jason Tishler writes:
>
> On Fri, Nov 22, 2002 at 11:39:55AM -0500, Norman Vine wrote:
>>
> > I still am getting a couple of undefined references
> >
> > 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.
**BINGO **
With this change the DLL compiles and works !
What do we need todo to get this into the Postgres source ?
Many Thanks
Norman
---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 7677 bytes
Desc: not available
Url : http://lists.refractions.net/pipermail/postgis-users/attachments/20021122/64486457/patch.obj
---------------------- multipart/mixed attachment
A non-text attachment was scrubbed...
Name: build.sh
Type: application/octet-stream
Size: 932 bytes
Desc: not available
Url : http://lists.refractions.net/pipermail/postgis-users/attachments/20021122/64486457/build.obj
---------------------- multipart/mixed attachment--