Re: tests/rwblob_EPT_bilevel.sh on HP-UX/PA-RISC

Albert Chin <[email protected]>
Newsgroups gmane.comp.video.image-magick.devel
Message-ID <[email protected]>
On Fri, Feb 09, 2007 at 05:36:58PM -0600, [email protected] wrote:
> > Have you tested if this works?
> 
> HAVE_FSEEKO is defined by the AC_FUNC_FSEEKO automake macro.  We
> trust it won't be defined if the macro detects it is not defined
> properly in the system headers and included in the C library.

You need HAVE_FSEEKO _and_ -D_LARGEFILE_SOURCE. AC_FUNC_FSEEKO only
defines HAVE_FSEEKO, though, during testing in ./configure, it sets
-D_LARGEFILE_SOURCE to expose fseeko/ftello. But, it doesn't set
_LARGEFILE_SOURCE.

The problem is that AC_FUNC_FSEEKO is buggy with autoconf-2.61. A fix
was put in after 2.61 and is available in CVS. For info on the bug,
see Debian bug id:
  http://bugs.debian.org/401377
and the following autoconf changelog entry:
  2006-12-04  Paul Eggert  <[email protected]>

          * lib/autoconf/functions.m4 (AC_FUNC_FSEEKO): Check that fseeko
          can be assigned to a function pointer.  Problem reported by
          Peter Palfrader in <http://bugs.debian.org/401377>.  Based on
          part of a patch by Ralf Wildenhues in that same bug report.

-- 
albert chin ([email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.