[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation faliure
From: |
Shridhar Daithankar |
Subject: |
Compilation faliure |
Date: |
Tue, 16 Apr 2002 14:28:53 +0530 |
Hello
I downloaded cvs copy of glibc sources and was trying to build on my
Mandrake8.1 machine. I did not downloaded linuxthreads package as I didn't
meant it for installation(at least as of now).
Following is directory structure I create and compiled.
--glibc-cvs
---libc
---build
I just did a ../configure --disable-sanity-checks from build, to keep from
threads warning. After runing make I get following error.
gcc malloc.c -c -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -
DMORECORE_CLEARS=2 -I../include -I. -I/mnt1/shridhar/Software/glibc-
cvs/build/malloc -I.. -I../libio -I/mnt1/shridhar/Software/glibc-cvs/build -
I../sysdeps/i386/elf -I../sysdeps/unix/sysv/linux/i386/i686 -
I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -
I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -
I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -
I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -
I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -
I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -
I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -
I../sysdeps/generic/elf -I../sysdeps/generic -include ../include/libc-
symbols.h -o /mnt1/shridhar/Software/glibc-cvs/build/malloc/malloc.o
In file included from malloc.c:2611:
hooks.c: In function `__malloc_get_state':
hooks.c:535: `max_total_mem' undeclared (first use in this function)
hooks.c:535: (Each undeclared identifier is reported only once
hooks.c:535: for each function it appears in.)
make[2]: *** [/mnt1/shridhar/Software/glibc-cvs/build/malloc/malloc.o] Error 1
make[2]: Leaving directory `/mnt1/shridhar/Software/glibc-cvs/libc/malloc'
make[1]: *** [malloc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt1/shridhar/Software/glibc-cvs/libc'
make: *** [all] Error 2
In libc/malloc/hooks.c:535, I find that it's a #ifdef NO_THREADS. Now I don't
see a reason why this should abort compilation as there is an else handler and
everything else looks fine to. Or is it that global symbol max_total_mem is
missing.
Can anybody help me to get this thing compiled? I don't mind downloading
linuxthreads. But is it OK if I download an older tarball for a cvs copy of
glibc? My two attempts to sync linuxthreads cvs resulted in time out. I will
attempt later though..
Regards
Shridhar
- Compilation faliure,
Shridhar Daithankar <=