[postgis-devel] template_gis Makefile error on Solaris

Michael Fuhr mike at fuhr.org
Sun Jan 14 18:31:42 PST 2007


The SONAME assignment in extras/template_gis/Makefile causes an
error on Solaris 9:

gmake -C extras/template_gis
Usage: grep -hblcnsviw pattern file . . .
/bin/sh: REL_MAJOR_VERSION: not found

Traditional Bourne Shells such as the one on Solaris treat ^ as a
pipe, so in effect

SONAME:=$(shell grep ^REL_MAJOR_VERSION ../../Version.config | cut -d= -f2)

is equivalent to

SONAME:=$(shell grep | REL_MAJOR_VERSION ../../Version.config | cut -d= -f2)

Quoting the regular expression should fix the problem; see the
attached patch.

-- 
Michael Fuhr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: template_gis.patch
Type: text/x-diff
Size: 580 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20070114/f9c5b8f4/attachment.patch>


More information about the postgis-devel mailing list