I think there is an error in the configure script:
you use 'off64_t' instead of '__off64_t'.

I work in Linux Red Hat 9.0:

with the original file gcc3.2.2 don't want to compile my prg, because it find an error in apr.h at line 261: "typedef __off64_t apr_off_t;"

with the new file (__off64_t) it's ok.

excuse me, if this is my error.

bye
Luca

--- ./configure_old     2004-10-20 16:52:19.000000000 +0200
+++ ./configure 2004-10-20 17:06:37.000000000 +0200
@@ -13301,9 +13301,9 @@
 {
     int fd, ret = 0;
     struct stat64 st;
-    off64_t off = 4242;
+    __off64_t off = 4242;
 
-    if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
+    if (sizeof(__off64_t) != 8 || sizeof(off_t) != 4)
        exit(1);
     if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)) < 0)
        exit(2);
@@ -24762,7 +24762,7 @@
 if test "${ac_cv_sizeof_off_t}${apr_cv_use_lfs64}" = "4yes"; then
     # LFS is go!
     off_t_fmt='#define APR_OFF_T_FMT APR_INT64_T_FMT'
-    off_t_value='off64_t'
+    off_t_value='__off64_t'
     off_t_strfn='apr_strtoi64'
 elif test "${ac_cv_sizeof_off_t}x${ac_cv_sizeof_long}" = "4x4"; then
     # Special case: off_t may change size with _FILE_OFFSET_BITS

Reply via email to