Comments (6)
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.
Thank you @esabol. First link leads me to pthread.map. At least pthread_timedjoin_np
is mentioned there.
from gearmand.
It appears as though, on some FreeBSD versions, you need to link with -lthr
to use pthread_timedjoin_np
?
from gearmand.
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.
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.
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)
- Segmentation fault (core dumped) on php 7.4.3 HOT 2
- Rename HACKING file to CONTRIBUTING.md ? HOT 3
- Confusing: --show-unique-jobs explainer in gearadmin --help HOT 2
- gearadmin --priority-status does not return expected values HOT 8
- gearmand multiple instances HOT 3
- Stuck Jobs HOT 29
- Is there a way to make a gearman PHP worker dont die if a server is not available? HOT 6
- Gearmand crashes or unreachable HOT 3
- 'make test' failures with 1.1.19.1 on Debian 8 HOT 5
- Packet that is being freed has not been allocated, most likely this is due to freeing a gearman_task_st or other object twice HOT 4
- `bootstrap.sh -a` fails on Ubuntu 22.04 HOT 1
- Additional refinements to GitHub Actions CI workflow HOT 3
- Tarballs created from master can't find libboost/config/workaround.hpp HOT 7
- Tarballs are untested in CI HOT 1
- How to check job queue in gearman HOT 3
- GitHub Actions CI workflow needs to be updated because Ubuntu 18.04 workers are deprecated HOT 1
- Can I use gearman to schedule a job in the future , upto 24 hrs HOT 1
- A core dump error happened in gearman_worker_free at the latest 1.1.20 gearmand HOT 6
- sqlite db is constantly accessed even though --store-queue-on-shutdown is set HOT 8
- sphinx-build documentation warnings and errors with newer versions of Sphinx HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gearmand.