bug-gnu-utils
[Top][All Lists]
Advanced

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

patch-2.5.4 compilation warnings (2)


From: Bruno Haible
Subject: patch-2.5.4 compilation warnings (2)
Date: Mon, 7 Oct 2002 17:28:03 +0200

When compiling patch-2.5.4 on FreeBSD with glibc 2.3 and "gcc -Wall", I get
warnings about missing declarations:

pch.c: In function `open_patch_file':
pch.c:118: warning: implicit declaration of function `ftello'
pch.c:142: warning: implicit declaration of function `fseeko'
util.c: In function `Fseek':
util.c:994: warning: implicit declaration of function `fseeko'

This is because config.h does not define _LARGEFILE_SOURCE. It defines
_FILE_OFFSET_BITS=64 but this is irrelevant (see glibc's <stdio.h> and
<features.h>). My fix is the following:

diff -r -c3 patch-2.5.4.bak/m4/largefile.m4 patch-2.5.4/m4/largefile.m4
*** patch-2.5.4.bak/m4/largefile.m4     Tue Aug 17 21:56:44 1999
--- patch-2.5.4/m4/largefile.m4 Sat Oct  5 23:01:50 2002
***************
*** 100,106 ****
         [Define to make fseeko etc. visible, on some hosts.],
         [case "$host_os" in
        # HP-UX 10.20 and later
!       hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
          ac_cv_sys_largefile_source=1 ;;
        esac])
       AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,
--- 100,106 ----
         [Define to make fseeko etc. visible, on some hosts.],
         [case "$host_os" in
        # HP-UX 10.20 and later
!       hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]* | freebsd*-gnu*)
          ac_cv_sys_largefile_source=1 ;;
        esac])
       AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES,

together with an update of config.guess and config.sub.

Bruno

______________________________________________________________________________
WEB.DE MyPage - Ultimatives Kommunikationstool! Ihre Message sofort
online! Domain aenderbar! http://www.das.ist.aber.ne.lustige.sache.ms/





reply via email to

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