[OpenAFS-devel] Problem building on FC5

Simon Wilkinson sxw@inf.ed.ac.uk
Tue, 18 Jul 2006 22:27:26 +0100


I've run into some problems building OpenAFS 1.4.2 under FC5. Recent  
RedHat versions of
flex have added a #define _POSIX_SOURCE 1 to the preamble that is  
included at the top
of lex.yy.c.

This prevents sys/types.h from defining u_short which breaks the  
included
afsutil_prototypes.h. A work around is to explicitly define  
_BSD_SOURCE in the Makefile
line which builds lex.yy.c.

Can anyone think of a better fix than this? I've reported the change  
in behaviour to
RedHat - bug #199320

Cheers,

Simon.