More info on this problem.

-------- Original Message --------
Subject: Re: [Pvfs2-users] PVFS2 Client on ppc64 problem?
Date: Thu, 23 Feb 2006 12:50:55 -0000 (WET)
From: Paulo Afonso Lopes <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Rob Ross <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

Hello, Rob

From what I can see, the ifdef choices lead to undefined types with the RH
kernel; I am also going to test it with the same kernel release on the x86
platform, and see if the same errors do appear...

Best Regards

Here are the configure output and snipped "make kmod" output:

IBM JS20 blades (ppc) with RedHat AS 4UD2 (Kernel 2.6.9-22.EL-ppc64)

./configure --with-kernel=/usr/src/kernels/2.6.9-22.EL-ppc64
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/vfs.h usability... yes
checking sys/vfs.h presence... yes
checking for sys/vfs.h... yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking mntent.h, usability... no
checking mntent.h, presence... no
checking for mntent.h,... no
checking fstab.h usability... yes
checking fstab.h presence... yes
checking for fstab.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking attr/xattr.h usability... yes
checking attr/xattr.h presence... yes
checking for attr/xattr.h... yes
checking for long int... yes
checking size of long int... 4
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking for required gcc... checking how to run the C preprocessor... gcc -E
checking for perl... yes
checking for find... yes
checking for bison... yes
checking for flex... yes
checking for client library thread safety support... yes
checking for pkg-config... yes
checking for gtk2.0 (for karma gui)... no
checking for tagged Redhat releases (must patch)... no
checking glibc version for working aio callbacks... yes
checking whether byte ordering is bigendian... yes
checking for void *... yes
checking size of void *... 4
checking for i_size_write in kernel... yes
checking for i_size_read in kernel... yes
checking for parent_ino in kernel... yes
checking for memory_backed in struct backing_dev_info in kernel... no
checking for sendfile callback in struct file_operations in kernel... no
checking for aio support in kernel... no
checking for xattr support in kernel... no
checking for 6th argument to sysctl proc handlers... no
checking for linux/posix_acl.h... no
checking for linux/posix_acl_xattr.h... no
checking for linux/xattr_acl.h... no
checking for generic_permission api in kernel... yes
checking for generic_getxattr api in kernel... yes
checking for arg member in read_descriptor_t in kernel... no
checking for second arg type int in address_space_operations
releasepage... no
checking for int return in inode_operations follow_link... no
checking whether cc is an Intel compiler... no
checking for db library... db
checking for dbenv parameter to DB error callback function... no
checking for DB stat with malloc function ptr... no
checking for txnid parameter to DB stat function... no
checking for txnid parameter to DB open function... yes
checking for DB_DIRTY_READ flag... yes
checking if server lib needs -lrt... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for gethostbyname... yes
checking for gethostbyaddr... yes
checking sys/sysinfo.h usability... yes
checking sys/sysinfo.h presence... yes
checking for sys/sysinfo.h... yes
checking for strnlen... yes
checking for strtoull... yes
checking for strstr... yes
checking for getmntent in -lsun... no
checking for getmntent in -lseq... no
checking for getmntent in -lgen... no
checking for getmntent... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking mntent.h usability... yes
checking mntent.h presence... yes
checking for mntent.h... yes
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for SDL... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating module.mk
config.status: creating src/apps/admin/module.mk
config.status: creating src/apps/admin/pvfs2-config
config.status: creating src/apps/karma/module.mk
config.status: creating src/apps/vis/module.mk
config.status: creating src/apps/kernel/linux/module.mk
config.status: creating src/io/trove/module.mk
config.status: creating src/io/trove/trove-handle-mgmt/module.mk
config.status: creating src/io/trove/trove-dbpf/module.mk
config.status: creating src/common/misc/module.mk
config.status: creating src/common/quickhash/module.mk
config.status: creating src/common/quicklist/module.mk
config.status: creating src/common/dotconf/module.mk
config.status: creating src/common/id-generator/module.mk
config.status: creating src/common/gossip/module.mk
config.status: creating src/common/gen-locks/module.mk
config.status: creating src/common/llist/module.mk
config.status: creating src/common/statecomp/module.mk
config.status: creating src/io/bmi/module.mk
config.status: creating src/io/bmi/bmi_tcp/module.mk
config.status: creating src/io/bmi/bmi_gm/module.mk
config.status: creating src/io/bmi/bmi_ib/module.mk
config.status: creating src/io/description/module.mk
config.status: creating src/io/flow/module.mk
config.status: creating src/io/flow/flowproto-bmi-trove/module.mk
config.status: creating src/io/flow/flowproto-template/module.mk
config.status: creating src/io/flow/flowproto-dump-offsets/module.mk
config.status: creating src/io/flow/flowproto-bmi-cache/module.mk
config.status: creating src/io/buffer/module.mk
config.status: creating src/io/job/module.mk
config.status: creating src/io/dev/module.mk
config.status: creating src/proto/module.mk
config.status: creating src/server/module.mk
config.status: creating src/server/request-scheduler/module.mk
config.status: creating src/client/sysint/module.mk
config.status: creating src/kernel/linux-2.6/Makefile
config.status: creating src/kernel/linux-2.4/Makefile
config.status: creating doc/module.mk
config.status: creating doc/coding/module.mk
config.status: creating doc/design/module.mk
config.status: creating doc/random/module.mk
config.status: creating examples/pvfs2-server.rc
config.status: creating doc/doxygen/pvfs2-doxygen.conf
config.status: creating pvfs2-config.h
config.status: pvfs2-config.h is unchanged

***** Displaying PVFS2 Configuration Information *****
------------------------------------------------------
PVFS2 configured to build karma gui               :  no
PVFS2 configured to use epoll                     :  no
PVFS2 configured to perform coverage analysis     :  no
PVFS2 configured for aio threaded callbacks       : yes
PVFS2 configured for the 2.6.x kernel module      : yes
PVFS2 configured for the 2.4.x kernel module      :  no
PVFS2 configured for using the mmap-ra-cache      :  no
PVFS2 configured for using trusted connections    :  no
PVFS2 configured for a thread-safe client library : yes
PVFS2 will use workaround for redhat 2.4 kernels  :  no
PVFS2 will use workaround for buggy NPTL          :  no
PVFS2 server will be built                        : yes

PVFS2 version string: 1.4.0





# make kmod
  CC [M]  /local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.o
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:256: error: syntax
error before "gfp_t"
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:258: warning: function
declaration isn't a prototype
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c: In function
`pvfs2_releasepage':
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:259: error: `page'
undeclared (first use in this function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:259: error: (Each
undeclared identifier is reported only once
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:259: error: for each
function it appears in.)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c: At top level:
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:271: error: unknown
field `capabilities' specified in initializer
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:271: error:
`BDI_CAP_NO_ACCT_DIRTY' undeclared here (not in a function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:271: error:
`BDI_CAP_NO_WRITEBACK' undeclared here (not in a function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:271: error:
initializer element is not constant
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:271: error: (near
initialization for `pvfs2_backing_dev_info.state')
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c: In function
`pvfs2_setattr':
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:321: warning: implicit
declaration of function `pvfs2_acl_chmod'
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c: At top level:
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:402: error:
`generic_setxattr' undeclared here (not in a function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:402: error:
initializer element is not constant
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:402: error: (near
initialization for `pvfs2_file_inode_operations.setxattr')
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:403: error:
`generic_getxattr' undeclared here (not in a function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:403: error:
initializer element is not constant
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:403: error: (near
initialization for `pvfs2_file_inode_operations.getxattr')
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:404: error:
`generic_removexattr' undeclared here (not in a function)
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:404: error:
initializer element is not constant
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:404: error: (near
initialization for `pvfs2_file_inode_operations.removexattr')
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c: In function
`pvfs2_get_custom_inode':
/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.c:499: warning: implicit
declaration of function `pvfs2_init_acl'
make[3]: *** [/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6/inode.o] Error 1
make[2]: *** [_module_/local/Sfw/pvfs2-1.4.0/src/kernel/linux-2.6] Error 2
make[1]: *** [default] Error 2
make: *** [just_kmod] Error 2




Can you send us the output from configure and make?

Rob

Paulo Afonso Lopes wrote:
Dear Andrew: I cannot help you with your problem, but maybe you can help
me:

I am unable to build the PVFS2 kernel module for ppc (IBM JS20 blades).
I
am running Red Hat RHEL AS 4 UD 2 (Kernel 2.6.9-22.EL-ppc64). The
non-kernel daemons build and run correctly.

The failure to compile is the same with PVFS2 1.3.2 and latest 1.4.0,
and
seems related with the #ifdef path taken...

What Linux flavour are you using?

Best Regards,

paulo lopes

--
Paulo Afonso Lopes                        | Tel: +351- 21 294 8536
Departamento de Informática               | 294 8300 ext.10763
Faculdade de Ciências e Tecnologia        | Fax: +351- 21 294 8541
Universidade Nova de Lisboa               | e-mail: [EMAIL PROTECTED]
2829-516 Caparica, PORTUGAL

_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users





--
Paulo Afonso Lopes                        | Tel: +351- 21 294 8536
Departamento de Informática               | 294 8300 ext.10763
Faculdade de Ciências e Tecnologia        | Fax: +351- 21 294 8541
Universidade Nova de Lisboa               | e-mail: [EMAIL PROTECTED]
2829-516 Caparica, PORTUGAL

_______________________________________________
Pvfs2-users mailing list
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-users

Reply via email to