Duraid, >> I'm just wondering if anyone has had any luck using pth pthreads under HP-UX? (11.00 or 11.11)
I've built pth under 10.20 and am trying to port a streaming server with it (using posix compatibility library). It compiles just fine. But i havent been able to get the apps threading working yet (it appears that pthread_create is falling to call the thread run functions until I force a shutdown of the server and subseqently issue a pthreads_join) . >> It's easy enough to build pth on HP-UX 11.00 (using GCC 3.1) so that it >> passes all its tests, but when I try building a program against pth's >> pthreads, I get a heap of complaints that various things (e.g. >> pthread_attr_t) have conflicting definitions (one in pth's headers, one >> in HP's headers). That isnt completely suprising since HPUX 11 comes with its own version of Pthreads. You must make sure your app is only referencing the pth pthread include file, and not the system one as well (/usr/include/pthread.h). One way to do that is to ensure all your apps files #include "/your/path/to/pth/pthreads.h" and not #include <pthreads.h> Any reason why you just dont use the "native" HPUX pthreads library in preference to pth's ? (no that there anything wrong in trying - just more work for you 8-) Regards, pf ______________________________________________________________________ GNU Portable Threads (Pth) http://www.gnu.org/software/pth/ User Support Mailing List [EMAIL PROTECTED] Automated List Manager (Majordomo) [EMAIL PROTECTED]