[Fwd: Re: [geeks] ORBit under IRIX]

Dave McGuire geeks at sunhelp.org
Mon Dec 10 12:40:42 CST 2001


On December 10, Michael Meeks wrote:
> > Howdy folks!  A friend was mentioning trouble compiling ORBit (0.5.12)
> > on IRIX.  I was wondering if anybody could give him some pointers as to
> > what to try.  Message attached.  Thanks,
> >
> > Making all in orb
> > make[3]: Entering directory
> > `/usr/people/mcguire/src/t/ORBit-0.5.12/src/orb'
> > ../../src/orbit-idl-compiler/orbit-idl --noskels
> > ../../src/daemons/interface_repository/interface_repository.idl
> > ld32: WARNING 84: /usr/lib32/libm.so is not used for resolving any
> > symbol.  Error: Empty file
> 
> 	This looks like the IDL compiler is linked against the math
> library, and yet uses no symbols from it - and this causes your system
> to barf. If so that's unbelievably broken.
> 
> 	Thus I think in actual fact you've somehow not got the
> interface_repository.idl on your system - or it got truncated somehow.
> Can you verify that this file contains valid contents, and that you can
> run the IDL compiler correctly on some other file.

  Hi Michael, thanks for responding.  The message that you refer to
above is just a warning, not the actual failure.  The failure is the
"Error: Empty file" message (from the yacc parser) directly under that
warning.  The .idl file is fine.  I finally tracked down the cause;
the presence of "-I-" in the cc command line in libIDL/util.c pisses
of IRIX cc.  This patch makes it work:

*** ORBit-0.5.12/libIDL/util.c  Sun Dec  9 23:06:24 2001
--- ORBit-0.5.12/libIDL/util.c-orig     Sun Dec  9 23:24:31 2001
***************
*** 205,211 ****
        char *fmt = CPP_PROGRAM " " CPP_NOSTDINC " - %s%s %s < \"%s\" 2>/dev/null";
        char *wd = "", *dirend;
  #else
!       char *fmt = CPP_PROGRAM " " CPP_NOSTDINC " -I -I%s %s \"%s\" 2>/dev/null";
        char *s, *tmpfilename;
        char cwd[2048];
        gchar *linkto;
--- 205,211 ----
        char *fmt = CPP_PROGRAM " " CPP_NOSTDINC " - %s%s %s < \"%s\" 2>/dev/null";
        char *wd = "", *dirend;
  #else
!       char *fmt = CPP_PROGRAM " " CPP_NOSTDINC " -I- -I%s %s \"%s\" 2>/dev/null";
        char *s, *tmpfilename;
        char cwd[2048];
        gchar *linkto;

  This gets ORBit to build under IRIX 6.5.  Of course after spending a
while tracking that down, the whole thing (getting gnome working) went
to hell in a handbasket while trying to build oaf.  I've given
up in frustration...looks like gnome isn't in my future. :-(

  Suggestions are welcome...

    Thanks,
     -Dave

-- 
Dave McGuire
St. Petersburg, FL



More information about the geeks mailing list