|
|

楼主 |
发表于 2004-5-23 23:13:00
|
显示全部楼层
怎么没人帮忙呀?
我看了config.log文件,
具体细节如下:
configure:3214: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:3217: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:3448:28: ac_nonexistent.h: No such file or directory
configure:3454: $? = 1
configure: failed program was:
| #line 3439 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3492: result: gcc -E
configure:3517: gcc -E conftest.c
configure:3523: $? = 0
configure:3555: gcc -E conftest.c
configure:3555:28: ac_nonexistent.h: No such file or directory
configure:3561: $? = 1
configure: failed program was:
| #line 3546 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
collect2: ld returned 1 exit status
configure:5860: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 5828 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_DWARF2_UNWIND_INFO 1
| #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 1
| /* end confdefs.h. */
| #include <ctype.h>
| #if ((' ' & 0x0FF) == 0x020)
| # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
| # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
| #else
| # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') || ('j' <= (c) && (c) <= 'r') || ('s' <= (c) && (c) <= 'z'))
| # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
| #endif
|
| #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
| int
| main ()
| {
| int i;
| for (i = 0; i < 256; i++)
| if (XOR (islower (i), ISLOWER (i))
| || toupper (i) != TOUPPER (i))
| exit(2);
| exit (0);
| }
configure:5880: result: no
configure:5904: checking for sys/types.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for sys/stat.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for stdlib.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for string.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for memory.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for strings.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for inttypes.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for stdint.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5904: checking for unistd.h
configure:5921: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5924: $? = 0
configure:5927: test -s conftest.o
configure:5930: $? = 0
configure:5941: result: yes
configure:5953: checking for long double
configure:5978: gcc -B/tools/bin/ -c -g -O2 conftest.c >&5
configure:5981: $? = 0
configure:5984: test -s conftest.o
configure:5987: $? = 0
configure:5998: result: yes
configure:6001: checking size of long double
configure:6276: gcc -B/tools/bin/ -o conftest -g -O2 conftest.c >&5
/usr/bin/ld: cannot find /tools/lib/libc.so.6
collect2: ld returned 1 exit status
configure:6279: $? = 1
configure: program exited with status 1
configure: failed program was:
| #line 6236 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| #define USE_REGPARMS 1
| #define ASM_GLOBAL_DIRECTIVE .globl
| #define ASM_TYPE_DIRECTIVE_PREFIX @
| #define DO_VERSIONING 1
| #define HAVE_ASM_PREVIOUS_DIRECTIVE 1
| #define HAVE_PROTECTED 1
| #define HAVE_HIDDEN 1
| #define HAVE_Z_COMBRELOC 1
| #define NO_UNDERSCORES 1
| #define HAVE_ASM_WEAK_DIRECTIVE 1
| #define HAVE_DWARF2_UNWIND_INFO 1
| #define HAVE_DWARF2_UNWIND_INFO_STATIC 1
| #define HAVE_BUILTIN_EXPECT 1
| #define HAVE_SUBTRACT_LOCAL_LABELS 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
| /* end confdefs.h. */
| #include <stdio.h>
| #if HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #if HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #if STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # if HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #if HAVE_STRING_H
| # if !STDC_HEADERS && HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #if HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #if HAVE_INTTYPES_H
| # include <inttypes.h>
| #else
| # if HAVE_STDINT_H
| # include <stdint.h>
| # endif
| #endif
| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| long longval () { return (long) (sizeof (long double)); }
| unsigned long ulongval () { return (long) (sizeof (long double)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| exit (1);
| if (((long) (sizeof (long double))) < 0)
| {
| long i = longval ();
| if (i != ((long) (sizeof (long double))))
| exit (1);
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long i = ulongval ();
| if (i != ((long) (sizeof (long double))))
| exit (1);
| fprintf (f, "%lu\n", i);
| }
| exit (ferror (f) || fclose (f) != 0);
|
| ;
| return 0;
| }
configure:6294: error: cannot compute sizeof (long double), 77
See `config.log' for more details. |
|