On 8 June 2010 23:32, Tony Mechelynck wrote: > On 06/06/10 19:42, björn wrote: > >> On 6 June 2010 18:23, Tony Mechelynck wrote: >>> >>> On 06/06/10 15:12, björn wrote: >>>> >>>> configure:11492: checking size of off_t >>>> configure:11497: gcc -o conftest -O2 -fno-strength-reduce -Wall >>>> -D_FORTIFY_SOURCE=1 -L. -rdynamic -Wl,-export-dynamic -Wl,-E >>>> -Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE -L. >>>> -rdynamic -Wl,-export-dynamic -Wl,-E >>>> -Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE -L. >>>> -rdynamic -Wl,-export-dynamic -Wl,-E >>>> -Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE -L. >>>> -rdynamic -Wl,-export-dynamic -Wl,-E >>>> -Wl,-rpath,/usr/lib/perl5/5.10.0/i586-linux-thread-multi/CORE >>>> -L/usr/local/lib conftest.c -lm -lncurses -lnsl -lacl -lattr -lgpm>&5 >>>> configure:11497: $? = 0 >>>> configure:11497: ./conftest >>>> configure:11497: $? = 0 >>>> configure:11512: result: 8 >> >> My config.log looks like this: >> >> configure:11865: checking for off_t >> configure:11895: gcc -c -O2 -fno-strength-reduce -Wall -DMACOS_X_UNIX >> -no-cpp-precomp conftest.c>&5 >> configure:11901: $? = 0 >> configure:11916: result: yes > > That's some 500 lines lower. Nothing near line 11492 of configure, just > after it defines SIZEOF_INT ? Maybe you should rerun "make autoconf", or > make sure you have the right src/auto/configure ? Oh, and since May 15 > 15:04:53 2010 +0200 both Vim 7.2 and Vim 7.3a use autoconv 2.65 rather than > 2.63, there was a changeset about that in both branches on the Mercurial > repo. > > See also the comment at lines 1614-1632 of src/Makefile.
The line discrepancy is due to the fact that I'm using the MacVim configure.in which adds a few lines. However, you seem to be onto something about the use of autoconf 2.65. I just checked and the version of autoconf that comes with the OS X 10.6 dev tools is 2.61. Now, I don't quite get the comment near line 1614: I have to run autoconf manually in order to produce src/configure (since I change configure.in for MacVim)...I'm guessing this comment applies to people who do not modify configure.in? At any rate, I checked out Vim without the MacVim modifications, made sure _not_ to run (my outdated) autoconf, and now the SIZEOF_* get defined properly in config.h. I assume the problem is that I'm using an old autoconf. >> (2) On Mac OS X 10.6 sizeof(long) == sizeof(off_t) so the test in >> vim.h would never do anything even if (1) was ok. A new test is >> needed as to when LONG_LONG_OFF_T should be defined in vim.h. I guess >> this will need to be Mac OS X specific, but I don't know for sure >> hence my first post asking for advice. > > Do you mean on Mac Os X 10.6/64 a "long int" is shorter than a "long" ? No, "long int" is the same as "long". I'm only saying that my compiler seems to insist that in order to print off_t values you need to use "%lld", not "%ld". Björn -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
