[postgis-users] Re: [CYGWIN] No source files from which to build Postgis extension

Jason Tishler jason at tishler.net
Tue Apr 8 13:06:02 PDT 2003


Norman,

On Mon, Apr 07, 2003 at 10:02:51AM -0400, Norman Vine wrote:
> for a link to the binary package and the changes I had to make see
> http://postgis.refractions.net/pipermail/postgis-users/2003-March/002260.html

Please submit a patch to <pgsql-patches at postgresql.org> to add the
missing DLLIMPORT for cpu_index_tuple_cost to
src/include/optimizer/cost.h.

BTW, under 7.3.2-1, I get the following link errors:

    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/usr/local/lib -L/usr/local/lib                                                    postgis_debug.o(.text+0x2e0): In function `mem_size':
    /home/jt/src/postgresql-7.3.2-1/contrib/postgis/postgis_debug.c:101: undefined reference to `_pg_detoast_datum'
    ...

The above error is due to the dllwrap command missing the following
arguments:

    -L ../../src/backend -lpostgres

I used the attached patch to the PostGIS Makefile to workaround this
"problem." Is this cockpit error on my part?  Or, is the patch really
necessary?

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
-------------- next part --------------
--- Makefile.orig	2003-04-08 15:53:29.000000000 -0400
+++ Makefile	2003-04-08 16:00:21.000000000 -0400
@@ -96,7 +96,7 @@ SHLIB_LINK=$(filter -L%, $(LDFLAGS)) 
 ifeq ($(USE_PROJ),1)
 	SHLIB_LINK=$(filter -L%, $(LDFLAGS)) -L$(PROJ_DIR)/lib -lproj
 else
-	SHLIB_LINK=$(filter -L%, $(LDFLAGS)) 
+	SHLIB_LINK=$(filter -L%, $(LDFLAGS)) $(BE_DLLLIBS)
 endif
 
 #---------------------------------------------------------------


More information about the postgis-users mailing list