After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588337 - Build fix for GNU/kFreeBSD
Build fix for GNU/kFreeBSD
Status: RESOLVED WONTFIX
Product: gamin
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gamin Maintainer(s)
Gamin Maintainer(s)
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2009-07-11 22:50 UTC by Emilio Pozuelo Monfort
Modified: 2018-07-01 08:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix build failure (551 bytes, patch)
2009-07-11 22:50 UTC, Emilio Pozuelo Monfort
none Details | Review
Use PTHREAD_MUTEX_RECURSIVE_NP on kFreeBSD (1.01 KB, patch)
2009-12-19 15:39 UTC, Emilio Pozuelo Monfort
none Details | Review
configure checks for PTHREAD_MUTEX_RECURSIVE_NP and PTHREAD_MUTEX_RECURSIVE (2.02 KB, patch)
2010-03-24 00:38 UTC, Pino Toscano
none Details | Review

Description Emilio Pozuelo Monfort 2009-07-11 22:50:05 UTC
Hi,

The attached path from Debian fixes a build failure on GNU/kFreeBSD.

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=342540
Comment 1 Emilio Pozuelo Monfort 2009-07-11 22:50:41 UTC
Created attachment 138253 [details] [review]
fix build failure
Comment 2 Emilio Pozuelo Monfort 2009-12-15 12:33:14 UTC
Ping. The rationale here is that PTHREAD_MUTEX_RECURSIVE_NP is an enum on kFreeBSD, and not a define, so a previous change to fix Hurd broke kFreeBSD.

OK to commit?
Comment 3 Daniel Veillard 2009-12-15 13:00:02 UTC
Disagree, we should still detect if PTHREAD_MUTEX_RECURSIVE_NP 
is defined as a macro and just || for that specific system OS.
Suggest another patch along those lines please,

Daniel
Comment 4 Emilio Pozuelo Monfort 2009-12-19 15:39:58 UTC
Created attachment 150066 [details] [review]
Use PTHREAD_MUTEX_RECURSIVE_NP on kFreeBSD

(In reply to comment #3)
> Disagree, we should still detect if PTHREAD_MUTEX_RECURSIVE_NP 
> is defined as a macro and just || for that specific system OS.
> Suggest another patch along those lines please,

Sure, how does this one look?
Comment 5 Emilio Pozuelo Monfort 2009-12-19 15:40:31 UTC
Also I wonder if the check for linux instead of __linux__ is correct...
Comment 6 Pino Toscano 2010-03-24 00:38:22 UTC
Created attachment 156935 [details] [review]
configure checks for PTHREAD_MUTEX_RECURSIVE_NP and PTHREAD_MUTEX_RECURSIVE

This patch provides configure checks for PTHREAD_MUTEX_RECURSIVE_NP and PTHREAD_MUTEX_RECURSIVE, by checking whether they can be used in code.
If PTHREAD_MUTEX_RECURSIVE_NP is found it used, otherwise if PTHREAD_MUTEX_RECURSIVE it is used, and if none of both is available, it errors out.

Produced against current git/master, successfully tested under GNU/Linux and GNU/Hurd.
Comment 7 Emilio Pozuelo Monfort 2011-07-31 16:35:44 UTC
Ping? Can we commit this? The patch looks good to me. It's much better to check for features in configure.ac this way than trying to list every system in the code. OK to commit?
Comment 8 André Klapper 2018-07-01 08:47:29 UTC
gamin is not under active development anymore and has not seen code changes for many years.
Its codebase has been archived: https://gitlab.gnome.org/Archive/gamin/commits/master

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Please feel free to reopen this ticket (or rather transfer the project to GNOME Gitlab, as GNOME Bugzilla is deprecated) if anyone takes the responsibility for active development again.