[Ocfs2-users] Compiling ocfs2-tools-1.6.3 on slackware64-13.1

Sunil Mushran sunil.mushran at oracle.com
Tue Nov 30 12:47:17 PST 2010


On 11/30/2010 10:03 AM, pica pica wrote:
> Hello all,
>
> I'm having trouble compiling ocfs2-tools-1.6.3 on slackware64-13.1
>
> These are my configure flags (the last 2 I added after googling this problem, but didn't help):
>
> ./configure \
>    --sbindir=/sbin \
>    --bin=/bin \
>    --libdir=/usr/lib${LIBDIRSUFFIX} \
>    --sysconfdir=/etc \
>    --datadir=/etc/ocfs2 \
>    --sharedstatedir=/var/ocfs2 \
>    --libexecdir=/usr/libexec \
>    --localstatedir=/var \
>    --mandir=/usr/man \
>    --build=$ARCH-slackware-linux \
>    --enable-dynamic-fsck \
>    --enable-dynamic-ctl
>
> I get this error:
>
> gcc -O2 -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -pipe  -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 -L/lib64 -lcom_err
> /lib64/libcom_err.a(error_message.o): In function `setup_et_lock':
> error_message.c:(.text+0x1a3): undefined reference to `sem_init'
> /lib64/libcom_err.a(error_message.o): In function `fini_et_lock':
> error_message.c:(.text+0x1cc): undefined reference to `sem_destroy'
> /lib64/libcom_err.a(error_message.o): In function `et_list_lock':
> error_message.c:(.text+0x1ff): undefined reference to `sem_wait'
> /lib64/libcom_err.a(error_message.o): In function `et_list_unlock':
> error_message.c:(.text+0x228): undefined reference to `sem_post'
> collect2: ld returned 1 exit status
> make[1]: *** [fsck.ocfs2] Error 1
> make[1]: Leaving directory `/tmp/SBo/ocfs2-tools-1.6.3/fsck.ocfs2'
> make: *** [fsck.ocfs2] Error 2

Something is not right in your setup. It appears to be forcing a static build. Try adding -lpthread.




More information about the Ocfs2-users mailing list