[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[patches] RTLD_SINGLE_THREAD_P build problem



Hi,

While compiling eglibc (svn snapshot) for ARM, I am getting following error.

dl-lookup.c: In function 'add_dependency':
dl-lookup.c:104: error: 'RTLD_SINGLE_THREAD_P' undeclared (first use
in this function)
dl-lookup.c:104: error: (Each undeclared identifier is reported only once
dl-lookup.c:104: error: for each function it appears in.)

According to the following email post, this issue is already resolved.
http://sources.redhat.com/ml/libc-ports/2006-10/msg00070.html

I have attached the Makefile ( derived from the script posted by Khem
Raj ) which I am using for building toolchain. It will be great if
anyone help.

- Archan

arp@arp:~/repos/workspace/embinux_toolchain$ make binutils gcc_stage1
linux_headers eglibc_headers gcc_stage2
=> all worked perfectly

arp@arp:~/repos/workspace/embinux_toolchain$ make eglibc
....................
....................
/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/tools/bin/arm-linux-gnuabi-gcc
dl-lookup.c -c -std=gnu99  -O2 -Wall -Winline -Wwrite-strings
-fmerge-all-constants -g -Wstrict-prototypes   -fexceptions
-fasynchronous-unwind-tables   -I../include
-I/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc/elf
-I/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc
-I../ports/sysdeps/arm/elf -I../ports/sysdeps/unix/sysv/linux/arm/nptl
-I../ports/sysdeps/unix/sysv/linux/arm
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread
-I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet
-I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../ports/sysdeps/unix/arm
-I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix
-I../sysdeps/posix -I../ports/sysdeps/arm/fpu
-I../ports/sysdeps/arm/nptl -I../ports/sysdeps/arm
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I../ports
-I.. -I../libio -I. -nostdinc -isystem
/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/tools/lib/gcc/arm-linux-gnuabi/4.1.2/include
-isystem /home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/tools/lib/gcc/arm-linux-gnuabi/4.1.2/include-fixed
-isystem /home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/sysroot/usr/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h       -o
/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc/elf/dl-lookup.o
-MD -MP -MF /home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc/elf/dl-lookup.o.dt
-MT /home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc/elf/dl-lookup.o
dl-lookup.c: In function 'add_dependency':
dl-lookup.c:104: error: 'RTLD_SINGLE_THREAD_P' undeclared (first use
in this function)
dl-lookup.c:104: error: (Each undeclared identifier is reported only once
dl-lookup.c:104: error: for each function it appears in.)
make[3]: *** [/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc/elf/dl-lookup.o]
Error 1
make[3]: Leaving directory
`/home/arp/repos/workspace/embinux_toolchain/src/eglibc-2.5/libc/elf'
make[2]: *** [elf/subdir_lib] Error 2
make[2]: Leaving directory
`/home/arp/repos/workspace/embinux_toolchain/src/eglibc-2.5/libc'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/home/arp/repos/workspace/embinux_toolchain/arm-linux-gnuabi/obj/eglibc'
make: *** [eglibc] Error 2

--
Archan Paul
http://archan.org

Attachment: Makefile
Description: Binary data