ORBit uses dynamically loadable libraries and these need to be on the LD_LIBRARY_PATH for things to work.
When you get an object using a stringified IOR, make sure you trim the trailing newline from the string before passing it on.
You must activate the POAManager before incoming requests can be processed
PortableServer_POAManager_activate(PortableServer_POA__get_the_POAManager(poa,&ev),&ev)