Przemyslaw,
Przemyslaw Czerpak wrote:
> You have to enable compilation with relocatable code, f.e. use -fPIC or -fpic
> flag in C_USR. But I do not know it it's enough for OpenSolaris. The last
> tests I made with Solaris were done over two years ago.
>
yes, -fpic is the trick, I'll add it to sunos .cf files.
> BTW did you used POSIX thread (pthread) for MT compilation or SunOS
> (thr_*() function) threads?
> I think it will be good to update OpenSolaris Harbour MT builds to work
> on SunOS even without pthread installed.
>
I looked at thr_ vs pthread_ functions and documentation, they're both
implemented inside libc, so there is no real advantage in using thr_ functions.
DESCRIPTION
POSIX and Solaris threads each have their own implementation
within libc(3LIB). Both implementations are interoperable,
their functionality similar, and can be used within the same
application. Only POSIX threads are guaranteed to be fully
portable to other POSIX-compliant environments. POSIX and
Solaris threads require different source, include files and
linking libraries. See SYNOPSIS.
Similarities
Most of the POSIX and Solaris threading functions have coun-
terparts with each other. POSIX function names, with the
exception of the semaphore names, have a "pthread" prefix.
Function names for similar POSIX and Solaris functions have
similar endings. Typically, similar POSIX and Solaris func-
tions have the same number and use of arguments.
Differences
POSIX pthreads and Solaris threads differ in the following
ways:
o POSIX threads are more portable.
o POSIX threads establish characteristics for each
thread according to configurable attribute objects.
o POSIX pthreads implement thread cancellation.
o POSIX pthreads enforce scheduling algorithms.
o POSIX pthreads allow for clean-up handlers for
fork(2) calls.
o Solaris threads can be suspended and continued.
o Solaris threads implement daemon threads, for whose
demise the process does not wait.
[...]
This is from man threads.
Why do you think it would be better to use them?
Maurilio.
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour