# HG changeset patch # User Chong Yidong # Date 1179951317 0 # Node ID 9186959f54663faa0a613518581c0ca0d8c0e6e4 # Parent 2281fafb5f9da599fcf986f8dd88884c34fa14b5 Add "Compiling on GNU/Linux fails due to a missing left operand in gnu-linux.h." diff -r 2281fafb5f9d -r 9186959f5466 etc/PROBLEMS --- a/etc/PROBLEMS Wed May 23 20:10:04 2007 +0000 +++ b/etc/PROBLEMS Wed May 23 20:15:17 2007 +0000 @@ -2452,6 +2452,27 @@ the problem, install the current version of GNU Sed, then rerun Emacs's configure script. +*** Compiling on GNU/Linux fails due to a missing left operand in gnu-linux.h. + +The error messages have the form: + + ../src/s/gnu-linux.h:49:24: error: operator '>' has no left operand + +This error occurs because your system defines LINUX_VERSION_CODE in +the standard header file linux/version.h but does not give it a value. +As a workaround, you can edit the file src/s/gnu-linux.h to add the +needed definition. On the line after "#include ", +add a line as shown below: + +#include +#define LINUX_VERSION_CODE 132626 + +The number to use depends on your kernel version (the example shown is +for kernel 2.6.18). The number can be obtained by running the +following command in the shell: + +uname -r | sed -e 's/\./ /g' -e 's/-.*//' | awk '{print $1*(2^16) + $2*(2^8) + $3}' + *** Building a 32-bit executable on a 64-bit GNU/Linux architecture. First ensure that the necessary 32-bit system libraries and include