On Sunday 20 August 2006 00:49 Benjamin M. wrote:
...
> cc -Wall -funsigned-char -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64
> -D__USE_FILE_OFFSET64 -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/include/apr-0 -idirafter
> /usr/include/apr-0 -idirafter /openpkg/include/apr-0 -Os
> -DFSVS_VERSION='"trunk:389"' -c -o commit.o commit.c
> In file included from commit.c:41:
> helper.h:46: warning: 'struct stat64' declared inside parameter list
> helper.h:46: warning: its scope is only this definition or declaration,
> which is probably not what you want
> commit.c: In function 'ci__directory':
> commit.c:266: error: storage size of 'dummy_stat64' isn't known
> commit.c:341: warning: implicit declaration of function 'lstat64'
> commit.c:266: warning: unused variable 'dummy_stat64'
> commit.c: In function 'ci__work':
> commit.c:489: error: storage size of 'st' isn't known
> commit.c:536: warning: implicit declaration of function 'fstat64'
> commit.c:489: warning: unused variable 'st'
> make: *** [commit.o] Error 1
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?


Regards,

Phil

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to