autoconf-patches
[Top][All Lists]
Advanced

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

Re: _XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles


From: Akim Demaille
Subject: Re: _XOPEN_SOURCE=500 breaks at least OSF1 V5.0 [Re: largefiles
Date: 15 Nov 2000 16:29:02 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)

>>>>> "Paul" == Paul Eggert <address@hidden> writes:

Paul> I'm not sure what "most up to date" is, but if it's using glibc
Paul> 2.1.3 then the behavior is what's expected.  glibc 2.1.3's
Paul> fseeko declaration is busted, so "configure" is correctly
Paul> avoiding fseeko.  It should be fixed in glibc 2.2.

I run 2.2.

/tmp % cat configure.in                                          nostromo 16:25
AC_INIT
AC_FUNC_FSEEKO
/tmp % ace                                                       nostromo 16:25
/tmp % ./configure                                               nostromo 16:25
checking for gcc... gcc
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking whether we are using the GNU C compiler... yes
checking for object suffix... o
checking for executable suffix... 
checking whether gcc accepts -g... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... no
/tmp % grep -i version =glibcbug                                 nostromo 16:25
VERSION="2.2"
CCVERSION='2.95.2 20000220 (Debian GNU/Linux)'
VERSIONING="yes"
  KHDRS=`(echo '#include <linux/version.h>'
>Release:       libc-${VERSION}
`[ -n "$CCVERSION" ] && echo Compiler version: $CCVERSION`
`[ -n "$VERSIONING" ] && echo Symbol versioning: $VERSIONING`


BTW, I find it extremely pleasant to have data on the machine type in
config.log, and I regret we don't have more, such as the libc version
when we can compute it etc.  If some people know things that the
prologue of config.log below doesn't show but which could be added, I
think it would help a lot!

----------------------------------------------------------------------

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by  2.49b, executed with
 > ./configure 

on nostromo:

uname -m = i686
uname -r = 2.2.17
uname -s = Linux
uname -v = #1 Sat Sep 9 12:42:22 EST 2000

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = i686
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 
configure:863: checking for gcc
configure:885: result: gcc
configure:1106: checking whether the C compiler works
configure:1121: gcc -o conftest    conftest.c  >&5
configure:1125: ./conftest
configure:1137: result: yes
configure:1148: checking whether we are cross compiling
configure:1150: result: no
configure:1153: checking whether we are using the GNU C compiler
configure:1174: gcc -c   conftest.c >&5
configure:1185: result: yes
configure:1188: checking for object suffix
configure:1205: gcc -c   conftest.c >&5
configure:1218: result: o
configure:1224: checking for executable suffix
configure:1245: gcc -o conftest    conftest.c  >&5
configure:1264: result: 
configure:1273: checking whether gcc accepts -g
configure:1291: gcc -c -g  conftest.c >&5
configure:1300: result: yes
configure:1323: checking for _LARGEFILE_SOURCE value needed for large files
configure:1345: gcc -c -g -O2  conftest.c >&5
configure:1334: size of array `a' is negative
configure: In function `main':
configure:1338: `fseeko' undeclared (first use in this function)
configure:1338: (Each undeclared identifier is reported only once
configure:1338: for each function it appears in.)
configure: failed program was:
#line 1331 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <sys/types.h>
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
int
main ()
{
return !fseeko;
  ;
  return 0;
}
configure:1368: gcc -c -g -O2  conftest.c >&5
configure:1357: size of array `a' is negative
configure: failed program was:
#line 1353 "configure"
#include "confdefs.h"
#define _LARGEFILE_SOURCE 1
#include <stdio.h>
#include <sys/types.h>
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
int
main ()
{
return !fseeko;
  ;
  return 0;
}
configure:1378: result: no
configure:1392: checking for fseeko
configure:1410: gcc -o conftest -g -O2   conftest.c  >&5
configure: In function `main':
configure:1403: `fseeko' undeclared (first use in this function)
configure:1403: (Each undeclared identifier is reported only once
configure:1403: for each function it appears in.)
configure:1403: `fseeko' used prior to declaration
configure: failed program was:
#line 1398 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return fseeko && fseeko (stdin, 0, 0);
  ;
  return 0;
}
configure:1419: result: no
configure: exit 0



reply via email to

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