[Geotiff] failed compile on FreeBSD
Mateusz Loskot
mateusz at loskot.net
Wed Aug 20 12:27:04 EDT 2008
Frank Warmerdam wrote:
> Michael Harnois wrote:
>> libgeotiff 1.2.5 won't compile on my FreeBSD amd64 system (the prior
>> version did). Whether using the port or building from CVS, the error
>> is the same:
>>
>> In file included from listgeo.c:12:
>> ../geo_simpletags.h:38: error: expected ')' before '*' token
>> listgeo.c: In function 'main':
>> listgeo.c:92: warning: implicit declaration of function
>> 'GTIFNewSimpleTags'
>> listgeo.c:92: warning: assignment makes pointer from integer without a
>> cast
>>
>> Ideas? Thanks.
>
> Michael,
>
> I looked into this, and couldn't see any obvious reason things would fail.
> Possibly old libgeotiff headers are being picked up at compile time
> somehow?
>
> What version of gcc are you using? I'm using 4.1.3 without even any
> warnings on the above files.
Frank,
I can also confirm libgeotiff 1.2.5 builds with GCC 4.3.1 under Debian
Linux. However, I get 3 warnings about breaking strict-aliasing
rules in:
geo_new.c:242
geo_write.c:135
and in geotiff_proj4.c:261 dfSemiMajor is reported as likely uninitialized.
Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
More information about the Geotiff
mailing list