Loading ...
Sorry, an error occurred while loading the content.

18608Re: 6.0w configure failure ...

Expand Messages
  • Bram Moolenaar
    Mar 2, 2001
    • 0 Attachment
      Ron Aaron wrote:

      > Bram Moolenaar <Bram@...> writes:
      > >Ron Aaron wrote:
      > >
      > >> The failure is that it seems to be unable to determine the size of an int (!):
      > >>
      > >> configure:5704: checking size of int
      > >> configure:5723: gcc -o conftest -g -O2 -Wall -I/usr/local/include -L/usr/local/lib conftest.c -lncurses -lelf -liconv -lgpm 1>&5
      > >> configure:5715: warning: return-type defaults to `int'
      > >> configure: failed program was:
      > >> #line 5712 "configure"
      > >> #include "confdefs.h"
      > >> #include <stdio.h>
      > >> main()
      > >> {
      > >> FILE *f=fopen("conftestval", "w");
      > >> if (!f) exit(1);
      > >> fprintf(f, "%d\n", (int)sizeof(int));
      > >> exit(0);
      > >> }
      > >>
      >
      > >The problem is probably that linking failed. Strange that there is no error
      > >message. Check the other lines in the config.log around this, I suspect other
      > >tests that compile and link a program also failed.
      >
      > OK, I looked into it more, and still haven't a clue.
      >
      > I manually went into auto/config.h and changed SIZEOF_INT to 4, and everything
      > compiled and works fine. :-<
      >
      > I compared the config.log with one from a machine without the problem, and
      > there was nothing obvious.

      It appears that only running the test program failed. Otherwise there would
      have been error messages.

      Perhaps this fopen() failed:

      FILE *f=fopen("conftestval", "w");

      Could happen when the file already exists and isn't writable.

      --
      Just remember...if the world didn't suck, we'd all fall off.

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      ((( Creator of Vim - http://www.vim.org -- ftp://ftp.vim.org/pub/vim )))
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    • Show all 8 messages in this topic