[OpenAFS] apenafs 1.0.0 linux compile problems

Shantonu Sen ssen@mit.edu
Mon, 13 Nov 2000 01:09:34 -0500


> 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.

Good luck,
Shantonu

Index: src/Makefile
===================================================================
RCS file: /cvs/openafs/src/Makefile,v
retrieving revision 1.3
diff -r1.3 Makefile
440c440
< 	venus update xstat afsmonitor dauth tests libafsrpc \
---
> 	update xstat afsmonitor dauth tests libafsrpc \
Index: src/afs/UKERNEL/sysincludes.h
===================================================================
RCS file: /cvs/openafs/src/afs/UKERNEL/sysincludes.h,v
retrieving revision 1.2
diff -r1.2 sysincludes.h
115,119d114
< /* this is necessary for client programs as well as the library itself */
< #if defined(AFS_LINUX22_ENV) || defined(AFS_USR_LINUX22_ENV)
< #define pthread_attr_setstacksize(a,b) 0
< #endif
<