Bug#278043: marked as done (macintosh: cannot compile because of syntax error)
Your message dated Wed, 16 Nov 2005 12:58:46 +0900
with message-id <20051116035846.GA3898@verge.net.au>
and subject line #278043 macintosh: cannot compile because of syntax error
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 24 Oct 2004 13:28:15 +0000
>From ltp@lt-p.net Sun Oct 24 06:28:15 2004
Return-path: <ltp@lt-p.net>
Received: from areims-151-1-9-86.w83-192.abo.wanadoo.fr (Arda.LT-P.net) [83.192.135.86] (mail)
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1CLiPv-0002Pf-00; Sun, 24 Oct 2004 06:28:15 -0700
Received: from ltp by Arda.LT-P.net with local (Exim 3.36 #1 (Debian))
id 1CLiPo-0001DE-00; Sun, 24 Oct 2004 15:28:08 +0200
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="ISO-8859-15"
From: LT-P <LT-P@LT-P.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: macintosh: cannot compile because of syntax error
X-Mailer: reportbug 2.63
Date: Sun, 24 Oct 2004 15:28:01 +0200
Message-Id: <E1CLiPo-0001DE-00@Arda.LT-P.net>
Sender: LT-P <ltp@LT-P.net>
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2004_03_25
X-Spam-Level:
Package: kernel-source-2.4.26
Version: 2.4.26-6
Severity: normal
While compiling the kernel with a correct config file from kernel 2.4.25:
___
make[4]: Entering directory
`/surplus/system/src/kernel-source-2.4.26/drivers/macintosh'
gcc -D__KERNEL__ -I/surplus/system/src/kernel-source-2.4.26/include -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -I/surplus/system/src/kernel-source-2.4.26/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -nostdinc -iwithprefix include -DKBUILD_BASENAME=nvram -c -o nvram.o nvram.c
nvram.c: Dans la fonction « read_nvram »:
nvram.c:41: error: erreur d'analyse syntaxique before "unsigned"
nvram.c:46: error: `i' undeclared (first use in this function)
nvram.c:46: error: (Each undeclared identifier is reported only once
nvram.c:46: error: for each function it appears in.)
nvram.c:48: attention : left-hand operand of comma expression has no effect
make[4]: *** [nvram.o] Error 1
___
If we look at the source (/usr/src/kernel-source-2.4.26/drivers/macintosh/nvram.c), we can see that:
___
37 static ssize_t read_nvram(struct file *file, char *buf,
38 size_t count, loff_t *ppos)
39 {
40 loff_t n = *ppos
41 unsigned int i = n;
42 char *p = buf;
43
___
So I added a semicolon at the end of line 40, and the compiler accepted it.
Happy patching :)
LT-P
-- System Information:
Debian Release: 3.1
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: powerpc (ppc)
Kernel: Linux 2.4.25-ltp
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro
Versions of packages kernel-source-2.4.26 depends on:
ii binutils 2.15-4 The GNU assembler, linker and bina
ii bzip2 1.0.2-1 A high-quality block-sorting file
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
ii fileutils 5.2.1-2 The GNU file management utilities
-- no debconf information
---------------------------------------
Received: (at 278043-done) by bugs.debian.org; 16 Nov 2005 04:06:49 +0000
>From horms@koto.vergenet.net Tue Nov 15 20:06:49 2005
Return-path: <horms@koto.vergenet.net>
Received: from koto.vergenet.net ([210.128.90.7])
by spohr.debian.org with esmtp (Exim 4.50)
id 1EcEZN-00025k-79
for 278043-done@bugs.debian.org; Tue, 15 Nov 2005 20:06:49 -0800
Received: by koto.vergenet.net (Postfix, from userid 7100)
id B2FD63402B; Wed, 16 Nov 2005 13:06:17 +0900 (JST)
Date: Wed, 16 Nov 2005 12:58:46 +0900
From: Horms <horms@debian.org>
To: 278043-done@bugs.debian.org
Subject: #278043 macintosh: cannot compile because of syntax error
Message-ID: <20051116035846.GA3898@verge.net.au>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Cluestick: seven
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-2.0 required=4.0 tests=BAYES_01 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
Version: 2.4.27-1
Fixed in 2.4.27-1
--
Horms
Reply to: