Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: fsvs & MacOS 10.4

fsvs
Discussion topic

Back to topic list

Re: fsvs & MacOS 10.4

Author pmarek
Full name P.Marek
Date 2006-08-22 06:33:10 PDT
Message 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)!

« Previous message in topic | 8 of 29 | Next message in topic »

Messages

Show all messages in topic

                                                         Re: fsvs &amp; openbsd Julien TOUCHE <julien dot touche at lycos dot com> Julien TOUCHE <julien dot touche at lycos dot com> 2006-11-17 08:33:59 PST
                                                             Re: fsvs &amp; openbsd pmarek P.Marek 2006-11-17 09:00:16 PST
                                                             Re: fsvs &amp; openbsd pmarek P.Marek 2006-11-17 10:50:23 PST
                                                                 Re: fsvs &amp; openbsd Julien TOUCHE <julien dot touche at lycos dot com> Julien TOUCHE <julien dot touche at lycos dot com> 2006-11-18 00:25:28 PST
Page: of 2 « Previous | Next »
Messages per page: