[Gdal-dev] Error building with ECW support on Solaris

Chris Garrard chrisg at biology.usu.edu
Fri Jan 6 17:32:18 EST 2006


Hi,

I'm trying to build GDAL 1.3.1 with support for ECW on Solaris 10.  I
got v3.3 RC1 of the ECW source code and built it and can run one of the
examples (I didn't try the others).  But when I try to compile GDAL I
get the following error.  I also tried it on Solaris 8 and had the same
problem.  I'd love it if someone could point me in the right direction
to fix this.  Thanks!

Chris

g++ -Wall -O2 -I../../port -I../../gcore -I../../alg -I../../ogr
-I../../ogr/ogrsf_frmts -DFRMT_ecw -I../../port
-I/opt/csw/extras/ecw/include -I/opt/csw/extras/jasper
-I/opt/csw/extras/jasper/include -c ecwdataset.cpp  -fPIC -DPIC -o
../o/.libs/ecwdataset.o
In file included from /opt/csw/extras/ecw/include/NCSDefs.h:34,
                 from /opt/csw/extras/ecw/include/NCSECWClient.h:46,
                 from vsiiostream.h:76,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSTypes.h:4:1: warning: "_LARGEFILE_SOURCE"
redefined
In file included from
/opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/stdio.h:36,
                 from ../../port/cpl_port.h:179,
                 from ../../gcore/gdal.h:129,
                 from ../../gcore/gdal_priv.h:256,
                 from ../../gcore/gdal_pam.h:54,
                 from ecwdataset.cpp:145:
/usr/include/sys/feature_tests.h:164:1: warning: this is the location of
the previous definition
In file included from /opt/csw/extras/ecw/include/NCSDefs.h:34,
                 from /opt/csw/extras/ecw/include/NCSECWClient.h:46,
                 from vsiiostream.h:76,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSTypes.h:5:28: warning: ISO C requires
whitespace after the macro name
/opt/csw/extras/ecw/include/NCSTypes.h:5:1: warning: "_FILE_OFFSET_BITS"
redefined
In file included from
/opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/stdio.h:36,
                 from ../../port/cpl_port.h:179,
                 from ../../gcore/gdal.h:129,
                 from ../../gcore/gdal_priv.h:256,
                 from ../../gcore/gdal_pam.h:54,
                 from ecwdataset.cpp:145:
/usr/include/sys/feature_tests.h:188:1: warning: this is the location of
the previous definition
In file included from /opt/csw/extras/ecw/include/NCSDefs.h:34,
                 from /opt/csw/extras/ecw/include/NCSECWClient.h:46,
                 from vsiiostream.h:76,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSTypes.h:6:30: warning: ISO C requires
whitespace after the macro name
/opt/csw/extras/ecw/include/NCSTypes.h:6:1: warning:
"_LARGEFILE64_SOURCE" redefined
In file included from
/opt/csw/gcc3/lib/gcc/sparc-sun-solaris2.8/3.4.4/include/stdio.h:36,
                 from ../../port/cpl_port.h:179,
                 from ../../gcore/gdal.h:129,
                 from ../../gcore/gdal_priv.h:256,
                 from ../../gcore/gdal_pam.h:54,
                 from ecwdataset.cpp:145:
/usr/include/sys/feature_tests.h:160:1: warning: this is the location of
the previous definition
In file included from /usr/include/fcntl.h:23,
                 from /opt/csw/extras/ecw/include/NCSFileIO.h:115,
                 from /opt/csw/extras/ecw/include/NCSJPCIOStream.h:30,
                 from /opt/csw/extras/ecw/include/NCSJP2Box.h:27,
                 from /opt/csw/extras/ecw/include/NCSJP2FileView.h:43,
                 from /opt/csw/extras/ecw/include/NCSFile.h:26,
                 from vsiiostream.h:79,
                 from ecwdataset.cpp:150:
/usr/include/sys/fcntl.h:125:23: token "=" is not valid in preprocessor
expressions
In file included from /opt/csw/extras/ecw/include/NCSFileIO.h:115,
                 from /opt/csw/extras/ecw/include/NCSJPCIOStream.h:30,
                 from /opt/csw/extras/ecw/include/NCSJP2Box.h:27,
                 from /opt/csw/extras/ecw/include/NCSJP2FileView.h:43,
                 from /opt/csw/extras/ecw/include/NCSFile.h:26,
                 from vsiiostream.h:79,
                 from ecwdataset.cpp:150:
/usr/include/fcntl.h:48:24: token "=" is not valid in preprocessor
expressions
/usr/include/fcntl.h:103:40: token "=" is not valid in preprocessor
expressions
In file included from /opt/csw/extras/ecw/include/NCSJPCPLTMarker.h:26,
                 from
/opt/csw/extras/ecw/include/NCSJPCTilePartHeader.h:33,
                 from /opt/csw/extras/ecw/include/NCSJPC.h:28,
                 from /opt/csw/extras/ecw/include/NCSJP2File.h:61,
                 from vsiiostream.h:80,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSJPCNode.h: In member function `virtual
bool CNCSJPCNode::WriteLine(void*, CNCSJPCBuffer*, UINT16)':
/opt/csw/extras/ecw/include/NCSJPCNode.h:127: warning: statement has no
effect
/opt/csw/extras/ecw/include/NCSJPCNode.h:127: warning: statement has no
effect
/opt/csw/extras/ecw/include/NCSJPCNode.h:127: warning: statement has no
effect
In file included from /opt/csw/extras/ecw/include/NCSJPCPrecinct.h:25,
                 from /opt/csw/extras/ecw/include/NCSJPCResolution.h:25,
                 from /opt/csw/extras/ecw/include/NCSJPCComponent.h:31,
                 from
/opt/csw/extras/ecw/include/NCSJPCTilePartHeader.h:36,
                 from /opt/csw/extras/ecw/include/NCSJPC.h:28,
                 from /opt/csw/extras/ecw/include/NCSJP2File.h:61,
                 from vsiiostream.h:80,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSJPCSubBand.h: In member function `virtual
UINT32 CNCSJPCSubBand::GetNodeWidth(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCSubBand.h:175: warning: statement has
no effect
/opt/csw/extras/ecw/include/NCSJPCSubBand.h: In member function `virtual
UINT32 CNCSJPCSubBand::GetNodeHeight(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCSubBand.h:183: warning: statement has
no effect
/opt/csw/extras/ecw/include/NCSJPCSubBand.h: In member function `virtual
UINT32 CNCSJPCSubBand::GetNumNodesWide(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCSubBand.h:191: warning: statement has
no effect
/opt/csw/extras/ecw/include/NCSJPCSubBand.h: In member function `virtual
UINT32 CNCSJPCSubBand::GetNumNodesHigh(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCSubBand.h:199: warning: statement has
no effect
In file included from /opt/csw/extras/ecw/include/NCSJPCComponent.h:31,
                 from
/opt/csw/extras/ecw/include/NCSJPCTilePartHeader.h:36,
                 from /opt/csw/extras/ecw/include/NCSJPC.h:28,
                 from /opt/csw/extras/ecw/include/NCSJP2File.h:61,
                 from vsiiostream.h:80,
                 from ecwdataset.cpp:150:
/opt/csw/extras/ecw/include/NCSJPCResolution.h: In member function
`virtual UINT32 CNCSJPCResolution::GetNodeWidth(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCResolution.h:252: warning: statement
has no effect
/opt/csw/extras/ecw/include/NCSJPCResolution.h: In member function
`virtual UINT32 CNCSJPCResolution::GetNodeHeight(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCResolution.h:260: warning: statement
has no effect
/opt/csw/extras/ecw/include/NCSJPCResolution.h: In member function
`virtual UINT32 CNCSJPCResolution::GetNumNodesWide(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCResolution.h:268: warning: statement
has no effect
/opt/csw/extras/ecw/include/NCSJPCResolution.h: In member function
`virtual UINT32 CNCSJPCResolution::GetNumNodesHigh(UINT16)':
/opt/csw/extras/ecw/include/NCSJPCResolution.h:276: warning: statement
has no effect
/opt/csw/extras/ecw/include/NCSJPCResolution.h: In member function
`virtual CNCSJPCNode* CNCSJPCResolution::GetNodePtr(UINT32, UINT16)':
/opt/csw/extras/ecw/include/NCSJPCResolution.h:285: warning: statement
has no effect
gmake[2]: *** [../o/ecwdataset.o] Error 1
gmake[2]: Leaving directory `/opt/csw/extras/gdal-1.3.1/frmts/ecw'
gmake[1]: *** [ecw-install-obj] Error 2
gmake[1]: Leaving directory `/opt/csw/extras/gdal-1.3.1/frmts'
gmake: *** [frmts-target] Error 2




More information about the Gdal-dev mailing list