[Mono-list] mono on NetBSD

Scott Aaron Bamford sab@zeekuschrist.com
Fri, 13 Dec 2002 19:51:44 +0000


Hi,
	I've been working on getting mono running on my NetBSD box.  I've got it to compile but get the following output when running:

$ pwd ; which mcs
/usr/localsrc/mono/mcs-0.16/tests
/usr/local/bin/mcs
$ mcs test-9.cs
**Pth** SCHEDULER INTERNAL ERROR: no more thread(s) available to schedule!?!?

** (/usr/local/bin/mcs.exe:18203): WARNING **: _wapi_handle_new: bogus daemon response, type 136003072

** ERROR **: file handles.c: line 228 (_wapi_handle_new): should not be reached
aborting...
Abort trap

Part of porting the code involved switching sem_* over to pthread_mutex's, something I've done a few times in other projects, the pthread library linked against is pth-14.21.  And the changes are basicly along the lines of:

+#ifdef HAVE_SEMAPHORE_H
        sem_post (&thread->suspend_sem);
+#else
+       pthread_mutex_unlock (&thread->suspend_sem);
+#endif

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.

 - Scott

                                             &
         _.-'"''--..___.("\-''-'")           i         . O
 ('.__.' .(     )  .-'   (   6_6'  -------- |#| ------ o -  ,,'''''', ------- 
  '-..-'' .' _.' (   -.   '(._Y_)       ____| |____    .  ,'         ) ,',   |
 |        ', '._  \  \_-.._ `--'.._    | # #: :# # |     (  O  <<<<<  ' <    |
 |          '-.!)) '.(il)   ''-.(li)   | # _____ # |      ',,     ,,,) ','   |
 |                                     |___ilili___|         ',,,'           |
  ----- sab@zeekuschrist.com ------------------------- sab@posix.org.uk -----