Subject: header problems...
To: MacBSD <port-mac68k@netbsd.org>
From: Riccardo Mottola <zuse@libero.it>
List: port-mac68k
Date: 04/16/2003 00:35:02
Hello,

I am trying to compile the latest version of GNUstep (from the sources, not
the package). It doesn't compile (really the core gnustep-objc). I remember
that some months ago I was able to compile it from the packages. Were they
severly patched?

Anyway the problems are threads, i tried posix and pthreads. in the gnustep
mailing list they pointed out to a thread problem confromance to posix in
both cases.

POSIX:
 Compiling file sendmsg.c ...
sendmsg.c: In function `__objc_get_forward_imp':
sendmsg.c:109: warning: control reaches end of non-void function
 Compiling file thr-posix.c ...
thr-posix.c: In function `__objc_thread_set_priority':
thr-posix.c:101: storage size of `params' isn't known
thr-posix.c:106: warning: implicit declaration of function
`sched_get_priority_max'
thr-posix.c:109: warning: implicit declaration of function
`sched_get_priority_min'
thr-posix.c:101: warning: unused variable `params'
thr-posix.c: In function `__objc_thread_get_priority':
thr-posix.c:134: storage size of `params' isn't known
thr-posix.c:134: warning: unused variable `params'
thr-posix.c:140: warning: control reaches end of non-void function
gmake[1]: *** [shared_obj/m68k/netbsdelf1.6/gnu-gnu-gnu/thr-posix.o] Error 1
gmake: *** [libobjc.all.clibrary.variables] Error 2
peregrin: {29}


PTHREADS:
do I have to abandon posix threads? I tried pthereads then, obtaining:

sendmsg.c: In function `__objc_get_forward_imp':
sendmsg.c:109: warning: control reaches end of non-void function
 Compiling file thr-pthreads.c ...
thr-pthreads.c:28: pcthread.h: No such file or directory
thr-pthreads.c:33: parse error before `_objc_thread_storage'
thr-pthreads.c:33: warning: type defaults to `int' in declaration of
`_objc_thread_storage'
thr-pthreads.c:33: warning: data definition has no type or storage class
thr-pthreads.c: In function `__objc_init_thread_system':
thr-pthreads.c:42: warning: implicit declaration of function
`pthread_key_create'
<snip>
thr-pthreads.c: In function `__objc_condition_signal':
thr-pthreads.c:215: warning: implicit declaration of function
`pthread_cond_signal'
thr-pthreads.c:215: `pthread_cond_t' undeclared (first use in this function)
thr-pthreads.c:215: parse error before `)'
gmake[1]: *** [shared_obj/m68k/netbsdelf1.6/gnu-gnu-gnu/thr-pthreads.o]
Error 1
gmake: *** [libobjc.all.clibrary.variables] Error 2

any suggestions?

-ric