[Mono-list] mono on NetBSD
Scott Aaron Bamford
sab@zeekuschrist.com
Sat, 14 Dec 2002 20:04:47 +0000
This is a multi-part message in MIME format.
--Multipart_Sat__14_Dec_2002_20:04:47_+0000_08c8e600
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
On Fri, 13 Dec 2002 13:23:03 -0800
Juli Mallett <jmallett@FreeBSD.ORG> wrote:
> * De: Scott Aaron Bamford <sab@zeekuschrist.com> [ Data: 2002-12-13 ]
> [ Subjecte: [Mono-list] mono on NetBSD ]
> > Plus a few changes to the build system that would probably end up in a NetBSD pkgsrc package. Anyone had any success with mono on NetBSD? Does the above seem sensible enough or have I missed something in mono's use of sem_*? Can easirly provide full patch for anyone whos interested in helping me knock this little error on the head. Thanks for any assitance.
>
> What sort of changes to the build system?
I had just added the flags nessasry to support pthreads on NetBSD to the various makefiles while they are needed. When I thought about it, it would be better to check for native pthreads in configure, and if it cannot find them, check for one of the pthread packages, I've had most success (in general) with GNU Pth, plus, its very easy to check for, so I've added those lines to the configure script.
> As for all other issues, you may want to try with 0.17 or current CVS to be
> sure?
Okay, I got the cvs copy, reapplied my changes, and any others that needed to be done, and with the change to the configure script it compiles "out of the box" now on NetBSD. Not been able to test if I still get the problem when using the compiled mono now because I don't have all the libraries (from runtime/) installed, and I have nothing to bootstrap a mcs with, any ideas?
Anyhow, patch attached that adds the above pthread checking to configure.in and that uses pthread_mutex's if semaphore.h cannot be found, and thus sem_* cannot be used. Will that always DTRT or are there systems where semaphore.h is not present but sem_* still is? Could someone with cvs access review and commit, thanks. And thanks for anyone with ideas about where I can get/make the neassary runtime libs without a version of mcs?
- Scott
&
_.-'"''--..___.("\-''-'") i . O
('.__.' .( ) .-' ( 6_6' -------- |#| ------ o - ,,'''''', -------
'-..-'' .' _.' ( -. '(._Y_) ____| |____ . ,' ) ,', |
| ', '._ \ \_-.._ `--'.._ | # #: :# # | ( O <<<<< ' < |
| '-.!)) '.(il) ''-.(li) | # _____ # | ',, ,,,) ',' |
| |___ilili___| ',,,' |
----- sab@zeekuschrist.com ------------------------- sab@posix.org.uk -----
--Multipart_Sat__14_Dec_2002_20:04:47_+0000_08c8e600
Content-Type: application/octet-stream;
name="semtopthread.20021214.patch"
Content-Disposition: attachment;
filename="semtopthread.20021214.patch"
Content-Transfer-Encoding: base64
ZGlmZiAtcnUgLi4vbW9uby5vcmlnL2NvbmZpZ3VyZS5pbiAuL2NvbmZpZ3VyZS5pbgotLS0gLi4v
bW9uby5vcmlnL2NvbmZpZ3VyZS5pbglNb24gRGVjICA5IDE4OjIyOjQ4IDIwMDIKKysrIC4vY29u
ZmlndXJlLmluCVNhdCBEZWMgMTQgMTg6MDU6MDIgMjAwMgpAQCAtMTYzLDYgKzE2MywxOSBAQAog
CQk7OwogZXNhYwogCitkbmwgU2VlIGlmIGF1dG9jb25mIGNhbiBmaW5kIGEgcHRocmVhZCBpbXBs
ZW1lbnRhdGlvbgorZG5sIElmIGl0IGNhbm5vdCB0aGVuIHNlZSBvZiBwdGggaXMgaW5zdGFsbGVk
LCBpZiBzbyB1c2UgdGhhdAorQUNfQ0hFQ0tfSEVBREVSKHB0aHJlYWQuaCwgRk9VTkRfUFRIUkVB
RF9IPXllcywgRk9VTkRfUFRIUkVBRF9IPW5vKQoraWYgdGVzdCAieCRGT1VORF9QVEhSRUFEX0gi
ID0gInhubyIgOyB0aGVuCisJQUNfUEFUSF9QUk9HKFBUSF9DT05GSUcsIHB0aHJlYWQtY29uZmln
LCBubykKKwlpZiB0ZXN0ICJ4JFBUSF9DT05GSUciID0gInhubyIgOyB0aGVuCisJCUFDX01TR19F
UlJPUihbWW91IG5lZWQgZWl0aGVyIG5hdGl2ZSBwdGhyZWFkcyBvciBHTlUgcHRoXSkKKwllbHNl
CisJCUNGTEFHUz0iJENGTEFHUyBgcHRocmVhZC1jb25maWcgLS1jZmxhZ3NgIgorCQlMREZMQUdT
PSIkTERGTEFHUyBgcHRocmVhZC1jb25maWcgLS1saWJzYCIKKwlmaQorZmk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