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

Some error about Macro defines



hi,all,
	I am a newbie here. :)
	Now I am trying to compile glibc 2.3.1 and nptl. I have tried nptl from 0.4 to 0.10. But I sill can not compile it.

	My linux box is as below:
	redhat linux 8.0
	kernel-2.5.50
	gcc-3.2-10
	binutils-2.13.90.0.10-2
	glibc-2.3.1 and glibc-linuxthread2.3

When I compile the glibc, the error message is that:
	CLONE_CHILD_CLEARTID undefined
	CLONE_CHILD_SETTID undefined
I know this two macro is alread defined in the linux kernl include/linux/sched.h. So I just check the glibc2.3.1's sched.h. And add these macro manually to the glibc-2.3.1/sysdeps/unix/sysv/linux/bits/sched.h. After that, I can continue compiling.
Then I occure another problem. That is:

gcc -nostdlib -nostartfiles -o iconvconfig  -Wl,-dynamic-linker=/home/wc/nptl/lib/ld-linux.so.2   -Wl,-z,combreloc ../csu/crt1.o ../csu/crti.o `gcc --print-file-name=crtbegin.o` iconvconfig.o strtab.o xmalloc.o  -Wl,-rpath-link=..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../nptl ../libc.so.6 ../libc_nonshared.a -lgcc `gcc --print-file-name=crtend.o` ../csu/crtn.o
./libc.so.6: undefined reference to `__libc_dlopen_mode'
collect2: ld returned 1 exit status
make[1]: *** [iconvconfig] Error 1 	 

I do not know why, is there any hints? Is it related to the macro's modifications? Thanks.

Aaron Chen







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