[gdal-dev] Error when compiling GDAL trunk

Even Rouault even.rouault at mines-paris.org
Thu Mar 22 09:53:25 EDT 2012


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 ?


More information about the gdal-dev mailing list