lkml.org 
[lkml]   [2002]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.5.7-dj2] Compile Error
On Thu, Mar 28, 2002 at 07:41:14AM -0500, Adam Kropelin wrote:
> ----- Original Message -----
> From: "Sebastian Roth" <xsebbi@gmx.de>
> To: <linux-kernel@vger.kernel.org>
> Sent: Thursday, March 28, 2002 6:17 AM
> Subject: [2.5.7-dj2] Compile Error
>
>
> > Hi there,
> >
> > make bzImage says:
> > make[1]: Entering directory `/usr/src/linux-2.5-dj/kernel'
> > make all_targets
> > make[2]: Entering directory `/usr/src/linux-2.5-dj/kernel'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.5-dj/include -Wall
> > -Wstrict-prototypes -Wno-
> > trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
> > -pipe -mpref
> > erred-stack-boundary=2 -march=i686 -malign-functions=4
> > -DKBUILD_BASENAME=acct
> > -c -o acct.o acct.c
> > acct.c:235: parse error before `do'
> > acct.c:378: parse error before `do'
> > acct.c:384: parse error before `&'
>
> <snip>
>
> I'm a "me too" on this.
>
> I see some discussion a few days ago where Grega Fajdiga had the same problem on
> stock 2.5.7. There didn't seem to be a resolution other than Bob Miller saying:
>
> > You have CONFIG_BSD_PROCESS_ACCT not set
> > but the compile errors you're getting are for code in acct.c that
> > will only compile if CONFIG_BSD_PROCESS_ACCT is SET.
>
> Same is true here except stock 2.5.7 *does* compile and -dj2 does not. Same
> config modulo symbol differences.
>
> Downloaded multiple times, made mrproper, etc.
>
> Failing .config for -dj2 is below.
>
> --Adam
>
> CONFIG_X86=y

Stuff deleted...

In looking at kernel/acct.c it looks like someone tried to change acct.c
to no longer conditionally compile based on CONFIG_BSD_PROCESS_ACCT.
The problem is that other files that conditionally compile with
CONFIG_BSD_PROCESS_ACCT (include/linux/acct.h and others) where not changed.

So if you build with CONFIG_BSD_PROCESS_ACCT not set you're build will
break. I'm in the process of generating a patch that will make acct.c
again conditionally compile based on CONFIG_BSD_PROCESS_ACCT. This
should be done in a little bit and I'll post.

Dave, where did you get the patch for acct.c?

--
Bob Miller Email: rem@osdl.org
Open Source Development Lab Phone: 503.626.2455 Ext. 17
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.055 / U:0.460 seconds]
©2003-2014 Jasper Spaans. Advertise on this site