Thread: [ooc-compiler] configure error
Brought to you by:
mva
|
From: Patrick F. <fi...@gm...> - 2008-05-26 14:59:14
|
Morning everyone, I'm trying to get 32-2.1.11 configured for my new SuSe 10.3 box and get the following error. I'm using gcc 4.2.1 and kernel 2.6.22. configure:5323: error: cannot compute sizeof (long int) See `config.log' for more details. |
|
From: Tim T. <ra...@ed...> - 2008-05-26 20:00:47
|
Hello!
> Morning everyone,
>
> I'm trying to get 32-2.1.11 configured for my new SuSe 10.3 box and get
> the following error.
>
> I'm using gcc 4.2.1 and kernel 2.6.22. <http://2.6.22.>
>
> configure:5323: error: cannot compute sizeof (long int)
> See `config.log' for more details.
So, what do you see in config.log? There should be an entry showing how
this test was executed (normally small C sources get generated, compiled
and executed).
--
Gruß...
Tim
|
|
From: Tim T. <ra...@ed...> - 2008-05-26 21:44:49
|
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
|
|
From: Patrick F. <fi...@gm...> - 2008-05-27 02:10:24
Attachments:
config.log
|
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
>
>
|
|
From: Stewart G. <sgr...@us...> - 2008-05-27 05:05:23
|
Hi Patrick,
The critical line is this one:
./conftest: error while loading shared libraries: libgc.so.1: cannot
open shared object file: No such file or directory
Its failed running the program that check sizeof(long int)
BUT
Its failing because the GC is not installed properly and the loader is
not finding the required components.
Did you run "ldconfig" after installing the libgc? Where is libgc.so
installed?
Cheers,
Stewart
Patrick Fitzpatrick wrote:
> 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...
> <mailto: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... <mailto: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...> <mailto: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
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ooc-compiler mailing list
> ooc...@li...
> https://lists.sourceforge.net/lists/listinfo/ooc-compiler
|
|
From: Patrick F. <fi...@gm...> - 2008-05-28 05:25:35
|
Stewart, Tim and all,
Thanks for all your assistance on this. I won't be able to try this out
until tomorrow at the earliest.
Yes, I did forget to run ldconfig. DOH!
On Mon, May 26, 2008 at 10:05 PM, Stewart Greenhill <sgr...@us...>
wrote:
> Hi Patrick,
>
> The critical line is this one:
>
> ./conftest: error while loading shared libraries: libgc.so.1: cannot open
> shared object file: No such file or directory
>
> Its failed running the program that check sizeof(long int)
>
> BUT
>
> Its failing because the GC is not installed properly and the loader is not
> finding the required components.
>
> Did you run "ldconfig" after installing the libgc? Where is libgc.so
> installed?
>
> Cheers,
> Stewart
>
> Patrick Fitzpatrick wrote:
>
>> 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... <mailto:
>> 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... <mailto: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...> <mailto: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
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ooc-compiler mailing list
>> ooc...@li...
>> https://lists.sourceforge.net/lists/listinfo/ooc-compiler
>>
>
|
|
From: Patrick F. <fi...@gm...> - 2008-05-29 03:27:04
|
Tim, Stewart and gang,
That was it, I didn't run ldconfig.
Thanks,
Fitz
On Tue, May 27, 2008 at 10:25 PM, Patrick Fitzpatrick <fi...@gm...>
wrote:
> Stewart, Tim and all,
>
> Thanks for all your assistance on this. I won't be able to try this out
> until tomorrow at the earliest.
>
> Yes, I did forget to run ldconfig. DOH!
>
>
>
> On Mon, May 26, 2008 at 10:05 PM, Stewart Greenhill <
> sgr...@us...> wrote:
>
>> Hi Patrick,
>>
>> The critical line is this one:
>>
>> ./conftest: error while loading shared libraries: libgc.so.1: cannot open
>> shared object file: No such file or directory
>>
>> Its failed running the program that check sizeof(long int)
>>
>> BUT
>>
>> Its failing because the GC is not installed properly and the loader is not
>> finding the required components.
>>
>> Did you run "ldconfig" after installing the libgc? Where is libgc.so
>> installed?
>>
>> Cheers,
>> Stewart
>>
>> Patrick Fitzpatrick wrote:
>>
>>> 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...<mailto:
>>> 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... <mailto:
>>> 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...> <mailto: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
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft
>>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> ooc-compiler mailing list
>>> ooc...@li...
>>> https://lists.sourceforge.net/lists/listinfo/ooc-compiler
>>>
>>
>
|