What does one link with to make a program using CMA_ functions
run?
Linking with sys$share:cma$open_rtl does not give any link
errors.
But it seems like whatever I call then I get:
%CMA-F-EXISTENCE, object referenced does not currently exist
So I guess I should be linking with something else. But what?
VMS 9.2-3 if it matters.
On 12/1/25 9:22 PM, Arne Vajh|+j wrote:
What does one link with to make a program using CMA_ functions
run?
Linking with sys$share:cma$open_rtl does not give any link
errors.
But it seems like whatever I call then I get:
%CMA-F-EXISTENCE, object referenced does not currently exist
So I guess I should be linking with something else. But what?
VMS 9.2-3 if it matters.
Isn't there an image called CMA$TIS_SHR?
On 12/1/2025 10:29 PM, Craig A. Berry wrote:
On 12/1/25 9:22 PM, Arne Vajh|+j wrote:
What does one link with to make a program using CMA_ functions
run?
Linking with sys$share:cma$open_rtl does not give any link
errors.
But it seems like whatever I call then I get:
%CMA-F-EXISTENCE, object referenced does not currently exist
So I guess I should be linking with something else. But what?
VMS 9.2-3 if it matters.
Isn't there an image called CMA$TIS_SHR?
Yes.
I tried adding that, adding PTHREAD$RTL in various combinations.
Same error.
I also tried on VMS Alpha - same problem. So it is not a x86-64
problem - I am doing something wrong.
Second argument to pthread_create is a pthread_attr_t*.
NULL works fine.
Second argument to cma_thread_create is a cma_t_attr*.
NULL gives the error above.
A cma_t_attr memset to zero works.
On 12/2/2025 11:18 AM, Arne Vajh|+j wrote:
Second argument to pthread_create is a pthread_attr_t*.
NULL works fine.
Second argument to cma_thread_create is a cma_t_attr*.
NULL gives the error above.
A cma_t_attr memset to zero works.
And now I found some documentation for cma_.
The right solution is apparently to call with
cma_c_null !
Arne
On 12/4/2025 9:05 AM, Arne Vajh|+j wrote:
On 12/2/2025 11:18 AM, Arne Vajh|+j wrote:
Second argument to pthread_create is a pthread_attr_t*.
NULL works fine.
Second argument to cma_thread_create is a cma_t_attr*.
NULL gives the error above.
A cma_t_attr memset to zero works.
And now I found some documentation for cma_.
The right solution is apparently to call with
cma_c_null !
When all else fails, RTFM ..
On 12/9/2025 12:23 AM, Dave Froble wrote:
On 12/4/2025 9:05 AM, Arne Vajh|+j wrote:
On 12/2/2025 11:18 AM, Arne Vajh|+j wrote:
Second argument to pthread_create is a pthread_attr_t*.
NULL works fine.
Second argument to cma_thread_create is a cma_t_attr*.
NULL gives the error above.
A cma_t_attr memset to zero works.
And now I found some documentation for cma_.
The right solution is apparently to call with
cma_c_null !
When all else fails, RTFM ..
Or as they say "Amazing how a few hours of creative
experimentation can save several minutes of reading
the documentation".
In this case the first problem was to find the documentation
because this API seems to have been removed from documentation
30 years ago.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 54 |
| Nodes: | 6 (1 / 5) |
| Uptime: | 21:15:39 |
| Calls: | 742 |
| Files: | 1,218 |
| D/L today: |
6 files (8,794K bytes) |
| Messages: | 186,011 |
| Posted today: | 1 |