Hi, I am trying to compile aufs-util (2.1) in a uclibc chroot. I ran
"make headers_install" in the chroot kernel tree, but then I seem to get
the following compile error:
# CPPFLAGS="-I /usr/src/linux/usr/include" make
cc -I./libau -O -Wall -I /usr/src/linux/usr/include ver.c -o ver
./ver
cc -I./libau -O -Wall -I /usr/src/linux/usr/include c2tmac.c -o c2tmac
rm -f aufs.5
./c2tmac > aufs.5
awk '{ \
gsub(/\140[^\047]*\047/, "\\[oq]&\\[cq]"); \
gsub(/\\\[oq\]\140/, "\\[oq]"); \
gsub(/\047\\\[cq\]/, "\\[cq]"); \
gsub(/\047/, "\\[aq]"); \
print; \
}' aufs.in.5 >> aufs.5
chmod a-w aufs.5
cc -I./libau -O -Wall -I /usr/src/linux/usr/include -c -o proc_mnt.o
proc_mnt.c
ar rv libautil.a proc_mnt.o
ar: creating libautil.a
a - proc_mnt.o
cc -I./libau -O -Wall -I /usr/src/linux/usr/include -c -o br.o br.c
ar rv libautil.a br.o
a - br.o
cc -I./libau -O -Wall -I /usr/src/linux/usr/include -c -o plink.o plink.c
ar rv libautil.a plink.o
a - plink.o
cc -I./libau -O -Wall -I /usr/src/linux/usr/include -c -o mtab.o mtab.c
ar rv libautil.a mtab.o
a - mtab.o
cc -I./libau -O -Wall -I /usr/src/linux/usr/include -c -o auibusy.o
auibusy.c
auibusy.c:33: warning: 'struct aufs_ibusy' declared inside parameter list
auibusy.c:33: warning: its scope is only this definition or declaration,
which is probably not what you want
auibusy.c: In function 'do_ibusy':
auibusy.c:39: error: dereferencing pointer to incomplete type
auibusy.c:44: error: dereferencing pointer to incomplete type
auibusy.c:47: error: 'AUFS_CTL_IBUSY' undeclared (first use in this
function)
auibusy.c:47: error: (Each undeclared identifier is reported only once
auibusy.c:47: error: for each function it appears in.)
auibusy.c:48: error: dereferencing pointer to incomplete type
auibusy.c:50: error: dereferencing pointer to incomplete type
auibusy.c:50: error: dereferencing pointer to incomplete type
auibusy.c:50: error: dereferencing pointer to incomplete type
auibusy.c: In function 'main':
auibusy.c:59: error: storage size of 'ibusy' isn't known
auibusy.c:59: warning: unused variable 'ibusy'
make: *** [auibusy.o] Error 1
rm ver c2tmac
The host kernel is running: 2.6.36.2-grsec2.2.1-vs2.3.0.36.38.2-aufs2.1
and the chroot is compiling a kernel
linux-2.6.37-grsecurity-2.2.1-201102121148-aufs2.1. chroot gcc is 4.4.5
Basically as far as I can see only the 2.6.37 and chroot details are
relevant to this, but just highlighting the running kernel for completeness?
I tend to agree with the error though because I can't find where struct
aufs_ibusy is defined? The chroot kernel is using a few day old git
aufs2.1-standalone, but compiled "in tree" (not as a module). The
-utils is git as of some minutes ago, branch 2.1.
I'm expecting this to be stupidly obvious...? Apologies in advance?
Thanks
Ed W
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev