[yocto] bitbake e2fsprogs encounter undefined reference

张文杰 157724595 at 163.com
Mon May 23 09:20:18 PDT 2011




At 2011-05-24 00:10:19,"张文杰" <157724595 at 163.com> wrote:
The error log is blow:
| make[2]: Entering directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc'
|COMPILE_ET prof_err.et
|CC mke2fs.c
|CC util.c
|CC ../e2fsck/profile.c
|CC prof_err.c
|PROFILE_TO_C mke2fs.conf
|CC default_profile.c
|LD mke2fs
|CC badblocks.c
|LD badblocks
|CC tune2fs.c
|LD tune2fs
|CC dumpe2fs.c
|LD dumpe2fs
|CC blkid.c
|LD blkid
| ../lib/libext2fs.so: undefined reference to `sem_init'
| ../lib/libext2fs.so: undefined reference to `sem_destroy'
| ../lib/libext2fs.so: undefined reference to `sem_post'
| ../lib/libext2fs.so: undefined reference to `sem_wait'
| collect2: ld returned 1 exit status
| make[2]: *** [blkid] Error 1
| make[2]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12/misc'
| make[1]: *** [all-progs-recursive] Error 1
| make[1]: Leaving directory `/sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/e2fsprogs-1.41.12'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
| ERROR: Function 'do_compile' failed (see /sdb1/yocto/poky-bernard-5.0/build/tmp/work/ppce500v2-wrs-linux-gnu/e2fsprogs-1.41.12-r20/temp/log.do_compile.10589 for further information)
NOTE: package e2fsprogs-1.41.12-r20: task do_compile: Failed
ERROR: Task 8 (/sdb1/yocto/poky-bernard-5.0/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.41.12.bb, do_compile) failed with exit code '1'
Waiting for 1 active tasks to finish:
0: ncurses-5.7-r1 do_package (pid 31748)


And in its Makefile of DIR misc it has
#
# Library definitions
#
LIB = $(top_builddir)/lib
LIBSS = $(LIB)/libss.so # -ldl
LIBCOM_ERR = $(LIB)/libcom_err.so # -lpthread
LIBE2P = $(LIB)/libe2p.so
LIBEXT2FS = $(LIB)/libext2fs.so
LIBUUID = -luuid
LIBBLKID = $(LIB)/libblkid.so # $(LIBUUID)
I think the red lind should append -lpthread, but it not. any suggestion?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20110524/d2007e6e/attachment.html>


More information about the yocto mailing list