Opened 19 years ago

Closed 19 years ago

#1485 closed defect (fixed)

enable_point_z_m test fails on Solaris

Reported by: warmerdam Owned by: warmerdam
Priority: high Milestone:
Component: Build Problems Version: 4.6
Severity: normal Keywords:
Cc:

Description

On Solaris 2.7, Mapserver 4.6.1 configure fail with the
following error message:
"test: unknown operator =="

The problem is line 9975:
"if test "$enable_point_z_m" == "yes" ; then"

After removing one of the "="s, configure runs smoothly,
and compilation seems to be successful.

This is how I run configure:
./configure --prefix=/usr/local --enable-debug --with-freetype=/usr/local
--with-zlib=/usr/local --with-png=/usr/local --with-libiconv=/usr/local
--with-gd=/usr/local --with-pdf=/usr/local --with-proj=/usr/local
--with-sde=/users/ikf/sde/sdeexe80 --with-sde=/users/ikf/sde/sdeexe80
--with-sde-version=80 --with-ogr=/usr/local/bin/gdal-config
--with-gdal=/usr/local/bin/gdal-config --without-tiff
--with-postgis=/usr/local/pgsql/741/bin/pg_config --with-wfs --with-wcs
--with-wmsclient --with-wfsclient --with-httpd=/usr/local/apache2/bin/httpd
--without-jpeg

Have anyone else seen this problem?

Change History (1)

comment:1 by fwarmerdam, 19 years ago

Resolution: fixed
Status: newclosed
Havard,

I believe this is one of those things that works with /bin/bash
(used on Linux) but not on the traditional bourne shell used on
Solaris, freebsd, etc.   I have created a bug for this problem and will
fix it in 4.6 and 4.7.

 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1485

Your change directly in configure is fine as a workaround.


...


Fix (changing == to =) committed in 4.6 branch and 4.7 head. 

Note: See TracTickets for help on using tickets.