[omniORB] Errors when compiling omniORB (4.0.6) on Mac OS X Tiger (10.4.1)

Duncan Grisby duncan at grisby.org
Sun May 22 14:38:05 BST 2005


On Saturday 21 May, Arjan Wekking wrote:

> I would like to confirm whether anyone else has tried to compile
> omniORB 4.0.6 on Max OS X Tiger (10.4.1) and has encountered the same
> issues I have.

[...]
> 2. Compiling everything else seems to succeed, until I get to appl/
> utils/catior/catior.cc, which bails out with a rather cryptic:
> 
> > catior.cc: In function `int main(int, char**)':
> > catior.cc:451: error: expected unqualified-id before '(' token
> > catior.cc:451: error: expected primary-expression before ')' token
> > catior.cc:451: error: expected primary-expression before ')' token
> 
> Which seems odd to me, since I can see nothing wrong with the
> offending line (451):
> 
> > cerr << "(CORBA::MARSHAL: minor = 0x" << hex << ex.minor() << ")"
> >        << endl;

Apple helpfully #define minor as a macro in sys/types.h, which causes
the cryptic error. #undef minor fixes it.

I've checked in fixes for both problems to CVS, so if you get the latest
CVS version, it should work fine.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list