From: awdorrin <awdorrin@gmail.com>
Subject: Re: POSIX.Semaphores question
Date: Mon, 5 Dec 2011 04:25:38 -0800 (PST)
Date: 2011-12-05T04:25:38-08:00 [thread overview]
Message-ID: <2166814f-4a26-4425-965f-2c6215eeedde@d17g2000yql.googlegroups.com> (raw)
In-Reply-To: 9jvdbkFdi2U1@mid.individual.net
On Dec 3, 2:59 pm, Niklas Holsti <niklas.hol...@tidorum.invalid>
wrote:
>
> This pragma gives the variable a very short linkage name, "ready", which
> is moreover a common word. Perhaps the same name is used by some other
> module of the program, for some other program item, and this confuses
> the linker. Does the linker give any errors or warnings?
>
> Try it with a longer name, one less likely to be in use already for
> something else.
>
I simplified the example code that I posted - the actual name I'm
using is much longer. (Sem_R_RTSIM_SHM_READY, R_RTSIM_SHM_READY and
r_rtsim_shm_ready)
I see no warnings or errors during the compile or link. I am linking
the Ada files into a library which is compiled into a C main.
The only thing I do see, is when I add the compile flat to print out
the rep specs - the Semaphore is given two different sizes...
for SEM_R_RTSIM_SHM_READY'Size use 128;
for SEM_R_RTSIM_SHM_READY'Size use 192;
It should be 128, not sure why its later showing as 192... from
looking at the definition for sem_t on this linux system, it should be
128.
next prev parent reply other threads:[~2011-12-05 12:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 15:43 POSIX.Semaphores question awdorrin
2011-12-02 16:54 ` awdorrin
2011-12-02 17:06 ` Georg Bauhaus
2011-12-02 17:09 ` Georg Bauhaus
2011-12-02 17:22 ` awdorrin
2011-12-03 16:32 ` awdorrin
2011-12-03 19:59 ` Niklas Holsti
2011-12-05 12:25 ` awdorrin [this message]
2011-12-05 14:19 ` Georg Bauhaus
2011-12-05 16:58 ` awdorrin
2011-12-05 17:59 ` Simon Wright
2011-12-06 0:53 ` awdorrin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox