Re: [ooc-compiler] configure error
Brought to you by:
mva
|
From: Patrick F. <fi...@gm...> - 2008-05-27 02:10:24
|
This was just the part that is failing. I've attached the complete file.
This is from the configure step, I haven't gotten to the build yet.
On Mon, May 26, 2008 at 2:44 PM, Tim Teulings <ra...@ed...> wrote:
> Hello!
>
> [readding OOC mailing list]
>
> Are you sure that this is the complete output? For example one of my
> configure tests creates the following output. In this case you can also see,
> that the conigure script was not able to build my test program (windows.h
> does not normally exists under Linux). In other cases it should dump the
> return code of the compiled executable. But I cannot see this either in your
> code. I also see no obvious reason why this should build but fail on
> runtime...
>
> Here some more hints:
> * If it is a build error, post it.
> * Please check that you have write access to the current directory.
> * If this is not a problem (very likely) copy the source of the test to
> some file like "testcase.c", compile it manually (gcc testcase.c -o
> testcase) and try to find out why it fails by adding something like
> println("1\n") and similar before every "return 1".
>
> configure:15437: checking for mbsrtowcs
> configure:15460: gcc -o conftest -g -O2 conftest.c >&5
> conftest.c:31:21: error: windows.h: No such file or directory
> conftest.c: In function 'main':
> conftest.c:35: error: 'mbsrtowcs' undeclared (first use in this function)
> conftest.c:35: error: (Each undeclared identifier is reported only once
> conftest.c:35: error: for each function it appears in.)
> conftest.c:35: error: 'NULL' undeclared (first use in this function)
> configure:15466: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> | #define PACKAGE_NAME "illumination"
> | #define PACKAGE_TARNAME "illumination"
> | #define PACKAGE_VERSION "0.1"
> | #define PACKAGE_STRING "illumination 0.1"
> | #define PACKAGE_BUGREPORT "ti...@te..."
> | #define _GNU_SOURCE 1
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define HAVE_UNISTD_H 1
> | #define HAVE_LIBGEN_H 1
> | #define HAVE_PWD_H 1
> | #define HAVE_SYS_TIME_H 1
> | #define HAVE_SELECT 1
> | #define HAVE_GETPID 1
> | #define HAVE_GETTIMEOFDAY 1
> | #define HAVE_GMTIME_R 1
> | #define HAVE_LOCALTIME_R 1
> | #define HAVE_ASCTIME_R 1
> | /* end confdefs.h. */
> | #include <windows.h>
> | int
> | main ()
> | {
> | return mbsrtowcs!=NULL;
> | ;
> | return 0;
> | }
> configure:15483: result: no
>
>
> Here's that whole section.
>>
>> ===================================================================
>> | /* confdefs.h. */
>> | #define PACKAGE_NAME "OOC"
>> | #define PACKAGE_TARNAME "ooc"
>> | #define PACKAGE_VERSION "2.1.11"
>> | #define PACKAGE_STRING "OOC 2.1.11"
>> | #define PACKAGE_BUGREPORT "mv...@us... <mailto:mv...@us...>"
>>
>> | #define HAVE_LIBDL 1
>> | #define HAVE_LIBGC 1
>> | #define HAVE_LIBRT 1
>> | #define HAVE_LIBM 1
>> | #define HAVE_SYS_TYPES_H 1
>> | #define HAVE_SYS_STAT_H 1
>> | #define HAVE_STDLIB_H 1
>> | #define HAVE_STRING_H 1
>> | #define HAVE_MEMORY_H 1
>> | #define HAVE_STRINGS_H 1
>> | #define HAVE_INTTYPES_H 1
>> | #define HAVE_STDINT_H 1
>> | #define HAVE_UNISTD_H 1
>> | #define HAVE_SYS_TIME_H 1
>> | #define HAVE_UNISTD_H 1
>> | #define HAVE_PWD_H 1
>> | #define HAVE_UTIME_H 1
>> | #define HAVE_STDINT_H 1
>> | #define HAVE_INTTYPES_H 1
>> | #define HAVE_GC_GC_H 1
>> | #define TIME_WITH_SYS_TIME 1
>> | /* end confdefs.h. */
>> | #include <stdio.h>
>> | #ifdef HAVE_SYS_TYPES_H
>> | # include <sys/types.h>
>> | #endif
>> | #ifdef HAVE_SYS_STAT_H
>> | # include <sys/stat.h>
>> | #endif
>> | #ifdef STDC_HEADERS
>> | # include <stdlib.h>
>> | # include <stddef.h>
>> | #else
>> | # ifdef HAVE_STDLIB_H
>> | # include <stdlib.h>
>> | # endif
>> | #endif
>> | #ifdef HAVE_STRING_H
>> | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
>> | # include <memory.h>
>> | # endif
>> | # include <string.h>
>> | #endif
>> | #ifdef HAVE_STRINGS_H
>> | # include <strings.h>
>> | #endif
>> | #ifdef HAVE_INTTYPES_H
>> | # include <inttypes.h>
>> | #endif
>> | #ifdef HAVE_STDINT_H
>> | # include <stdint.h>
>> | #endif
>> | #ifdef HAVE_UNISTD_H
>> | # include <unistd.h>
>> | #endif
>> | typedef long int ac__type_sizeof_;
>> |
>> | static long int longval () { return (long int) (sizeof
>> (ac__type_sizeof_)); }
>> | static unsigned long int ulongval () { return (long int) (sizeof
>> (ac__type_sizeof_)); }
>> | #include <stdio.h>
>> | #include <stdlib.h>
>> | int
>> | main ()
>> | {
>> |
>> | FILE *f = fopen ("conftest.val", "w");
>> | if (! f)
>> | return 1;
>> | if (((long int) (sizeof (ac__type_sizeof_))) < 0)
>> | {
>> | long int i = longval ();
>> | if (i != ((long int) (sizeof (ac__type_sizeof_))))
>> | return 1;
>> | fprintf (f, "%ld\n", i);
>> | }
>> | else
>> | {
>> | unsigned long int i = ulongval ();
>> | if (i != ((long int) (sizeof (ac__type_sizeof_))))
>> | return 1;
>> | fprintf (f, "%lu\n", i);
>> | }
>> | return ferror (f) || fclose (f) != 0;
>> |
>> | ;
>> | return 0;
>> | }
>> configure:5323: error: cannot compute sizeof (long int)
>> See `config.log' for more details.
>>
>
> --
> Gruß...
> Tim
>
>
|