Hi, I tried to compiled ocfs2 on 2.6.32.2 x86_64 but still failed. there are an error blow: --------------------------------------------------------------------------------------------------------------------- xattr.c: In function 'check_xattr_entry': xattr.c:250: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long int' xattr.c:287: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type '__u64' gcc -m64 -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -pipe -static -o fsck.ocfs2 fsck.o dirblocks.o dirparents.o extent.o icount.o journal.o pass0.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o problem.o refcount.o slot_recovery.o strings.o util.o xattr.o ../libocfs2/libocfs2.a ../libo2dlm/libo2dlm.a ../libo2cb/libo2cb.a -L../libocfs2 -locfs2 -L../libo2dlm -lo2dlm -L../libo2cb -lo2cb -lcom_err /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `fini_et_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:74: undefined reference to `sem_destroy' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `setup_et_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:68: undefined reference to `sem_init' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `et_list_unlock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:95: undefined reference to `sem_post' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `et_list_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:85: undefined reference to `sem_wait' collect2: ld returned 1 exit status make[1]: *** [fsck.ocfs2] Error 1 make[1]: Leaving directory `/root/localdir/fsck.ocfs2' make: *** [fsck.ocfs2] Error 2 -------------------------------------------------------------------------------------------------------------------------- Anyone have any Idea? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20100213/1806e232/attachment-0001.html
Hi, I tried to compiled ocfs2 on 2.6.32.2 x86_64 but still failed. there are an error blow: --------------------------------------------------------------------------------------------------------------------- xattr.c: In function 'check_xattr_entry': xattr.c:250: warning: format '%u' expects type 'unsigned int', but argument 7 has type 'long int' xattr.c:287: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type '__u64' gcc -m64 -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -pipe -static -o fsck.ocfs2 fsck.o dirblocks.o dirparents.o extent.o icount.o journal.o pass0.o pass1.o pass1b.o pass2.o pass3.o pass4.o pass5.o problem.o refcount.o slot_recovery.o strings.o util.o xattr.o ../libocfs2/libocfs2.a ../libo2dlm/libo2dlm.a ../libo2cb/libo2cb.a -L../libocfs2 -locfs2 -L../libo2dlm -lo2dlm -L../libo2cb -lo2cb -lcom_err /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `fini_et_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:74: undefined reference to `sem_destroy' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `setup_et_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:68: undefined reference to `sem_init' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `et_list_unlock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:95: undefined reference to `sem_post' /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/../../../../lib/libcom_err.a(error_message.o): In function `et_list_lock': /sources/e2fsprogs-1.41.9/build/lib/et/../../../lib/et/error_message.c:85: undefined reference to `sem_wait' collect2: ld returned 1 exit status make[1]: *** [fsck.ocfs2] Error 1 make[1]: Leaving directory `/root/localdir/fsck.ocfs2' make: *** [fsck.ocfs2] Error 2 -------------------------------------------------------------------------------------------------------------------------- Anyone have any Idea? Best Regards, Satit P. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://oss.oracle.com/pipermail/ocfs2-users/attachments/20100213/cb31e7d7/attachment.html
On Sat, Feb 13, 2010 at 11:39:01AM +0700, satit pherm wrote:> I tried to compiled ocfs2 on 2.6.32.2 x86_64 but still failed. > there are an error blow:This is ocfs2-tools, not ocfs2. But your problem is that com_err can't really be built statically anymore. You want to configure with --enable-dynamic-fsck and --enable-dynamic-ctl Joel -- "Every day I get up and look through the Forbes list of the richest people in America. If I'm not there, I go to work." - Robert Orben Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127
i have similar problem and i solved it by adding -lpthread library to linker, then compiled without problem. -- ------------------------------------------------------------------ Zdravko Spoljar Styria IT Solutions d.o.o. UNIX system administration Slavonska Avenija 4 10000 Zagreb, Hrvatska ------------------------------------------------------------------- T:++385 1 6300615 M: ++385 91 6300615 F: ++385 1 6300677 -------------------------------------------------------------------