[OpenAFS] apenafs 1.0.0 linux compile problems

Derrick J Brashear shadow@dementia.org
Mon, 13 Nov 2000 01:47:17 -0500


--On Monday, November 13, 2000 01:09:34 AM -0500 Shantonu Sen 
<ssen@mit.edu> wrote:

>> I'm trying to compile open afs on two linux boxes:
>> 1)  Intel P200MMX 128MB RAM 10G IDE HD running fresh install of RH7.0
>> kernel 2.2.16-22
>
>> =============================================================
>> and these errors for box 2 (rh7.0)
>> =============================================================
>> ------------------------------------------------------------------------
>> ----- ----------------------------------------
>> In file included from ../afs/sysincludes.h:125,
>> from ../afs/afs_analyze.c:14:
>> /usr/include/pthread.h:270: parse error before `0'
>
> The following patch allows me to compile on redhat 7 with
> 2.4.0-test10.
>
> Although it's a different kernel, the root of your error
> is a messy glibc interaction, addressed by the second half
> of the patch. It removes a questionable pthread macro (as
> discussed briefly on openafs-devel).
>
> After that, my compiler had a seg fault while compiling venus,
> which is the first half of the patch. If you do not have that
> problem, feel free to disregard it.

kgcc won't segfault but will still fail to build kdump (on your redhat 7 
system).