[hipl-dev] [Bug 620327] Re: compilation fails on CentOS 5.5

  • From: Stefan Götz <620327@xxxxxxxxxxxxxxxxxx>
  • To: hipl-dev@xxxxxxxxxxxxx
  • Date: Fri, 12 Nov 2010 16:37:31 -0000

** Changed in: hipl
       Status: Fix Committed => Fix Released

-- 
compilation fails on CentOS 5.5
https://bugs.launchpad.net/bugs/620327
You received this bug notification because you are a member of HIPL core
team, which is subscribed to HIPL.

Status in Host Identity Protocol for Linux: Fix Released

Bug description:
Compilation fails on CentOS 5.5:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -D_POSIX_C_SOURCE=200112L 
-D_XOPEN_SOURCE=500 -std=c99 -Wall -Wextra -Werror -Wredundant-decls 
-Wdisabled-optimization -Wundef -Wstrict-prototypes -Wmissing-prototypes 
-Wno-deprecated-declarations -Wpointer-arith -Wwrite-strings -Wshadow -Winline 
-fno-strict-aliasing -g -O2 -MT lib/core/message.lo -MD -MP -MF 
lib/core/.deps/message.Tpo -c lib/core/message.c -o lib/core/message.o
In file included from ./lib/tool/nlink.h:8,
                 from lib/core/message.c:89:
/usr/include/linux/xfrm.h:68: error: expected specifier-qualifier-list before 
‘__u64’
/usr/include/linux/xfrm.h:80: error: expected specifier-qualifier-list before 
‘__u64’

It seems that __u16 and __u32 get compiled but __u64 not (checked with gcc -E 
flag on CentOS). The __u64 seems to be define only in one place:

/usr/include/asm/types.h
..
#if defined(__GNUC__) && !defined(__STRICT_ANSI__)
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
#endif 

The problem is that __STRICT_ANSI__ is defined. Work in progress...



Other related posts: