<!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
"Beta" 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>
ftp://ftp.remotesensing.org/gdal/gdal-1.2.0b.tar.gz<br>
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 -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD -I../../port -I../../gcore
-I../../ogr -I../../port -c -o ../o/fastdataset.o
fastdataset.cpp</font></blockquote>
<blockquote><font face="Courier New" size="-1"> g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c fastdataset.cpp
-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">
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"> this
function</font></blockquote>
<blockquote><font face="Courier New" size="-1"> 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 >/dev/null 2>&1</font></blockquote>
<blockquote><font face="Courier New" size="-1">/bin/sh ../../libtool
--mode=compile g++ -Wall -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD -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"> g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c atlsci_spheroid.cpp
-fno-common -DPIC -o ../o/.libs/atlsci_spheroid.o</font></blockquote>
<blockquote><font face="Courier New" size="-1"> 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 >/dev/null 2>&1</font></blockquote>
<blockquote><font face="Courier New" size="-1">/bin/sh ../../libtool
--mode=compile g++ -Wall -O3 -fno-common -no-cpp-precomp
-DCPL_MULTIPROC_PTHREAD -I../../port -I../../gcore
-I../../ogr -I../../port -c -o ../o/btdataset.o
btdataset.cpp</font></blockquote>
<blockquote><font face="Courier New" size="-1"> g++ -Wall -O3
-fno-common -no-cpp-precomp -DCPL_MULTIPROC_PTHREAD -I../../port
-I../../gcore -I../../ogr -I../../port -c btdataset.cpp
-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"> 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"> 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">/*
Swap on MSB
platforms. <span
></span
> <span
></span
> <span
></span>
*/</font></blockquote>
<blockquote><font face="Courier New">/*
--------------------------------------------------------------------
*/</font></blockquote>
<blockquote><font face="Courier New">#ifdef
CPL_MSB</font></blockquote>
<blockquote><font face="Courier New"> GDALSwapWords(
pImage, nDataSize, nRasterYSize, nWordSize );</font></blockquote>
<blockquote><font
face="Courier New">#endif </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>
</x-tab>(Multispectral file)</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.TIL</font
><x-tab> </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
> </x-tab></font>(Image
description)</div>
<div><font face="Lucida Grande" size="+1"
color="#000000">03MAY19095313-M2AS_R1C2-000000040462_01_P002.RPB<x-tab
> </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">|| Lorenzo
Moretti e-mail:
lorenzo.moretti@bologna.enea.it </font></div
>
<div><font face="Courier New" color="#000000">||/|/| ENEA
prot <span
></span> Web:
http://wwwamb.bologna.enea.it/ </font></div>
<div><font face="Courier New" color="#000000">|| |
via Don Fiammelli, 2 FTP:
ftp://ftpamb.bologna.enea.it/ (ris.)</font></div>
<div><font face="Courier New" color="#000000">~~~~~~ 40128
BOLOGNA - ITALY Ph: +39-0516098086 Fax:
+39-0516098131</font></div>
<div><font face="Courier New"
color="#000000"
>____________________________________________________________________<span
></span>____</font></div>
</body>
</html>