aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-05-23 20:15:17 +0000
committerChong Yidong2007-05-23 20:15:17 +0000
commit8a0b01bce92cdd602e96baf8e435a2f2f8e8f0ba (patch)
tree01627eabce8db71f312f286488361a622f9269c0
parent6c06422c157c1209cd6bc231e26c62cdb1c8c98b (diff)
downloademacs-8a0b01bce92cdd602e96baf8e435a2f2f8e8f0ba.tar.gz
emacs-8a0b01bce92cdd602e96baf8e435a2f2f8e8f0ba.zip
Add "Compiling on GNU/Linux fails due to a missing left operand in gnu-linux.h."
-rw-r--r--etc/PROBLEMS21
1 files changed, 21 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index 00dedc0c363..473043932ac 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -2452,6 +2452,27 @@ This results from a bug in a VERY old version of GNU Sed. To solve
2452the problem, install the current version of GNU Sed, then rerun 2452the problem, install the current version of GNU Sed, then rerun
2453Emacs's configure script. 2453Emacs's configure script.
2454 2454
2455*** Compiling on GNU/Linux fails due to a missing left operand in gnu-linux.h.
2456
2457The error messages have the form:
2458
2459 ../src/s/gnu-linux.h:49:24: error: operator '>' has no left operand
2460
2461This error occurs because your system defines LINUX_VERSION_CODE in
2462the standard header file linux/version.h but does not give it a value.
2463As a workaround, you can edit the file src/s/gnu-linux.h to add the
2464needed definition. On the line after "#include <linux/version.h>",
2465add a line as shown below:
2466
2467#include <linux/version.h>
2468#define LINUX_VERSION_CODE 132626
2469
2470The number to use depends on your kernel version (the example shown is
2471for kernel 2.6.18). The number can be obtained by running the
2472following command in the shell:
2473
2474uname -r | sed -e 's/\./ /g' -e 's/-.*//' | awk '{print $1*(2^16) + $2*(2^8) + $3}'
2475
2455*** Building a 32-bit executable on a 64-bit GNU/Linux architecture. 2476*** Building a 32-bit executable on a 64-bit GNU/Linux architecture.
2456 2477
2457First ensure that the necessary 32-bit system libraries and include 2478First ensure that the necessary 32-bit system libraries and include