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 315615 - gamin fix to compile non non-GLIBC systems
gamin fix to compile non non-GLIBC systems
Status: RESOLVED FIXED
Product: gamin
Classification: Other
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: Gamin Maintainer(s)
Gamin Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-09-09 09:35 UTC by Diego Elio Pettenò
Modified: 2005-09-09 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gamin-0.1.6-freebsd.patch (476 bytes, patch)
2005-09-09 09:36 UTC, Diego Elio Pettenò
none Details | Review

Description Diego Elio Pettenò 2005-09-09 09:35:57 UTC
Distribution/Version: Gentoo/FreeBSD 5.4

Compiling gamin on non-GLIBC systems, although it's improved in latest 0.1.6, 
it's still not possible. 
 
The reason is that the check for PTHREAD_MUTEX_RECURSIVE that is used will 
always fail because it uses a faulty logic: 
 
#ifndef PTHREAD_MUTEX_RECURSIVE 
        pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); 
#else 
        pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); 
#endif 
 
but both PTHREAD_MUTEX_RECURSIVE and PTHREAD_MUTEX_RECURSIVE_NP are enum 
entries, not #defines so it will not work. 
 
The attached patch looks directly for __GLIBC__ and should then be safe.
Comment 1 Diego Elio Pettenò 2005-09-09 09:36:48 UTC
Created attachment 52006 [details] [review]
gamin-0.1.6-freebsd.patch
Comment 2 Daniel Veillard 2005-09-09 11:10:02 UTC
Okay, makes sense, applied and commited in CVS,

 thanks,

Daniel