From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.devel Subject: Build failure on Debian unstable Date: Wed, 23 May 2007 17:20:28 +0200 Message-ID: <87646jr2gz.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1179933627 19572 80.91.229.12 (23 May 2007 15:20:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 15:20:27 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 17:20:18 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HqsdN-0008Ge-Mw for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 17:20:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqsdO-0004XO-S7 for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 11:20:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HqsdM-0004W0-48 for emacs-devel@gnu.org; Wed, 23 May 2007 11:20:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HqsdK-0004Tg-0D for emacs-devel@gnu.org; Wed, 23 May 2007 11:20:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HqsdJ-0004Td-Qg for emacs-devel@gnu.org; Wed, 23 May 2007 11:20:13 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HqsdJ-00053Y-30 for emacs-devel@gnu.org; Wed, 23 May 2007 11:20:13 -0400 Original-Received: (qmail invoked by alias); 23 May 2007 15:20:10 -0000 Original-Received: from p5486569e.dip.t-dialin.net (EHLO debian) [84.134.86.158] by mail.gmx.net (mp006) with SMTP; 23 May 2007 17:20:10 +0200 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1/7tVRVEc/7Fc9bsWNzZOK2mrLujW87t86KClWwDi R8Gpz1h28X6e8I X-Y-GMX-Trusted: 0 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71657 Archived-At: Please have a look at http://bugs.debian.org/423462, it says that Emacs currently fails to build: [Quoting from the bug report] ,---- | In file included from ./config.h:979, | from dispnew.c:23: | ./s/gnu-linux.h:49:24: error: operator '>' has no left operand | ./s/gnu-linux.h:52:24: error: operator '>=' has no left operand | ./s/gnu-linux.h:55:24: error: operator '>=' has no left operand | | The offending code in gnu-linux.h references LINUX_VERSION_CODE, | | #if LINUX_VERSION_CODE > 0x10200 | #define LINUX_SIGIO_DOES_WORK | #endif /* LINUX_VERSION_CODE > 0x10200 */ | #if LINUX_VERSION_CODE >= 0x20000 | #define LINUX_MAP_SHARED_DOES_WORK | #endif /* LINUX_VERSION_CODE >= 0x20000 */ | #if LINUX_VERSION_CODE >= 0x20400 | | ... which is defined in /usr/include/linux/version.h: | | #define LINUX_VERSION_CODE | #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) `---- I verified that this does indeed happen. While it is an incompatible change that the Debian maintainers did not give LINUX_VERSION_CODE a version, I tend to agree Steve Langasek that it is very unreliable to check LINUX_VERSION_CODE to determine the version of the Linux kernel, since the kernel version is not really related to what /usr/include/linux/version.h states about it (and it's entirely possible to build Emacs with a new kernel but run it under an older one).