LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1168|回复: 5

最新的zlib 1.2.5-1有问题,导致很多使用zlib的软件包无法编译

[复制链接]
发表于 2010-5-24 13:17:49 | 显示全部楼层 |阅读模式
问题出在/usr/include/zlib.h下面一段(对同一函数有两处宣称)。注释掉该段就可以了

#if 0
/* provide 64-bit offset functions if _LARGEFILE64_SOURCE defined, and/or
* change the regular functions to 64 bits if _FILE_OFFSET_BITS is 64 (if
* both are true, the application gets the *64 functions, and the regular
* functions are changed to 64 bits) -- in case these are set on systems
* without large file support, _LFS64_LARGEFILE must also be true
*/
#if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
   ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
   ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
   ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
   ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
   ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off64_t));
   ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
#endif

#if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 && _LFS64_LARGEFILE-0
#  define gzopen gzopen64
#  define gzseek gzseek64
#  define gztell gztell64
#  define gzoffset gzoffset64
#  define adler32_combine adler32_combine64
#  define crc32_combine crc32_combine64
#  ifdef _LARGEFILE64_SOURCE
     ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
     ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
     ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
     ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
     ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong, z_off_t));
     ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
#  endif
#else
   ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
   ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
   ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
   ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
   ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
   ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
#endif
#endif /*make many program not compile*/
发表于 2010-5-24 13:55:12 | 显示全部楼层
什么哦? zlib 都不能相信了吗?
回复 支持 反对

使用道具 举报

发表于 2010-5-24 18:54:33 | 显示全部楼层
最好给arch报bug
回复 支持 反对

使用道具 举报

发表于 2010-5-24 19:06:12 | 显示全部楼层
为嘛不用testing呢?
回复 支持 反对

使用道具 举报

发表于 2010-5-24 19:38:27 | 显示全部楼层
我直接编译的,没发现有问题。


  1. * sys-libs/zlib
  2.         Available: 1.2.5
  3.         Installed: 1.2.5 | 2010-05-07 18:07:56 265K
  4.         Desc.    : Standard (de)compression library
  5.         Homepage : [url]http://www.zlib.net/[/url]
复制代码


make && make install
回复 支持 反对

使用道具 举报

 楼主| 发表于 2010-5-25 10:24:59 | 显示全部楼层
arch已经有bug报告了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表