Giter Site home page Giter Site logo

pthread library required about nxgipd HOT 5 CLOSED

Dogora avatar Dogora commented on July 18, 2024
pthread library required

from nxgipd.

Comments (5)

tjko avatar tjko commented on July 18, 2024

Seems as if libmxml.so in openSUSE is not pre-linked against libptread.so (?) As I don't see this issue in Debian, where libmxml.so seems to be linked against libptread.so.

Could you try if following change fixes this? cd9fc53

from nxgipd.

Dogora avatar Dogora commented on July 18, 2024

I pulled down the complete package again, using the "Download ZIP" button on the main page, and I get the same error about missing pthread. I'm not very good at this, but it looks like your changes above to configure and config/configure.in are in the version I downloaded.

from nxgipd.

tjko avatar tjko commented on July 18, 2024

Autoconf can be tricky sometimes, I think I may have found way to conditionally add linking of libpthread if libmxml depends on it, its not pretty but should work: 67f1dee

If that doesn't work then manually specifying "extra" libraries should do it.
Something like this probably works (?)

# LIBS="-lphtread" ./configure

from nxgipd.

Dogora avatar Dogora commented on July 18, 2024

This one worked; it created the Makefile that included -lpthread on the LIBS= line (line 44).
It's a bit funky, but it does work. The output of configure has these 2 lines:

checking for library containing mxmlLoadFile... no
checking for library containing mxmlLoadFd... -lmxml

config.log is a bit confusing, but the end result is good.

What I've done in the past is manually modify my configure script to include -lpthread. Then, I also add that to the Makefile. I thought about LIBS="-lpthread", but I modified the files instead.

from nxgipd.

tjko avatar tjko commented on July 18, 2024

This probably is not the best way to detect what dependencies a library may have, but seems to work. I'll leave it like this for now, until someone shows better way to do this...

from nxgipd.

Related Issues (17)

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.