Was wondering if any of the core Haiku developers came into possesion of a ported pthreads library that could legally get included in the source tree? I think it was either related to the Mozilla porting process or some addition that the Zeta group had done.
Reason I ask is that that pthreads and a Posix networking stack is probably the only thing standing in the way of getting most of Mono working.
I suspect it’s more than just pthreads, but I haven’t dug into it much myself. Let me know if you get serious about looking into a port - I’ve considered the possibility myself and would like to help out.
So, I’m going to assume Haiku doesn’t have pthread library yet.
A few Bezilla developers got Zeta’s pthread lib but I believe it is the binary ( not the source ).
PS I stumbled upon pthread library source code for Zeta. I believe it is the new pthread version but can’t say for sure. You can try building & using it and contact the authors for more info.
After hearing this I confirmed it to be true. In order to make building easier, I opened a terminal and did this:
# cd /Haiku/develop/lib/x86
# ln -s libroot.so libpthread.so
This creates a symlink to libroot.so in a file called libpthread.so. This way I don’t have to go in and modify a bunch of Makefiles. It seems to compile the resulting apps correctly.
NO NO NO, you don’t symlink it - that will fail on every other haiku install.
Instead, you fix the build system for whatever you’re building to only link to libpthread if it exists. otherwise all the pthread functions are already in libroot (which is linked automatically).
Same with libm btw - if you run into that.
This issue needs to be added to this page - enough people run into it: