make check fail glibc-2.2.2 in CVS

Kaoru Fukui k_fukui@highway.ne.jp
Wed Mar 7 17:41:00 GMT 2001


Hi!
I'm struggling the problem.

(My first question)
 it is All extern void *__dso_handle.
There is not [public] void* __dso_handle.

(Second question)
I can see weak and __weak__.
Are they different?

Kaoru


[feb19th glibc-2.2.2inCVS]

[root@g4mpKFUKUI libc]# grep -r __dso_handle *
linuxthreads/ChangeLog:	* pthread.c (pthread_initialize): Test for address 
of __
dso_handle
linuxthreads/pthread.c:extern void *__dso_handle __attribute__ ((weak));
linuxthreads/pthread.c:  if (__builtin_expect (&__dso_handle != NULL, 1))
linuxthreads/pthread.c:		  __dso_handle);
linuxthreads/pthread.c:  if (__builtin_expect (&__dso_handle != NULL, 1))
linuxthreads/pthread.c:		  __dso_handle);
[root@g4mpKFUKUI libc]# 


[today's glibc-2.2.2inCVS]

[root@g4mpKFUKUI libc]# grep -r __dso_handle *
dlfcn/modatexit.c:  extern void *__dso_handle __attribute__ ((__weak__));
dlfcn/modatexit.c:  if (&__dso_handle) puts ("have dso handle"); else puts 
("no 
dso handle");
dlfcn/modcxaatexit.c:  extern void *__dso_handle;
dlfcn/modcxaatexit.c:  __cxa_atexit (fluffy, p, __dso_handle);
linuxthreads/ChangeLog:	* pthread.c (pthread_initialize): Test for address 
of __
dso_handle
linuxthreads/pthread.c:extern void *__dso_handle __attribute__ ((weak));
linuxthreads/pthread.c:  if (__builtin_expect (&__dso_handle != NULL, 1))
linuxthreads/pthread.c:		  __dso_handle);
linuxthreads/pthread.c:  if (__builtin_expect (&__dso_handle != NULL, 1))
linuxthreads/pthread.c:		  __dso_handle);
malloc/mtrace.c:	      extern void *__dso_handle __attribute__ ((__weak__));
malloc/mtrace.c:			     &__dso_handle ? __dso_handle : NULL);
stdlib/atexit.c:extern void *__dso_handle __attribute__ ((__weak__));
stdlib/atexit.c:		       &__dso_handle == NULL ? NULL : __dso_handle);
sysdeps/generic/bb_init_func.c:      extern void *__dso_handle __attribute_
_ ((__weak__));
sysdeps/generic/bb_init_func.c:		    &__dso_handle ? __dso_handle : NULL);
[root@g4mpKFUKUI libc]# 




(tstcxaatexit.out)

cannot open "modcxaatexit.so": /usr/src/redhat/BUILD/libc/build-ppc-linux/dlfcn/
modcxaatexit.so: undefined symbol: __dso_handle



More information about the Libc-alpha mailing list