ltsmin icon indicating copy to clipboard operation
ltsmin copied to clipboard

Build issue on NetBSD

Open mayureshw opened this issue 3 years ago • 3 comments

I am trying to build LTSmin on NetBSD.

I get an error during configure as it tests for function pthread_mutexattr_setpshared

On NetBSD man pthread_mutexattr_setpshared says:

BUGS The pthread_mutexattr_getpshared() and pthread_mutexattr_setpshared() functions are hidden by default since only thread shared attributes are supported.

Given this, what workaround would you suggest - both for the configure script and use of this function in src/hre/hre_pthread.c.

mayureshw avatar Jul 03 '22 16:07 mayureshw

patches.txt

Have attached patches that led to a successful build on NetBSD.

mayureshw avatar Jul 05 '22 11:07 mayureshw

Would you mind formatting this as a PR, ie.build a fork of current version, edit the files and then build a PR (contribute button on your fork). This would make it easier to integrate, netBSD is not the main platform but minor changes such as these are ok if they are formatted as a PR it's easier than diff format.

yanntm avatar Jun 20 '23 20:06 yanntm

Above patches were on the last released version. I had a look at the master branch and the patches do not seem to apply as-is. Will need some work on this. Will take it up when time permits.

mayureshw avatar Jul 09 '23 10:07 mayureshw