Re: Win32/MinGW port
Nils Durner [EMAIL PROTECTED] writes: As there are no signals on Win32, I *think* it is okay to just ifndef MINGW the code. That might be worth trying. (But not with ifdef mingw, rather a test for missing funcs or features. There's already been mingw-specific conditionals that became bogus because missing bits have since been added to the system.) #include fcntl.h #define pipe(f) _pipe(f, 1000, _O_BINARY) Yep, we've got that in another file. It might be worth sticking in _scm.h to get it everywhere. ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile
Re: Win32/MinGW port
How bad are the missing bits? It's not too bad. pthreads-win32 is fairly complete and working. The mentioned functions are missing because Windows lacks the concept of signals altogether. Should configure reject it because there's no pthread_sigmask, or is there something the code can do to cope? As there are no signals on Win32, I *think* it is okay to just ifndef MINGW the code. Regarding the undefined pipe(): the easiest thing to do would be to define pipe() in the following way: #include fcntl.h #define pipe(f) _pipe(f, 1000, _O_BINARY) _pipe() takes two additional parameters: size in bytes and file mode. Note that these pipes are blocking. Nils ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile
Re: Win32/MinGW port
Nils Durner [EMAIL PROTECTED] writes: Yes, but some functions are not supported by pthreads-w32. How bad are the missing bits? Should configure reject it because there's no pthread_sigmask, or is there something the code can do to cope? ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile
Win32/MinGW port
Hi, compiling guile-core-1.8-20061001 under MinGW fails with the following error message: --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 -Wall -Wmissing-prototypes -W error -MT libguile_la-scmsigs.lo -MD -MP -MF .deps/libguile_la-scmsigs.Tpo -c sc msigs.c -DDLL_EXPORT -DPIC -o .libs/libguile_la-scmsigs.o scmsigs.c: In function `signal_delivery_thread': scmsigs.c:156: warning: implicit declaration of function `sigfillset' scmsigs.c:157: warning: implicit declaration of function `pthread_sigmask' scmsigs.c: In function `start_signal_delivery_thread': scmsigs.c:182: warning: implicit declaration of function `pipe' make[3]: *** [libguile_la-scmsigs.lo] Error 1 make[3]: Leaving directory `/home/guile-core-1.8-20061001/libguile' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/guile-core-1.8-20061001/libguile' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/guile-core-1.8-20061001' make: *** [all] Error 2 --- After removing do_read_without_guile(), read_without_guile, signal_delivery_thread() and the content of start_signal_delivery_thread() from scmsigs.c, the build process fails at threads.c: --- gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -g -O2 -Wall -Wmissing-prototypes -W error -MT libguile_la-threads.lo -MD -MP -MF .deps/libguile_la-threads.Tpo -c th reads.c -DDLL_EXPORT -DPIC -o .libs/libguile_la-threads.o threads.c: In function `thread_print': threads.c:146: error: aggregate value used where an integer was expected threads.c: In function `block_self': threads.c:207: warning: passing arg 3 of `scm_pthread_cond_timedwait' from incom patible pointer type threads.c: At top level: threads.c:1429: error: conflicting types for 'scm_pthread_cond_timedwait' ../libguile/threads.h:203: error: previous declaration of 'scm_pthread_cond_time dwait' was here threads.c:1429: error: conflicting types for 'scm_pthread_cond_timedwait' ../libguile/threads.h:203: error: previous declaration of 'scm_pthread_cond_time dwait' was here threads.c: In function `scm_pthread_cond_timedwait': threads.c:1431: warning: passing arg 3 of `pthread_cond_timedwait' from incompat ible pointer type make[3]: *** [libguile_la-threads.lo] Error 1 --- Please CC me all answers as I'm not subscribed to the list. Regards, Nils Durner ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile
Re: Win32/MinGW port
Nils Durner [EMAIL PROTECTED] writes: scmsigs.c:157: warning: implicit declaration of function `pthread_sigmask' Does it have pthreads? Did you ask for them, or did configure wrongly decide to use them? ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile
Re: Win32/MinGW port
scmsigs.c:157: warning: implicit declaration of function `pthread_sigmask' Does it have pthreads? Yes, but some functions are not supported by pthreads-w32. Did you ask for them, or did configure wrongly decide to use them? No, I didn't ask. Nils ___ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile