Re: Processed: Re: Bug#170507: xfree86: FTBFS on hppa: 'SHMBLA' undeclared
> Bug#170507: xfree86: FTBFS on hppa: 'SHMBLA' undeclared
> Bug reassigned from package `xfree86' to `glibc'.
Here's the fix for this. Please apply dpatch. Sorry it too so long,
school is harrasing my time.
I tested a glibc build, no regressions, and I even pulled the latest CVS
X source and did a full build... no problems.
c.
#! /bin/sh -e
# DP: Description: Add SHMLBA define in shm.h for HPPA
# DP: Author: Carlos O'Donell <carlos@baldric.uwo.ca>
# DP: Upstream status: Submitted. Waiting approval.
# DP: Status Details: Sent it upstream.
# DP: Date: December 7th, 2002
# Merry Christmas! :)
#
#2002-12-07 Carlos O'Donell <carlos@baldric.uwo.ca>
#
# * sysdeps/unix/sysv/linux/hppa/bits/shm.h: Added SHMLBA define.
#
if [ $# -ne 2 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch -d "$2" -f --no-backup-if-mismatch -p1 < $0;;
-unpatch) patch -d "$2" -f --no-backup-if-mismatch -R -p1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
esac
exit 0
# append the patch here and adjust the -p? flag in the patch calls.
--- glibc-2.3.1/sysdeps/unix/sysv/linux/hppa/bits/shm.h 2002-12-07 19:42:52.000000000 -0500
+++ glibc-2.3.1/sysdeps/unix/sysv/linux/hppa/bits/shm.h 2002-12-07 19:33:10.000000000 -0500
@@ -36,6 +36,8 @@
#define SHM_LOCK 11 /* lock segment (root only) */
#define SHM_UNLOCK 12 /* unlock segment (root only) */
+/* Segment low boundary address multiple */
+#define SHMLBA 0x00400000 /* attach addr needs to be 4 Mb aligned */
/* Type to count number of attaches. */
typedef unsigned long int shmatt_t;
Reply to: