<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Gdal-dev] GDAL 1.2.0 Beta Release -
Error</title></head><body>
<blockquote type="cite" cite>Folks,<br>
<br>
I have worked hard clearing up old bug reports, and reported build
problems<br>
with the GDAL alpha release and now I have a new cut I consider
&quot;Beta&quot; quality.<br>
I would appreciate people checking it out and reporting any
problems.<br>
<br>
If all goes well, I may cut a final release essentially matching this
in a<br>
couple of days.<br>
<br>
&nbsp; ftp://ftp.remotesensing.org/gdal/gdal-1.2.0b.tar.gz<br>
&nbsp; ftp://ftp.remotesensing.org/gdal/gdal120b.tar.gz<br>
</blockquote>
<blockquote type="cite" cite>Best regards,</blockquote>
<div><br></div>
<div>Until gdal_cvs-1.2.0a I have built binary in OSX very well.</div>
<div><br></div>
<div>From this version 1.2.0b it's impossible to build from
source.</div>
<div>The error is in raw format (inside frmts formats)</div>
<div><br></div>
<div>This is the error:</div>
<div><br></div>
<blockquote><font face="Courier New"
size="-1">....</font></blockquote>
<blockquote><font face="Courier New" size="-1">/bin/sh ../../libtool
--mode=compile g++ -Wall&nbsp; -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp; -I../../port -I../../gcore
-I../../ogr -I../../port -c -o ../o/fastdataset.o
fastdataset.cpp</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c fastdataset.cpp&nbsp;
-fno-common -DPIC -o ../o/.libs/fastdataset.o</font></blockquote>
<blockquote><font face="Courier New" size="-1">fastdataset.cpp: In
function `static GDALDataset*</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;&nbsp;
FASTDataset::Open(GDALOpenInfo*)':</font></blockquote>
<blockquote><font face="Courier New" size="-1">fastdataset.cpp:607:
warning: `char*pszValue' might be used uninitialized
in</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;&nbsp; this
function</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c fastdataset.cpp -o
../o/fastdataset.o &gt;/dev/null 2&gt;&amp;1</font></blockquote>
<blockquote><font face="Courier New" size="-1">/bin/sh ../../libtool
--mode=compile g++ -Wall&nbsp; -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp; -I../../port -I../../gcore
-I../../ogr -I../../port -c -o ../o/atlsci_spheroid.o
atlsci_spheroid.cpp</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c atlsci_spheroid.cpp&nbsp;
-fno-common -DPIC -o ../o/.libs/atlsci_spheroid.o</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c atlsci_spheroid.cpp -o
../o/atlsci_spheroid.o &gt;/dev/null 2&gt;&amp;1</font></blockquote>
<blockquote><font face="Courier New" size="-1">/bin/sh ../../libtool
--mode=compile g++ -Wall&nbsp; -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD&nbsp;&nbsp; -I../../port -I../../gcore
-I../../ogr -I../../port -c -o ../o/btdataset.o
btdataset.cpp</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c btdataset.cpp&nbsp;
-fno-common -DPIC -o ../o/.libs/btdataset.o</font></blockquote>
<blockquote><font face="Courier New" size="-1">btdataset.cpp: In
member function `virtual CPLErr
BTRasterBand::IReadBlock(int,</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;&nbsp; int,
void*)':</font></blockquote>
<blockquote><font face="Courier New" size="-1">btdataset.cpp:133:
error: `nWordSize' undeclared (first use this
function)</font></blockquote>
<blockquote><font face="Courier New" size="-1">btdataset.cpp:133:
error: (Each undeclared identifier is reported only once
for</font></blockquote>
<blockquote><font face="Courier New" size="-1">&nbsp;&nbsp; each
function it appears in.)</font></blockquote>
<blockquote><font face="Courier New" size="-1">make[2]: ***
[../o/btdataset.o] Error 1</font></blockquote>
<blockquote><font face="Courier New" size="-1">make[1]: ***
[raw-install-obj] Error 2</font></blockquote>
<blockquote><font face="Courier New" size="-1">make: ***
[frmts-target] Error 2</font></blockquote>
<blockquote><font face="Courier New"
size="-1">[lor:APPLI/gdal-cvs-040302] lor%</font></blockquote>
<blockquote><br></blockquote>
<div>The file btdataset.cpp has a new version (1.4 vs 1.3 of old
1.2.0a).</div>
<div>I check this file and at line 130</div>
<div><br></div>
<blockquote><font face="Courier New">/*
--------------------------------------------------------------------
*/</font></blockquote>
<blockquote><font face="Courier New">/*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Swap on MSB
platforms.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
*/</font></blockquote>
<blockquote><font face="Courier New">/*
--------------------------------------------------------------------
*/</font></blockquote>
<blockquote><font face="Courier New">#ifdef
CPL_MSB</font></blockquote>
<blockquote><font face="Courier New">&nbsp;&nbsp;&nbsp; GDALSwapWords(
pImage, nDataSize, nRasterYSize, nWordSize );</font></blockquote>
<blockquote><font
face="Courier New">#endif&nbsp;&nbsp;&nbsp;</font></blockquote>
<blockquote><br></blockquote>
<div>nWordSize is undeclared.</div>
<div><br></div>
<div>Thank for fixing !!</div>
<div><br></div>
<div>Another problem:</div>
<div><br></div>
<div>I have QUICK BIRD image files:</div>
<div><br></div>
<div>Gdal read the band in wrong mode.</div>
<div>It creates</div>
<div>xxxx.red channel</div>
<div>xxxx.green channel</div>
<div>xxxx.blue channel</div>
<div>xxxx.alpha channel</div>
<div><br></div>
<div>QUICK BIRD has this format</div>
<div>xxxx.blue channel</div>
<div>xxxx.green channel</div>
<div>xxxx.red channel</div>
<div>xxxx.alpha channel</div>
<div><br></div>
<div>QUICK BIRD has 4 files</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.TIF</font
><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</x-tab>(Multispectral file)</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.TIL</font
><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>(Tile of
group image)</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.IMD<x-tab
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab></font>(Image
description)</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.RPB<x-tab
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab></font>(Parameter
of image)</div>
<div><br></div>
<div>Is it possible to fix this error ??</div>
<div><br></div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><font face="Verdana"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
<div><font face="Courier New"
color="#000000">||&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Lorenzo
Moretti&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; e-mail:
lorenzo.moretti@bologna.enea.it&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></div
>
<div><font face="Courier New" color="#000000">||/|/|&nbsp; ENEA
prot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span
></span>&nbsp;&nbsp;&nbsp; Web:
http://wwwamb.bologna.enea.it/&nbsp;&nbsp;&nbsp;&nbsp;</font></div>
<div><font face="Courier New" color="#000000">||&nbsp;&nbsp; |&nbsp;
via Don Fiammelli, 2&nbsp;&nbsp; FTP:
ftp://ftpamb.bologna.enea.it/&nbsp;(ris.)</font></div>
<div><font face="Courier New" color="#000000">~~~~~~&nbsp; 40128
BOLOGNA - ITALY&nbsp; Ph: +39-0516098086&nbsp; Fax:
+39-0516098131</font></div>
<div><font face="Courier New"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>