[ pthread_kill() in signal.h conflicting with devel/pth's attempts to hide 
native pthread]

> 3. /usr/include/signal.h defines pthread_kill() only if __POSIX_VISIBLE
> or __XSI_VISIBLE is defined. Can someone try to inject
> #undef __POSIX_VISIBLE or #undef __XSI_VISIBLE into pth's pthread.h.in
> to see if this fixes the problem and does not cause other problems?

The attached patch dropped into the port makes devel/pth and
security/gnupg build for me.

I'll re-build my full set of ports with the patch and see, but I'm not
really set up to do a global build of all ports. More importantly I
guess is that it doesn't break things on older releases. I'll re-build
my ports on a 7.x system too.

I'm not the most knowledgable about the various POSIX/XSI
compatibility defines and their expected results, but it seems pretty
dangerous to me to flat-out #undef it. Who knows what else depends on
those being set properly in any given application.

How about only doing it for a new enough OS release to at least avoid
breaking older releases, and then communicate the problem upstream and
hope for a better fix?

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schul...@infidyne.com>'
Key retrieval: Send an E-Mail to getpgp...@scode.org
E-Mail: peter.schul...@infidyne.com Web: http://www.scode.org

--- pth_p.h.in.orig     2009-04-06 18:33:15.490908975 +0200
+++ pth_p.h.in  2009-04-06 18:33:32.490533854 +0200
@@ -26,6 +26,9 @@
 #ifndef _PTH_P_H_
 #define _PTH_P_H_
 
+#undef __POSIX_VISIBLE
+#undef __XSI_VISIBLE
+
 /* mandatory system headers */
 #include <stdio.h>
 #include <stdlib.h>

Attachment: pgppiJulP4v8L.pgp
Description: PGP signature

Reply via email to