bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_FUNC_FSEEKO fails on HP-UX/PA-RISC


From: Bob Friesenhahn
Subject: AC_FUNC_FSEEKO fails on HP-UX/PA-RISC
Date: Fri, 6 Jul 2007 15:33:51 -0500 (CDT)

On HP-UX/PA-RISC machines, it is necessary to define _LARGEFILE_SOURCE in order to expose the prototypes for fseeko() and lseeko(). For some reason, AC_FUNC_FSEEKO decides that this is not necessary.

The compiler produces these warnings during compilation of the test:

cc: "conftest.c", line 13: warning 714: Function "fseeko" called with no 
prototype or definition in scope.
cc: "conftest.c", line 15: warning 508: Statement can never be reached.

It seems that some prerequsite must be missing since defining _LARGEFILE_SOURCE to 1 makes warnings go away when compiling normal application code.

Bob
======================================
Bob Friesenhahn
address@hidden, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]