Port to Solaris 2.5/ GNU C++ compiler version 2.7.2.1?

stefan ubben stubben@server.et-inf.fho-emden.de
Thu, 05 Jun 1997 14:37:49 +0200


John Connett wrote:
> 
> Has anyone ported omniORB2 to Solaris 2.5 using the GNU compilers rather
> than the Sun SparcCompilers?
> 

yes i am using solaris 2.5.1 and the gcc2.7.2. i selected the 
sun4_sosV_5.5.mk configuration file. the compilerflag
must contain the "-fhandle-exceptions" flag (remember not
using the "-O2"-flag with the "-fhandle-exceptions"-flag)
before compiling the source you must delete the following
lines in file <home-omniORB>/src/appl/omniNames/log.cc:


// a bug on Solaris means that the fd doesn't get closed.
#if defined(__sunos__) && (__OSVERSION__ == 5)
      if (close(fd) < 0)
        throw IOError();
#endif

now you can compile the source.

good luck 

	stefan


--
Dipl. Inf. (FH) Stefan Ubben
Fachhochschule Ostfriesland, Constantiaplatz 4, 26723 Emden (Germany)
Tel.: (+49)(4921) 807-209, E-Mail: stubben@et-inf.fho-emden.de
FAX:  (+49)(4921) 807-530, WWW: http://sunnyboy.et-inf.fho-emden.de