[gdal-dev] Error when compiling GDAL trunk

Jean-Claude Repetto jrepetto at free.fr
Thu Mar 22 10:24:41 EDT 2012


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



More information about the gdal-dev mailing list