SourceForge has been redesigned. Learn more.

Unable to compile - could not read symbols

  • Jeremy McCoy

    Jeremy McCoy - 2013-06-28


    I'm trying to compile lessfs on Linux Mint 15 64-bit, and am having some trouble. After downloading the 1.6.0-pre0 version, satisfying all dependencies, and configuring, make returns the following output:

    /usr/bin/ld: lessfs-lessfs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
    /usr/bin/ld: note: 'pthread_create@@GLIBC_2.2.5' is defined in DSO /lib/x86_64-linux-gnu/ so try adding it to the linker command line
    /lib/x86_64-linux-gnu/ could not read symbols: Invalid operation
    collect2: error: ld returned 1 exit status
    make[1]: [lessfs] Error 1
    make[1]: Leaving directory `/home/nakedhitman/Downloads/lessfs-1.6.0-pre0'
    [all] Error 2

    I have tried adding LDFLAGS='-L /lib64 -l pthread' to the configure line, and have made sure that those flags are present in the makefile, but it still does not compile. I would really like to use lessfs, so any suggestions would be appreciated.

  • roi1979

    roi1979 - 2013-10-18


    Edit the Makefile, change:
    DEPS_LIBS = -ltokyocabinet -lfuse -lssl -lcrypto
    .. to:
    DEPS_LIBS = -ltokyocabinet -lfuse -lssl -lcrypto -lpthread

    .. and the run make.

    At least it's compiling for me on Ubuntu 13.04 now.

    See changes in GCC:

    This was lessfs-1.6.0-beta1 configured with:
    ./configure --with-berkeleydb --with-crypto

    Best regards,...


Log in to post a comment.