[postgis-devel] WKB problems on Linux AMD64

clozano at quavantis.com clozano at quavantis.com
Mon Mar 7 04:14:17 PST 2005


Hi,

Yes, binary WKB. Postgis reports no errors other than "ERROR: invalid wkb" 
when attempting to import data; this only happens on the amd64 box with 
postgis 0.9.1, 1.0.0rc2 and 1.0.0rc3.

Below is a list of the compile time warnings for each version. I haven't 
rummaged in the code yet, but the "lwgeom_functions_basic.c" casts are 
suspect. Any pointers appreciated!

Thanks!

postgis 0.9.1
==========
pandora:~/inst/postgresql-8.0.1/contrib/postgis-0.9.1 # make | grep 
"warning"
postgis_geos.c:323: warning: `resize_ptrArrayType' defined but not used
shpopen.c:176: warning: `rcsid' defined but not used
dbfopen.c:200: warning: `rcsid' defined but not used


postgis 1.0.0rc2
=============
pandora:~/inst/postgresql-8.0.1/contrib/postgis-1.0.0-rc2 # make | grep 
"warning"
y.tab.c: In function `lwg_parse_yyparse':
y.tab.c:405: warning: label `yyerrlab' defined but not used
y.tab.c: At top level:
wktparse.tab.c:3: warning: `yyrcsid' defined but not used
lex.yy.c:3027: warning: `yyunput' defined but not used
In file included from vsprintf.c:135:
vsprintf.c: In function `vasprintf':
vsprintf.c:44: warning: passing arg of `int_vasprintf' from incompatible 
pointer type
lwgeom_functions_basic.c: In function `dump_lwexploded':
lwgeom_functions_basic.c:1473: warning: cast from pointer to integer of 
different size
lwgeom_functions_basic.c:1482: warning: cast from pointer to integer of 
different size
lwgeom_functions_basic.c:1491: warning: cast from pointer to integer of 
different size
shpopen.c:176: warning: `rcsid' defined but not used
dbfopen.c:200: warning: `rcsid' defined but not used
pgsql2shp.c: In function `addRecord':
pgsql2shp.c:1976: warning: passing arg 2 of `PQunescapeBytea' from 
incompatible pointer type

postgis 1.0.0rc3
=============
pandora:~/inst/postgresql-8.0.1/contrib/postgis-1.0.0-rc3 # make | grep 
"warning"
y.tab.c: In function `lwg_parse_yyparse':
y.tab.c:405: warning: label `yyerrlab' defined but not used
y.tab.c: At top level:
wktparse.tab.c:3: warning: `yyrcsid' defined but not used
lex.yy.c:3027: warning: `yyunput' defined but not used
In file included from vsprintf.c:135:
vsprintf.c: In function `vasprintf':
vsprintf.c:44: warning: passing arg of `int_vasprintf' from incompatible 
pointer type
lwgeom_functions_basic.c: In function `dump_lwexploded':
lwgeom_functions_basic.c:1525: warning: cast from pointer to integer of 
different size
lwgeom_functions_basic.c:1534: warning: cast from pointer to integer of 
different size
lwgeom_functions_basic.c:1543: warning: cast from pointer to integer of 
different size
shpopen.c:176: warning: `rcsid' defined but not used
dbfopen.c:200: warning: `rcsid' defined but not used
pgsql2shp.c: In function `addRecord':
pgsql2shp.c:1980: warning: passing arg 2 of `PQunescapeBytea' from 
incompatible pointer type

Salutacions - Un Saludo - Regards, 

Carlos Lozano Diez
==============================
 Quavantis - mWorld Company 
 Mobile & Wireless Solutions
==============================


postgis-devel-bounces at postgis.refractions.net wrote on 07/03/2005 
07:50:43:

> On Sun, Mar 06, 2005 at 11:19:35PM +0100, clozano at quavantis.com wrote:
> > Hi,
> > 
> > I am having problems importing data into postgis running on a Suse 9.2 

> > x86_64 (amd64) when using WKB format data. 
> 
> You mean binary WKB, right ?
> Do you get an error message, a memory fault or just "wrong" imports ?
> Did you get any warning at compile time ?
> Does 0.9.1 also give you problems with WKB ?
> 
> --strk;
> 
> > 
> > I've built versions 0.9.1, 1.0.0rc2 and 1.0.0rc3 satisfactorily on 
both 
> > Suse 9.2 i686 and x86_64, everything works fine on the 32 bit box and 
> > everything, with the exception of WKB, works on the 64 bit box. I'm 
> > running Postgres 8.0.1 on both boxes, 32 and 64bit respectively - same 

> > linux distro. 
> > 
> > Has anyone come across this problem? Could anyone give me some 
pointers as 
> > to what may be the problem/solution? 
> > 
> > Salutacions - Un Saludo - Regards, 
> > 
> > Carlos Lozano Diez
> > ==============================
> >  Quavantis - mWorld Company 
> >  Mobile & Wireless Solutions
> > ==============================
> 
> > _______________________________________________
> > postgis-devel mailing list
> > postgis-devel at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-devel
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20050307/488fc2ea/attachment.html>


More information about the postgis-devel mailing list