[Debian-med-packaging] Bug#506009: maq: gzopen64 implicitly converted to pointer

peter green plugwash at p10link.net
Tue Nov 18 02:55:32 UTC 2008


tags 506009 +patch
thanks

the issue seems to be caused by upstream defining _FILE_OFFSET_BITS=64 
but not _LARGEFILE64_SOURCE causing the zlib header to misbehave. 
Defining _LARGEFILE64_SOURCE as well fixes it.

This can be done by adding the following to debian/rules

#needed to make the zlib headers behave (they don't like the combination
#of _FILE_OFFSET_BITS=64 but not _LARGEFILE64_SOURCE
CFLAGS+= -D_LARGEFILE64_SOURCE.

I put it just above the #include statements

BTW using a patch to fixup configure seems to be pretty fragile to me. 
On my system autohell insists on automaticallyr regenerating it 
repeatedly causing the build to fail with quilt errors if I try to build 
twice in a row. It may be better to drop
the patch and have autoreconf run as part of the build.









More information about the Debian-med-packaging mailing list