Giter Club home page Giter Club logo

Comments (5)

exaexa avatar exaexa commented on August 11, 2024

What environment are you using for compiling? Codecrypt itself doesn't use pthreads, this dependency should get pulled in by -lcryptopp.

Check out if ldd /usr/lib/libcryptopp.so outputs pthread (please paste the output here as well for documentation). If not, putting -lpthread manually to LIBS for your ./configure is a good workaround.

from codecrypt.

exaexa avatar exaexa commented on August 11, 2024

Relating to the other issue, what output do you get from pkg-config libcrypto++ --libs ?

from codecrypt.

ghost91- avatar ghost91- commented on August 11, 2024

I'm compiling on Arch Linux x86_64. ldd /usr/lib/libcryptopp.so did not output pthread. I compiled the most recent version of crypto++ and ldd did return pthread when in this case, so i suppose this is either a bug of crypto++ or the arch package.

pkg-config libcrypto++ --libs returns -lcryptopp

EDIT: I just compiled version 5.6.2 of crypto++ (the version, which is used for the arch package currently) and it seems it is missing the pthread linkage. 5.6.3 has this issue, too, but it seems to be fixed in the git version of crypto++, so I guess it will be fixed with the next release of crypto++. In the mean time I will ask the package maintainer of the arch package to fix this.

from codecrypt.

exaexa avatar exaexa commented on August 11, 2024

Anyway, from debian source package:

~/libcrypto++-5.6.1/debian $ grep pthread changelog
  * Link with pthread to avoid warning from dpkg-shlibdeps.
  * Use LDFLAGS=-pthread to fix linking errors.

Debian is explicitly fixing this for the package to avoid dependency breakage. Asking either Crypto++ or Arch packaging folks about the reason for this behavior will probably be the best option to solve this.

PS. crypto++ likes the workaround solution better https://www.cryptopp.com/wiki/Linux#Undefined_Reference_to_pthread 😞

from codecrypt.

exaexa avatar exaexa commented on August 11, 2024

Shall be resolved by upstream, closing.

If there's some quick&portable fix/workaround for detection whether cryptopp needs -pthread added, please submit a patch.

from codecrypt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.