[Top][All Lists]
[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: |
16 Nov 2000 11:16:26 +0100 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) |
My patch was buggy, sorry.
Index: ChangeLog
from Akim Demaille <address@hidden>
* acspecific.m4 (AC_SYS_LARGEFILE): _AC_SYS_LARGEFILE_SOURCE no
longer exist.
2000-11-16 Akim Demaille <address@hidden>
Index: acspecific.m4
===================================================================
RCS file: /cvs/autoconf/acspecific.m4,v
retrieving revision 1.314
diff -u -u -r1.314 acspecific.m4
--- acspecific.m4 2000/11/16 08:52:54 1.314
+++ acspecific.m4 2000/11/16 10:25:53
@@ -673,14 +673,14 @@
while :; do
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
- AC_COMPILE_IFELSE([_AC_SYS_LARGEFILE_SOURCE()],
- [break])
+ AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
+ AC_COMPILE_IFELSE([], [break])
CC="$CC -n32"
- AC_COMPILE_IFELSE([_AC_SYS_LARGEFILE_SOURCE()],
- [ac_cv_sys_largefile_CC=' -n32'; break])
+ AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
break
done
CC=$ac_save_CC
+ rm -f conftest.$ac_ext
fi])
if test "$ac_cv_sys_largefile_CC" != no; then
CC=$CC$ac_cv_sys_largefile_CC
----------------------------------------------------------------------
/tmp % cat configure.in nostromo 11:14
AC_INIT
AC_FUNC_FSEEKO
/tmp % ace nostromo 11:14
/tmp % ./configure nostromo 11:14
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... 1
checking for fseeko... cayes
/tmp % cat config.log nostromo 11:14
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:1343: gcc -c -g -O2 conftest.c >&5
configure: In function `main':
configure:1336: `fseeko' undeclared (first use in this function)
configure:1336: (Each undeclared identifier is reported only once
configure:1336: for each function it appears in.)
configure: failed program was:
#line 1331 "configure"
#include "confdefs.h"
#include <stdio.h>
int
main ()
{
return !fseeko;
;
return 0;
}
configure:1364: gcc -c -g -O2 conftest.c >&5
configure:1374: result: 1
configure:1388: checking for fseeko
configure:1406: gcc -o conftest -g -O2 conftest.c >&5
configure:1415: result: yes
configure: exit 0
----------------------------------------------------------------------
/tmp % ace nostromo 11:14
/tmp % ./configure nostromo 11:14
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 special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
/tmp % cat config.log nostromo 11:14
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:868: checking for gcc
configure:890: result: gcc
configure:1111: checking whether the C compiler works
configure:1126: gcc -o conftest conftest.c >&5
configure:1130: ./conftest
configure:1142: result: yes
configure:1153: checking whether we are cross compiling
configure:1155: result: no
configure:1158: checking whether we are using the GNU C compiler
configure:1179: gcc -c conftest.c >&5
configure:1190: result: yes
configure:1193: checking for object suffix
configure:1210: gcc -c conftest.c >&5
configure:1223: result: o
configure:1229: checking for executable suffix
configure:1250: gcc -o conftest conftest.c >&5
configure:1269: result:
configure:1278: checking whether gcc accepts -g
configure:1296: gcc -c -g conftest.c >&5
configure:1305: result: yes
configure:1335: checking for special C compiler options needed for large files
configure:1382: result: no
configure:1388: checking for _FILE_OFFSET_BITS value needed for large files
configure:1409: gcc -c -g -O2 conftest.c >&5
configure:1398: size of array `a' is negative
configure: failed program was:
#line 1396 "configure"
#include "confdefs.h"
#include <sys/types.h>
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
int
main ()
{
;
return 0;
}
configure:1431: gcc -c -g -O2 conftest.c >&5
configure:1441: result: 64
configure:1451: checking for _LARGE_FILES value needed for large files
configure:1472: gcc -c -g -O2 conftest.c >&5
configure:1504: result: no
configure: exit 0