#3255: e2fsprogs-1.42.6 make check fail to compile
------------------------+---------------------------------------------------
 Reporter:  gespinasse  |       Owner:  lfs-book@…                   
     Type:  task        |      Status:  new                          
 Priority:  normal      |   Milestone:  7.3                          
Component:  Book        |     Version:  SVN                          
 Severity:  normal      |    Keywords:                               
------------------------+---------------------------------------------------
 1.42.6 fail to build on make check
 {{{

 making check in lib/ext2fs
         CC ../../../lib/ext2fs/tst_bitops.c
         LD tst_bitops
         CC ../../../lib/ext2fs/tst_badblocks.c
         LD tst_badblocks
         CC ../../../lib/ext2fs/tst_iscan.c
         LD tst_iscan
         CC ../../../lib/ext2fs/tst_types.c
         LD tst_types
         LD tst_icount
         CC ../../../lib/ext2fs/tst_super_size.c
         LD tst_super_size
         CC ../../../lib/ext2fs/tst_inode_size.c
         LD tst_inode_size
         LD tst_csum
         CC ../../../lib/ext2fs/tst_bitmaps.c
         MK_CMDS tst_bitmaps_cmd.c
         CC tst_bitmaps_cmd.c
         LD tst_bitmaps
 /usr/bin/ld: warning: libcom_err.so.2, needed by ../../lib/libss.so, not
 found (try using -rpath or -rpath-link)
 collect2: ld returned 1 exit status
 make[2]: *** [tst_bitmaps] Error 1
 }}}

 Should be related to commit ab3f5c5aad6310be1d1891c05f1bc8cf7ccf0cef


 {{{
 --- a/lib/ext2fs/Makefile.in
 +++ b/lib/ext2fs/Makefile.in
 @@ -356,33 +356,33 @@ tst_bitmaps_cmd.c: tst_bitmaps_cmd.ct
         $(Q) DIR=$(srcdir) $(MK_CMDS) $(srcdir)/tst_bitmaps_cmd.ct

  tst_bitmaps: tst_bitmaps.o tst_bitmaps_cmd.o $(STATIC_LIBEXT2FS)
 $(DEPLIBSS) \
 -               $(DEPLIBCOM_ERR)
 +               $(DEPSTATIC_LIBCOM_ERR)
         $(E) "  LD $@"
         $(Q) $(CC) -o $@ tst_bitmaps.o tst_bitmaps_cmd.o $(ALL_CFLAGS) \
 -               $(STATIC_LIBEXT2FS) $(LIBSS) $(LIBCOM_ERR)
 +               $(STATIC_LIBEXT2FS) $(LIBSS) $(STATIC_LIBCOM_ERR)

  tst_extents: $(srcdir)/extent.c extent_dbg.c $(DEBUG_OBJS) $(DEPLIBSS) \
 -       $(LIBE2P) $(DEPLIBUUID) $(DEPLIBBLKID) $(DEPLIBCOM_ERR)
 +       $(LIBE2P) $(DEPLIBUUID) $(DEPLIBBLKID) $(DEPSTATIC_LIBCOM_ERR)
         $(E) "  LD $@"
         $(Q) $(CC) -o tst_extents $(srcdir)/extent.c extent_dbg.c \
                 $(ALL_CFLAGS) -DDEBUG $(DEBUG_OBJS) $(LIBSS) $(LIBE2P) \
 -               $(STATIC_LIBEXT2FS) $(LIBBLKID) $(LIBUUID) $(LIBCOM_ERR) \
 +               $(STATIC_LIBEXT2FS) $(LIBBLKID) $(LIBUUID)
 $(STATIC_LIBCOM_ERR) \
                 -I $(top_srcdir)/debugfs
 }}}
 Supplying the static libcom_err imply libss fail to link because libss
 depend on dynamic libcomm_err.

 I reported the issue upstream.

 For 1.42.6, a simple workaround is to 'make check' after 'make install'.
 libcom_err become available in the path and test compile and run
 successfully.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/3255>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to