Re: NO_BRIDGE_IMPL() issue (avis is compiled/linked properly)
Philip Preston <PPreston@...>
Gagan
toggle quoted messageShow quoted text
It will compile - but the programs won't work because mac os x does not fully implement posix semaphores, and as such it silently fails. Also it won't load the bridge in the example apps unless you change the LIB_EXTENSION to .dylib (if you haven't already). The function calls exist for posix unnamed semaphores on mac but return error codes indicate they are not implemented - mama doesn't log the failure cause its not an issue on any of the officially supported os. This stops any of the queues working. You can work around this by implementing named semaphores. I'd made some changes to do this for openmama1 and have got most of moved to a local openmama2, following the breakout of platforms in wombatcommon. Have added a darwin folder with appropriate changes. Happy to pass it on once I get time to finish / tidy it up. Also had it setup in xcode. Cheers Phil Philip Preston NYSE Technologies Adelaide Exchange 24-26 Adelaide St Belfast, BT2 8GD United Kingdom t: +44 (0) 2890 822 091 m: +44 (0) 7903 300307 e: ppreston@... NYSE Euronext Powering the Exchanging World www.nyse.com/technologies _
----- Original Message -----
From: Gagan Sidhu [mailto:gagan@...] Sent: Thursday, November 29, 2012 06:08 PM To: openmama-users@... <openmama-users@...> Subject: Re: [Openmama-users] NO_BRIDGE_IMPL() issue (avis is compiled/linked properly) Hey Glen, On 2012-11-29, at 10:58 AM, Glenn McClements <gmcclements@...> wrote: Hi Gigan,yeah, theoretically speaking there is not much of a difference in the required libs. I installed avis in /usr/local so /usr/local/include contains the avis folder, and /usr/local/lib contains libavis I didn't export DYLD_LIBRARY_PATH till now, but it looks like this: GagansMacPro:c Gagan$ echo $DYLD_LIBRARY_PATH /opt/openmama/lib:/usr/local/lib: and changing -lmamaavisimpl to -lavis and re-compiling with Makefile -f sMakefile.sample still gets the same sort of issue. I've tried -v -v -v -v before because will henry suggested it, but that didn't work: GagansMacPro:c Gagan$ ./mamalistenc -m avis -v -v -v -v Enter one symbol per line and terminate with a . Symbol> . Could not open MAMA avis bridge. Given that the verbose output doesn't work, I'm really puzzled as to what is causing the issue. Is there a way to check that the compiled libraries have everything? FYI: I am new to the whole "trading" thing. I do not have any avis servers or anything like that setup, just the client installed. I'm wondering why the examples say tiprv/elvin/one other oen, but do not mention avis? I assume elvin is avis but just slightly different. In any case, is there a way to check the "integrity" of the libraries first? They must be the issue, as the programs compile fine but are failing to load the bridge. I agree, but I want to hold off on sharing those changes until we can ensure the build works properly. They are small changes here and there, but most definitely should not be the reason for the error. -gAgan ;) Glenn_______________________________________________ Openmama-users mailing list Openmama-users@... https://lists.openmama.org/mailman/listinfo/openmama-users ________________________________ Please consider the environment before printing this e-mail. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
|
|