This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] dl-sysdep missing symbols
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Wed, 02 Jul 2003 09:58:08 -0500
- Subject: [PATCH] dl-sysdep missing symbols
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
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
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;