[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Building Condor on SLES10
- Date: Sun, 25 May 2008 17:16:21 +0200
- From: Jan Ploski <Jan.Ploski@xxxxxxxx>
- Subject: Re: [Condor-users] Building Condor on SLES10
Jan Ploski wrote:
An attempt to build Condor 7.0.1 from source on SLES10 SP1 fails with the
gcc -I.. -I../.. -I../h -I../condor_includes -I../condor_c++_util
-I../condor_daemon_client -DHAVE_CONFIG_H -DX86_64=X86_64 -DLINUX=LINUX
-I/data/jploski/condor-7.0.1/externals/install/gcb-1.5.5/include -g -g
-Wall -W -Wextra -Wfloat-equal -Wshadow -Wendif-labels -Wpointer-arith
-Wcast-qual -Wcast-align -Wvolatile-register-var -fstack-protector
-DGLIBC=GLIBC -DGLIBC24=GLIBC24 -DC_COMP_KIND_GCC -DC_COMP_MAJOR_GCC_4
-DC_COMP_MINOR_GCC_4_1 -DC_COMP_PATCH_GCC_4_1_2 -DWITH_OPENSSL
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -c -o
In file included from /usr/include/linux/nfs4.h:17,
/usr/include/linux/list.h:814:2: warning: #warning "don't include kernel
headers in userspace"
In file included from /usr/include/linux/nfsd/const.h:15,
/usr/include/linux/nfs4.h:106: error: field 'l_ace' has incomplete type
/usr/include/linux/nfs4.h:111: error: field 'ace_head' has incomplete type
fs_util.c:210:3: warning: #warning "No valid fs type detection"
fs_util.c:201: warning: unused parameter 'path'
make: *** [fs_util.o] Error 1
make: Leaving directory
make: *** [util_lib] Error 2
Any idea what is wrong?
Here is the explanation and solution I found:
fs_util.c:68 includes linux/nfsd/const.h which in turn includes
linux/nfs4.h includes linux/list.h and refers to the structure
list_head, normally defined there.
However, linux/list.h does not define this structure when included from
"user space" (i.e., without a defined preprocessor macro __KERNEL__). It
just emits the warning "don't include kernel headers in userspace".
That's why "incomplete type" errors in nfs4.h are reported next.
To work around this problem, I simply commented out the inclusion of
linux/nfsd/const.h in fs_util.c:68. Perhaps Condor developers could also
fix this, possibly conditional on some additional information.