TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:4975] can't compile 2.2.4



Thanks! It is compiling now.

Ben


On Sun, 28 Mar 1999, Nate Carlson wrote:

> Try this (I haven't downloaded 2.2.4 yet; I'm just relying on
> word-of-mouth, so I could be wrong).
> 
>         if (old_acct) {
>                 do_acct_process(0,old_acct);
>                 filp_close(old_acct,NULL);
>         }
> out:
>         unlock_kernel();
>         return error;   
> out_err:
>         filp_close(file,NULL);
>         goto out;
> }
> 
> ----
> Nate Carlson
> the infinite loop
> natecars@infiniteloop.com
> 
> On Sun, 28 Mar 1999, Ben Luey wrote:
> 
> > The lines now read: (197-207)
> > 
> >         if (old_acct) {
> >                 do_acct_process(0,old_acct);
> >                 /*filp_close(old_acct);
> >                  * \
> >         }
> > out:
> >         unlock_kernel();
> >         return error;
> > out_err:
> >         /*filp_close(file);
> >          * /
> >         goto out;
> > }
> >                                                
> > 
> > Now when I compile I get:
> > 
> > 
> > [root@pclueyb linux]# make zImage
> > gcc -D__KERNEL__ -I/usr/src/linux-2.2.4/include -Wall -Wstrict-prototypes
> > -O2 -f
> > omit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> > -malign-jump
> > s=2 -malign-functions=2 -DCPU=586 -DUTS_MACHINE='"i386"' -c -o
> > init/version.o in
> > it/version.c
> > make -C  kernel
> > make[1]: Entering directory `/usr/src/linux-2.2.4/kernel'
> > make all_targets
> > make[2]: Entering directory `/usr/src/linux-2.2.4/kernel'
> > gcc -D__KERNEL__ -I/usr/src/linux-2.2.4/include -Wall -Wstrict-prototypes
> > -O2 -f
> > omit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> > -malign-jump
> > s=2 -malign-functions=2 -DCPU=586   -c -o acct.o acct.c
> > acct.c:204: warning: `/*' within comment
> > acct.c:215: warning: `/*' within comment
> > acct.c: In function `sys_acct':
> > acct.c:227: parse error before `static'
> > acct.c:231: `exp' undeclared (first use this function)
> > acct.c:231: (Each undeclared identifier is reported only once
> > acct.c:231: for each function it appears in.)
> > acct.c:231: `rnd' undeclared (first use this function)
> > acct.c:232: `value' undeclared (first use this function)
> > acct.c:268: parse error before `static'
> > acct.c:291: `ac' undeclared (first use this function)
> > acct.c:297: warning: implicit declaration of function `encode_comp_t'
> > acct.c:314: `vsize' undeclared (first use this function)
> > acct.c:329: `exitcode' undeclared (first use this function)
> > acct.c:335: `fs' undeclared (first use this function)
> > acct.c:337: `inode' undeclared (first use this function)
> > acct.c:173: label `out_err' used but not defined
> > acct.c:157: label `out' used but not defined
> > acct.c: At top level:
> > acct.c:76: warning: `do_acct_process' declared `static' but never defined
> > make[2]: *** [acct.o] Error 1
> > make[2]: Leaving directory `/usr/src/linux-2.2.4/kernel'
> > make[1]: *** [first_rule] Error 2
> > make[1]: Leaving directory `/usr/src/linux-2.2.4/kernel'
> > make: *** [_dir_kernel] Error 2
> > [root@pclueyb linux]#                                      
> > 
> > 
> > Should I just keep nulling what gives me errors? 
> > 
> > Thanks,
> > 
> > Ben
> > 
> > 
> > 
> > 
> > On Sun, 28 Mar 1999, Nate Carlson wrote:
> > 
> > > Edit the acct.c, modify both those lines, and add a ,NULL to them. Should
> > > take care of it.
> > > 
> > > ----
> > > Nate Carlson
> > > the infinite loop
> > > natecars@infiniteloop.com
> > > 
> > > On Sun, 28 Mar 1999, Ben Luey wrote:
> > > 
> > > > I just downloaded 2.2.4 and put it in /usr/src/linux-2.2.4 and linked
> > > > linux to it. I copies .config from /usr/src/linux-2.2.1  and ran make
> > > > clean, make dep, and then make zImage and I get
> > > > 
> > > > 
> > > > gcc -D__KERNEL__ -I/usr/src/linux-2.2.4/include -Wall -Wstrict-prototypes
> > > > -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> > > > -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o sysctl.o sysctl.c
> > > > gcc -D__KERNEL__ -I/usr/src/linux-2.2.4/include -Wall -Wstrict-prototypes
> > > > -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2
> > > > -malign-jumps=2 -malign-functions=2 -DCPU=586   -c -o acct.o acct.c
> > > > acct.c: In function `sys_acct':
> > > > acct.c:197: too few arguments to function `filp_close'
> > > > acct.c:203: too few arguments to function `filp_close'
> > > > make[2]: *** [acct.o] Error 1
> > > > make[2]: Leaving directory `/usr/src/linux-2.2.4/kernel'
> > > > make[1]: *** [first_rule] Error 2
> > > > make[1]: Leaving directory `/usr/src/linux-2.2.4/kernel'
> > > > make: *** [_dir_kernel] Error 2
> > > > [root@pclueyb linux-2.2.4]#                                
> > > > 
> > > > 
> > > > I compiled 2.2.1 without any problems -- any ideas?
> > > > 
> > > > Ben Luey
> > > > lueyb@carleton.edu
> > > > ICQ: 19144397
> > > > 
> > > > And they wonder why those of us in our twenties refuse to work an
> > > > eighty-hour week just so we can afford to buy their BMWs, and why we aren't
> > > > interested in the counterculture that they invented, as if we did not see
> > > > them disavow their revolution for a pair of running shoes. But the question
> > > > remains: What are we going to do now? How can we repair the damage we
> > > > inherited? Rellow graduates, the answer is simple. The answer is . . . the
> > > > answer is . . . I don't know.
> > > >        -- Commencement address in Reality Bites (1984) 
> > > > 
> > > > 
> > > > 
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > > > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > > > Try our website: http://tclug.real-time.com
> > > > 
> > > 
> > > 
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > > Try our website: http://tclug.real-time.com
> > > 
> > 
> > Ben Luey
> > lueyb@carleton.edu
> > ICQ: 19144397
> > 
> > Money is like manure--it only works if you spread it around.  -- Jim Hightower
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> > For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> > Try our website: http://tclug.real-time.com
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tclug-list-unsubscribe@listserv.real-time.com
> For additional commands, e-mail: tclug-list-help@listserv.real-time.com
> Try our website: http://tclug.real-time.com
> 

Ben Luey
lueyb@carleton.edu
ICQ: 19144397

If they remove all the fools from Congress, it wouldn't be a representative
Congress.  -- Molly Ivins.