[Poppler-bugs] [Bug 33710] 'make' for poppler-0.16.2 fails even though 'configure' is OK

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 30 07:03:01 PST 2011


https://bugs.freedesktop.org/show_bug.cgi?id=33710

--- Comment #8 from Sergei Steshenko <sergstesh at yahoo.com> 2011-01-30 07:03:01 PST ---
(In reply to comment #4)
> Your png.h seems fine.
> 
> There seems to be something wrong in your system in which it thinks 
>   gzseek64(void*, off_t, int)
> and 
>   gzseek64(void*, off64_t, int)
> are the same function. 
> 
> Sincerely i don't know what's the issue.

Here is the relevant piece of 'zlib.h' file:

   1565 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0
   1566    ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
   1567    ZEXTERN z_off64_t ZEXPORT gzseek64 OF((gzFile, z_off64_t, int));
   1568    ZEXTERN z_off64_t ZEXPORT gztell64 OF((gzFile));
   1569    ZEXTERN z_off64_t ZEXPORT gzoffset64 OF((gzFile));
   1570    ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong,
z_off64_t));
   1571    ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off64_t));
   1572 #endif
   1573
   1574 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 &&
_LFS64_LARGEFILE-0
   1575 #  define gzopen gzopen64
   1576 #  define gzseek gzseek64
   1577 #  define gztell gztell64
   1578 #  define gzoffset gzoffset64
   1579 #  define adler32_combine adler32_combine64
   1580 #  define crc32_combine crc32_combine64
   1581 #  ifdef _LARGEFILE64_SOURCE
   1582      ZEXTERN gzFile ZEXPORT gzopen64 OF((const char *, const char *));
   1583      ZEXTERN z_off_t ZEXPORT gzseek64 OF((gzFile, z_off_t, int));
   1584      ZEXTERN z_off_t ZEXPORT gztell64 OF((gzFile));
   1585      ZEXTERN z_off_t ZEXPORT gzoffset64 OF((gzFile));
   1586      ZEXTERN uLong ZEXPORT adler32_combine64 OF((uLong, uLong,
z_off_t));
   1587      ZEXTERN uLong ZEXPORT crc32_combine64 OF((uLong, uLong, z_off_t));
   1588 #  endif
   1589 #else
   1590    ZEXTERN gzFile ZEXPORT gzopen OF((const char *, const char *));
   1591    ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile, z_off_t, int));
   1592    ZEXTERN z_off_t ZEXPORT gztell OF((gzFile));
   1593    ZEXTERN z_off_t ZEXPORT gzoffset OF((gzFile));
   1594    ZEXTERN uLong ZEXPORT adler32_combine OF((uLong, uLong, z_off_t));
   1595    ZEXTERN uLong ZEXPORT crc32_combine OF((uLong, uLong, z_off_t));
   1596 #endif

- as one can see, the conflict which is between line #1567 and line #1583
(according to the error message) is quite possible - this is because conditions
for the two lines to become active are _not_ mutually exclusive; the conditions
are:

   1565 #if defined(_LARGEFILE64_SOURCE) && _LFS64_LARGEFILE-0

vs

   1574 #if !defined(ZLIB_INTERNAL) && _FILE_OFFSET_BITS-0 == 64 &&
_LFS64_LARGEFILE-0

in conjunction with

   1581 #  ifdef _LARGEFILE64_SOURCE
.

Anybody has any idea how/by whom the conditions on lines #1565, #1574, #1581
are supposed to be set ?

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list