Here with:

$ svn update
At revision 397.

$ make
ctags ac_list.c actions.c add_unvers.c build.c checksum.c commit.c direnum.c est_ops.c export.c fsvs.c helper.c ignore.c info.c init.c pwcache.c racallback.c remote.c status.c sync.c update.c waa.c warnings.c actions.h add_unvers.h build.h checksum.h commit.h config.h direnum.h est_ops.h export.h global.h helper.h ignore.h info.h init.h interface.h pwcache.h racallback.h remote.h status.h sync.h update.h waa.h warnings.h
Duplicate entry in file direnum.c, line 117: fsvs_dirent
Second entry ignored
Duplicate entry in file direnum.c, line 118: dir__handle
Second entry ignored
Duplicate entry in file direnum.c, line 135: dir__enum
Second entry ignored
Duplicate entry in file direnum.c, line 152: dir__close
Second entry ignored
Duplicate entry in file direnum.c, line 164: dir__get_dir_size
Second entry ignored
Duplicate entry in files config.h and actions.h: void (Warning only)
Duplicate entry in file global.h, line 270: DEBUGP
Second entry ignored
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o fsvs.o fsvs.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o ac_list.o ac_list.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o actions.o actions.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o add_unvers.o add_unvers.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o build.o build.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o checksum.o checksum.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o commit.o commit.c
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o direnum.o direnum.c
direnum.c: In function ‘dir__get_dir_size’:
direnum.c:174: warning: label ‘ex’ defined but not used
cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64  -idirafter /usr/local/apr/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/pcre-6.7/include  -idirafter /usr/local/include  -idirafter /usr/include  -idirafter /openpkg/include  -idirafter /usr/local/apr/include/apr-0  -idirafter /usr/local/apr/include/apr-0/apr-0  -idirafter /usr/local/pcre-6.7/include/apr-0  -idirafter /usr/local/include/apr-0  -idirafter /usr/include/apr-0  -idirafter /openpkg/include/apr-0  -idirafter /usr/local/apr/include/apr-1  -idirafter /usr/local/apr/include/apr-0/apr-1  -idirafter /usr/local/pcre-6.7/include/apr-1  -idirafter /usr/local/include/apr-1  -idirafter /usr/include/apr-1  -idirafter /openpkg/include/apr-1 -Os -DFSVS_VERSION='"trunk:396"'  -c -o est_ops.o est_ops.c
est_ops.c: In function ‘ops__string_to_dev’:
est_ops.c:81: error: ‘__S_IFLNK’ undeclared (first use in this function)
est_ops.c:81: error: (Each undeclared identifier is reported only once
est_ops.c:81: error: for each function it appears in.)
est_ops.c:95: error: ‘__S_IFCHR’ undeclared (first use in this function)
est_ops.c:95: error: ‘__S_IFBLK’ undeclared (first use in this function)
est_ops.c:99: error: ‘__S_IFMT’ undeclared (first use in this function)
est_ops.c: In function ‘ops___stat_to_action’:
est_ops.c:220: warning: format ‘%Ld’ expects type ‘long long int’, but argument 5 has type ‘dev_t’
est_ops.c:220: warning: format ‘%Ld’ expects type ‘long long int’, but argument 6 has type ‘dev_t’
est_ops.c: In function ‘ops__load_1entry’:
est_ops.c:279: warning: format ‘%o’ expects type ‘unsigned int *’, but argument 3 has type ‘mode_t *’
est_ops.c:279: warning: format ‘%Ld’ expects type ‘long long int *’, but argument 11 has type ‘ino_t *’
est_ops.c:279: warning: format ‘%Ld’ expects type ‘long long int *’, but argument 12 has type ‘ino_t *’
est_ops.c: In function ‘ops__save_1entry’:
est_ops.c:354: warning: format ‘%Ld’ expects type ‘long long int’, but argument 11 has type ‘ino_t’
est_ops.c:354: warning: format ‘%Ld’ expects type ‘long long int’, but argument 12 has type ‘ino_t’
make: *** [est_ops.o] Error 1


Philipp Marek wrote, On 22/08/06 12:48:
On Tuesday 22 August 2006 15:33 Philipp Marek wrote:
  
I now tried for several hours to find the magic combination of preprocessor
defines, to get the functions lstat() and fstat() and the struct stat
automatically mapped to lstat64() and fstat64() and struct stat64.
I tried AC_SYS_LARGEFILE in configure.in and some combinations
of -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D__USE_FILE_OFFSET64
-D_LARGEFILE64_SOURCE=1 -D_LARGEFILE_SOURCE=1 but didn't get it.

I read /usr/include/features.h, /usr/include/sys/cdefs.h
and /usr/include/sys/stat.h but didn't get any wiser.

Does anybody know how to get the automatic mapping 32 -> 64bit functions?
    
Well, never mind. The correct way is using *only* -D_FILE_OFFSET_BITS=64 - and 
nothing else.

So the currently committed version has no longer lseek64() and similar, but 
switches depending on system type.

If someone gets problems with files >=2GB, please tell.

Ben, could you please try again with current trunk?
Thank you!


Regards,

Phil