[Pvfs2-users] How to fix: Undeclared 'SLAB_CTOR_CONSTRUCTOR’ error in pvfs2-cache.c

Mark Van De Vyver mvyver at gmail.com
Sun Jun 10 00:26:39 EDT 2007


Hi,
I haven't given up trying to get pvfs2 running on my machines.... it
seems the earlier inconsistent copy problem I was having was related
to problems in the linux kernel that were resolved in kernel 2.6.21
(I'll provide more details in another email).   Which brings me to
this point:

I'm trying to build pvfs2 on openSuSE 10.2 (kernel 2.6.22.rc4).  when
running `make kmod_install` it fails with the error:

/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c: In function
'dev_req_cache_ct
or':
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c:206: error:
'SLAB_CTOR_CONSTRU
CTOR' undeclared (first use in this function)
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c:206: error:
(Each undeclared i
dentifier is reported only once
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c:206: error: for
each function
it appears in.)
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c: In function
'pvfs2_inode_cach
e_ctor':
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c:272: error:
'SLAB_CTOR_CONSTRU
CTOR' undeclared (first use in this function)
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c: In function
'kiocb_ctor':
/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.c:406: error:
'SLAB_CTOR_CONSTRU
CTOR' undeclared (first use in this function)
make[3]: *** [/usr/src/pvfs-2.6.3/src/kernel/linux-2.6/pvfs2-cache.o] Error 1
make[2]: *** [_module_/usr/src/pvfs-2.6.3/src/kernel/linux-2.6] Error 2
make[1]: *** [default] Error 2
make: *** [just_kmod] Error 2


The steps I took are:

I install the kernel rpm packages
   - kernel-source.$ARCH.rpm.
   - kernel-syms.$ARCH.rpm

Then I run:

(
pushd /usr/src/linux
make oldconfig
#make silentoldconfig
make scripts
make prepare
#make -C /usr/src/linux M=$(pwd)
make -C /lib/modules/$(uname -r)/build M=$(pwd)
#make modules
popd
)

All seems to be fine.  Then I configure pvfs2:

pushd /usr/src/pvfs2
make distclean
./configure --with-kernel=/usr/src/linux/ --enable-kernel-sendfile
--prefix=/opt/pvfs2/ &>/tmp/pvfs-${PVFS_VER}-configure.log

The configure log file attached.

Finally I make pvfs2:

(
make all
make install
make kmod_install
) &>/tmp/pvfs-${PVFS_VER}-make-kmod-install.log

make log file attached.

I'm not sure why I'm now getting this error.  I would appreciate any
help someone can offer.
Thanks in advance.

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs-2.6.3-configure.log
Type: text/x-log
Size: 10524 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20070610/c1724093/pvfs-2.6.3-configure-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pvfs-2.6.3-make-kmod-install.log
Type: text/x-log
Size: 14327 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-users/attachments/20070610/c1724093/pvfs-2.6.3-make-kmod-install-0001.bin


More information about the Pvfs2-users mailing list