> 
> I got a slimmed down freepascal version of the posix timer example to work;
> 
> http://www.sytekcom.com/eng/fp_Linux_PosixTimer.html
>

I had a good look at what you have created. I was surprised to see that
Pascal tries to control from within the source the library from which
specific _external_ functions are picked, for example the timer-related
calls from "rt" and signal-related calls from the "c" library (librt.so
and libc.so). That is "strange" enough, controlling from the source what
objects are linked are the linking step. But I do not really know Pascal
and its idiosyncrasies.

I will get the freepascal software and try to run it and see what the issue
is with the unions.