[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:40:41 PST 2011


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

--- Comment #10 from Sergei Steshenko <sergstesh at yahoo.com> 2011-01-30 07:40:41 PST ---
(In reply to comment #9)
> Gahh, i can't read :D
> 
> It is very interesting since if I diff my zlib.h and yours i get this
> 
> tsdgeos at ahtec:~$ diff -ub attachment.cgi\?id\=42709 /usr/include/zlib.h 
> --- attachment.cgi?id=42709     2011-01-30 15:22:37.813333338 +0000
> +++ /usr/include/zlib.h 2010-11-20 03:32:03.000000000 +0000
> @@ -1578,7 +1578,7 @@
>  #  define gzoffset gzoffset64
>  #  define adler32_combine adler32_combine64
>  #  define crc32_combine crc32_combine64
> -#  ifdef _LARGEFILE64_SOURCE
> +#  ifndef _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));
> 
> So it seems your zlib.h is broken?

(In reply to comment #0)
> Created an attachment (id=42706)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=42706)
> autogenerated wrapper used to run 'configure'
> 
> Under exactly the same settings poppler-0.14.5 builds fine. Please see the
> attached autogenerated wrapper used to run 'configure'.
> 
> The failure is:
> 
> "
>   CXX    libpoppler_cpp_la-poppler-image.lo
> In file included from
> /mnt/sdb8/sergei/AFSWD_debug/install/libpng-1.4.5/include/libpng14/png.h:405,
>                  from ../goo/PNGWriter.h:23,
>                  from poppler-image.cpp:26:
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1583: error:
> declaration of C function 'off_t gzseek64(void*, off_t, int)' conflicts with
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1567: error:
> previous declaration 'off64_t gzseek64(void*, off64_t, int)' here
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1584: error:
> declaration of C function 'off_t gztell64(void*)' conflicts with
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1568: error:
> previous declaration 'off64_t gztell64(void*)' here
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1585: error:
> declaration of C function 'off_t gzoffset64(void*)' conflicts with
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1569: error:
> previous declaration 'off64_t gzoffset64(void*)' here
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1586: error:
> declaration of C function 'uLong adler32_combine64(uLong, uLong, off_t)'
> conflicts with
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1570: error:
> previous declaration 'uLong adler32_combine64(uLong, uLong, off64_t)' here
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1587: error:
> declaration of C function 'uLong crc32_combine64(uLong, uLong, off_t)'
> conflicts with
> /mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h:1571: error:
> previous declaration 'uLong crc32_combine64(uLong, uLong, off64_t)' here
> make[3]: *** [libpoppler_cpp_la-poppler-image.lo] Error 1
> make[3]: Leaving directory
> `/mnt/sdb8/sergei/AFSWD_debug/build/poppler-0.16.2/cpp'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
> `/mnt/sdb8/sergei/AFSWD_debug/build/poppler-0.16.2/cpp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/mnt/sdb8/sergei/AFSWD_debug/build/poppler-0.16.2'
> make: *** [all] Error 2
> "

How can my 'zlib.h' be broken if it's installed by standard 'make install' ? I
don't build manually, I don't change header files through tools unless I really
do - not the case with 'zlib.h'.

Please note that I'm using zlib-1.2.5 - downloaded directly from one of
sourceforge mirrors. The following:

"
sergei at amdam2:~/junk> diff /mnt/sdb8/sergei/AFSWD_debug/build/zlib-1.2.5/zlib.h
/mnt/sdb8/sergei/AFSWD_debug/install/zlib-1.2.5/include/zlib.h
sergei at amdam2:~/junk> ls -ltr
/mnt/sdb8/sergei/AFSWD_debug/build/zlib-1.2.5/zlib.h
-rw-r--r-- 1 qemu users 79564 2010-04-20 07:12
/mnt/sdb8/sergei/AFSWD_debug/build/zlib-1.2.5/zlib.h
"

shows that the installed (and attached here) 'zlib.h' is identical to the one
inside the tarball (the /mnt/sdb8/sergei/AFSWD_debug/build/zlib-1.2.5/zlib.h
file) and the file timestamp.

Please to download zlib-1.2.5 from sourceforge and compare 'zlib.h' with mine.

-- 
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