[PATCH] dl-sysdep missing symbols
Steven Munroe
sjmunroe@us.ibm.com
Wed Jul 2 16:28:00 GMT 2003
todays cvs head build fails for PPC64
../sysdeps/generic/dl-sysdep.c:198: error: structure has no member named
`_dl_sysinfo_dso'
../sysdeps/generic/dl-sysdep.c:199: error: structure has no member named
`_dl_sysinfo'
The problem seems that PPC/PPC64 does not need dl_sysinfo and does NOT
__ASSUME_VSYSCALL. So the #ifndef in generic/dl-sysdep.c (see below) is
inverted (should be #ifdef).
#ifndef __ASSUME_VSYSCALL
/* Only set the sysinfo value if we also have the vsyscall DSO. */
if (GL(dl_sysinfo_dso) != 0)
GL(dl_sysinfo) = new_sysinfo;
#endif
So the attached patch inverts the __ASSUME_VSYSCALL conditional and compiles
correctly.
2003-07-02 Steven Munroe <sjmunroe@us.ibm.com>
* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start) [__ASSUME_VSYSCALL]:
Invert conditional for dl_sysinfo_dso test.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
-------------- next part --------------
diff -urN libc23-cvstip-20030702/sysdeps/generic/dl-sysdep.c libc23/sysdeps/generic/dl-sysdep.c
--- libc23-cvstip-20030702/sysdeps/generic/dl-sysdep.c 2003-07-02 03:48:25.000000000 -0500
+++ libc23/sysdeps/generic/dl-sysdep.c 2003-07-02 10:32:19.000000000 -0500
@@ -193,7 +193,7 @@
GL(dl_pagesize) = __getpagesize ();
#endif
-#ifndef __ASSUME_VSYSCALL
+#ifdef __ASSUME_VSYSCALL
/* Only set the sysinfo value if we also have the vsyscall DSO. */
if (GL(dl_sysinfo_dso) != 0)
GL(dl_sysinfo) = new_sysinfo;
More information about the Libc-alpha
mailing list