[OpenAFS-devel] Re: OpenAFS-devel digest, Vol 1 #25 - 13 msgs

R. Lindsay Todd toddr@rpi.edu
Mon, 11 Dec 2000 18:05:30 -0500


Derrick J Brashear wrote:

> On Thu, 7 Dec 2000, R. Lindsay Todd wrote:
>
> > I've tried building on RedHat 7 with the source RPM.  The build mostly works,
> > but not completely.  The compiler segfaults while compiling kdump.c.  Since
> > make fails, rpm terminates.
>
> Read the build notes. There's a bug in the gcc provided; kgcc will compile
> it.

I modified the spec file to add CC=kgcc, and rebuilt.  It is definitely using kgcc
now, but it still fails on kdump.c.  (You can't build this with the normal gcc,
either.)  But the make progresses enough that you still have a usable client, and
if you make the changes I mention to protect against the "make" exit code, the
RPMs build.

As far as what the actual error is:  Lots of warnings about redeclared macros, but
things start to get hairy with some parse errors in /usr/include/linux/string.h:

In file included from /usr/include/linux/fs.h:23,
                 from kdump.c:223:
/usr/include/linux/string.h:14: parse error before `__extension__'
/usr/include/linux/string.h:14: parse error before `&&'
/usr/include/linux/string.h:16: parse error before `__extension__'
/usr/include/linux/string.h:16: parse error before `('
/usr/include/linux/string.h:17: parse error before `__extension__'
/usr/include/linux/string.h:17: parse error before `&&'

It is all downhill from here.

I haven't tried using a vanilla RedHat 7 system.  There have been a couple glibc
updates that may be causing problems...

>
>
> > Add "|| true" after the "make", and it turns out that enough is compiled to
> > build the binary rpm's.
> >
> > Those rpm's work fine.  The only problem is that the /etc/rc.d/init.d/afs
> > start-up file is looking for kernel modules based on "uname -r", e.g.,
> > 2.2.16-22smp, not just 2.2.16.  If you add appropriate symlinks, it works.
> > Or alternatively, change the afs startup script, like in the latest IBM AFS
> > release.
>
> I'll investigate this. Thanks
>
> -D
>
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo.cgi/openafs-devel

--
R. Lindsay Todd                          email: toddr@rpi.edu
Senior Systems Programmer                phone: 518-276-2605
Rensselaer Polytechnic Institute         fax:   518-276-2809
Troy, NY 12180-3590                      WWW:   http://www.rpi.edu/~toddr