Skip to content

Instantly share code, notes, and snippets.

gmake[4]: Entering directory '/home/pgsql/src/postgis/gdal-2.0.2/ogr/ogrsf_frmts/geojson/libjson'
/bin/sh /home/pgsql/src/postgis/gdal-2.0.2/libtool --mode=compile --tag=CC gcc -g -O2 -m64 -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/home/pgsql/src/postgis/gdal-2.0.2/port -DGDAL_COMPILATION -D_XOPEN_SOURCE=500 -c -o ../../o/json_object.lo json_object.c
libtool: compile: gcc -g -O2 -m64 -Wall -Wdeclaration-after-statement -DOGR_ENABLED -I/home/pgsql/src/postgis/gdal-2.0.2/port -DGDAL_COMPILATION -D_XOPEN_SOURCE=500 -c json_object.c -fPIC -DPIC -o ../../o/.libs/json_object.o
json_object.c: In function 'gdal_json_object_int_to_json_string':
json_object.c:473:27: error: expected ')' before 'PRId64'
return sprintbuf(pb, "%"PRId64, jso->o.c_int64);
^
json_object.c: In function 'gdal_json_object_get_int':
json_object.c:509:16: error: 'INT32_MIN' undeclared (first use in this function)
if (cint64 <= INT32_MIN)
@phillipross
phillipross / gist:964565b587c6852beeb2
Created June 19, 2015 23:52
GEOMETRYCOLLECTIONM parsing
postgis1=> select geometry_in('GEOMETRYCOLLECTIONM(POINT(10 10 20),POINT(20 20 20))');
ERROR: can not mix dimensionality in a geometry
HINT: "...ONM(POINT(10 10 20),POINT(20 20 20))" <-- parse error at position 53 within geometry
@phillipross
phillipross / gist:0b0c1a71d43b3a037992
Created May 16, 2015 20:58
output to illustrate problem with attempting to resolve payara artifacts from maven central
$ mvn -U org.apache.maven.plugins:maven-dependency-plugin:2.10:get -Dartifact=fish.payara.extras:payara-micro:4.1.152.1
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:get (default-cli) @ standalone-pom ---
[INFO] Resolving fish.payara.extras:payara-micro:jar:4.1.152.1 with transitive dependencies
Downloading: https://repo.maven.apache.org/maven2/org/glassfish/main/extras/extras/4.1.152.1/extras-4.1.152.1.pom
[root@smartos01 ~]# dladm show-link
LINK CLASS MTU STATE BRIDGE OVER
e1000g0 phys 1500 up vmwarebr --
vmwarebr0 bridge 1500 up -- e1000g0
[root@smartos01 ~]# prtconf -v /dev/e1000g0
pci8086,1e, instance #0
System software properties:
name='ForceSpeedDuplex' type=int items=16
value=00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007.00000007
name='AutoNegAdvertised' type=int items=16