gcc -DECLDIR="\"/usr/local/ecl/lib/ecl-12.2.1\"" -I. 
-I/home/mmondor/work/ecl-git/ecl/build -I/home/mmondor/work/ecl-git/ecl/src/c 
-I../ecl/gc -DECL_API -DECL_NO_LEGACY   -I/usr/pkg/include -O2 -g -fPIC  
-Dnetbsd -c -o threads/process.o threads/process.o.c
/home/mmondor/work/ecl-git/ecl/src/c/threads/process.d: In function 
‘mp_process_enable’:
/home/mmondor/work/ecl-git/ecl/src/c/threads/process.d:501:3: error: invalid 
initializer
/home/mmondor/work/ecl-git/ecl/src/c/threads/process.d:503:3: error: 
incompatible type for argument 2 of ‘GC_pthread_sigmask’
/usr/pkg/include/gc/gc_pthread_redirects.h:25:7: note: expected ‘const struct 
sigset_t *’ but argument is of type ‘sigset_t’
*** Error code 1


The second error can be fixed by adding the missing & prefix:


diff --git a/src/c/threads/process.d b/src/c/threads/process.d
index d13234b..2e39d40 100644
--- a/src/c/threads/process.d
+++ b/src/c/threads/process.d
@@ -499,7 +499,7 @@ mp_process_enable(cl_object process)
        {
                sigset_t previous, new = process_env->default_sigmask;
                sigaddset(&new, 
ecl_option_values[ECL_OPT_THREAD_INTERRUPT_SIGNAL]);
-               pthread_sigmask(SIG_SETMASK, new, &previous);
+               pthread_sigmask(SIG_SETMASK, &new, &previous);
                code = pthread_create(&process->process.thread, &pthreadattr,
                                      thread_entry_point, process);
                pthread_sigmask(SIG_SETMASK, &previous, NULL);


There is also an "invalid initializer" error but my eye didn't immediately spot 
why.

Thanks,
-- 
Matt

------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list

Reply via email to