GithubHelp home page GithubHelp logo

Comments (6)

esabol avatar esabol commented on August 15, 2024

Some web pages with potentially useful information that I came across:

https://www.gnu.org/software/gnulib/manual/html_node/pthread_005ftimedjoin_005fnp.html
http://stackoverflow.com/questions/11551188/alternative-to-pthread-timedjoin-np

How another project fixed a similar issue:
https://www.varnish-cache.org/lists/pipermail/varnish-dev/2010-October/006588.html

from gearmand.

p-alik avatar p-alik commented on August 15, 2024

Thank you @esabol. First link leads me to pthread.map. At least pthread_timedjoin_np is mentioned there.

from gearmand.

esabol avatar esabol commented on August 15, 2024

It appears as though, on some FreeBSD versions, you need to link with -lthr to use pthread_timedjoin_np?

from gearmand.

SpamapS avatar SpamapS commented on August 15, 2024

Seeing as Travis CI isn't isn't likely to have FreeBSD support soon: travis-ci/travis-ci#1818 , this is blocked on having another CI platform to test on. As luck would have it, my day job is building one such system with support for user defined images. But that may never leave beta, so another option would be to have somebody run a FreeBSD buildbot/jenkins/etc. and report results via the Github API's.

from gearmand.

p-alik avatar p-alik commented on August 15, 2024

It appears as though, on some FreeBSD versions, you need to link with -lthr to use pthread_timedjoin_np?

Unfortunately it doesn't work. I'm using FreeBSD 11.

CXX=c++49 CC=gcc LIBS="-lthr" ./configure --disable-option-checkin --with-postgresql=no --enable-shared=no
gmake

throws exception:
libgearman-server/gearmand_thread.cc: In function 'void gearmand_thread_free(gearmand_thread_st*)': libgearman-server/gearmand_thread.cc:295:68: error: 'pthread_timedjoin_np' was not declared in this scope pthread_error= pthread_timedjoin_np(thread->id, NULL, &ts);

The line 295 lies in #if defined(HAVE_PTHREAD_TIMEDJOIN_NP) && HAVE_PTHREAD_TIMEDJOIN_NP block.

from gearmand.

p-alik avatar p-alik commented on August 15, 2024

Seeing as Travis CI isn't isn't likely to have FreeBSD support

I'm trying to build gearmand on my local FreeBSD host. If it success I'll contact FreeBSD gearmand maintainer. But there are some other issues to do yet.

from gearmand.

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.