Menu

#16 dump fails to link due to missing -lcom_err linkage

None
closed-fixed
nobody
None
5
2016-05-06
2011-06-14
Adam Tkac
No

dump-0.4b44 is not compilable on Fedora 15:

make[1]: Entering directory `/home/atkac/git-fedora/dump/dump-0.4b44/dump'
gcc -o dump itime.o main.o optr.o tape.o traverse.o unctime.o ../common/dumprmt.o -L../compat/lib -lcompat -lext2fs -lz -lbz2
/usr/bin/ld: tape.o: undefined reference to symbol 'error_message'
/usr/bin/ld: note: 'error_message' is defined in DSO /lib64/libcom_err.so.2 so try adding it to the linker command line
/lib64/libcom_err.so.2: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[1]: *** [dump] Error 1

Dump uses error_message() function which is present in the libcom_err.so library so it needs to be explicitly added to the linker command line. I will attach proposed patch.

Discussion

  • Adam Tkac

    Adam Tkac - 2011-06-14

    Proposed patch, link binaries against libcom_err

     
  • Volkov Peter

    Volkov Peter - 2011-06-20

    Confirmed. Same patch is required and is applied in Gentoo. Hm, I should tighten my system somehow to avoid such regressions in future as in default configuration dump builds fine here...

     
  • Mike Frysinger

    Mike Frysinger - 2016-05-06
    • summary: Unable to build dump-0.4b44 on Fedora 15 --> dump fails to link due to missing -lcom_err linkage
    • Group: -->
     
  • Mike Frysinger

    Mike Frysinger - 2016-05-06
    • status: open --> closed-fixed
     

Log in to post a comment.