[gdal-dev] Error when compiling GDAL trunk
Kyle Shannon
KShannon at gcs-research.com
Thu Mar 22 11:35:04 EDT 2012
Jean Claude,
I have a gdal test machine running Ubuntu 11.10. I build zlib 1.2.6 and built and linked gdal against it no problems. Probably doesn't help much.
kss
-----Original Message-----
From: gdal-dev-bounces at lists.osgeo.org [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Jean-Claude Repetto
Sent: Thursday, March 22, 2012 8:25 AM
To: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Error when compiling GDAL trunk
Le 22/03/2012 14:53, Even Rouault a écrit :
> Selon Jean-Claude Repetto<jrepetto at free.fr>:
>
>> Hello,
>>
>> Since a few weeks, I have a problem to compile GDAL trunk on one of
>> my PCs. But it works on others, so I think there is a problem on the PC.
>> This PC runs Linux 32 bits (Gentoo), and gcc version is 4.5.3.
>>
>> The first error occur in this line :
>> typedef voidpf (ZCALLBACK *open_file_func) OF((voidpf opaque, const
>> char* filename, int mode));
>> cpl_minizip_ioapi.h:48:44: error: expected initializer before 'OF'
>>
>> Any idea of what may be wrong on my PC ?
>>
>
> I see OF is a macro defined in zconf.h of zlib. At least in zlib
> 1.2.3, perhaps an issue with newer zlib ?
You are right : If I install zlib-1.2.6 in place of zlib-1.2.5, the error appears. At this time, I'm not sure if it is a problem with zlib or with Gentoo, I'll try to investigate.
If you have enough time, could you try zlib-1.2.6 ?
Thanks,
Jean-Claude
_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list