[omniORB] Compiling omniORB 2.7.1 under IRIX 6.5.3

Børge Moe borge.moe@dnmi.no
Tue, 27 Apr 1999 15:15:30 +0200


This is a multi-part message in MIME format.
--------------07304998A52C0920EBBB706D
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

The configuraion file mips_irix_6.5_n32.mk does not link omniNames,
catior, etc correct. The resulting binaries core dumps.

After some experimenting with the linking did I come up with a link line
that is functional. It seems that the pthread library must be the last
libray listed. I have attached a configuration file for IRIX 6.5.3.

Borge
--------------07304998A52C0920EBBB706D
Content-Type: text/plain; charset=us-ascii; name="mips_irix_6.5.3_n32.mk"
Content-Disposition: inline; filename="mips_irix_6.5.3_n32.mk"
Content-Transfer-Encoding: 7bit

#
# mips_irix_6.5.mk - make variables and rules specific to SGI Irix 6.5
#

IRIX = 1
IRIX_n32 = 1
IndigoProcessor = 1


#
# Include general unix things
#

include $(THIS_IMPORT_TREE)/mk/unix.mk

#
# C preprocessor macro definitions for this architecture
#

IMPORT_CPPFLAGS += -D__mips__ -D__irix__ -D__OSVERSION__=6


#
# Standard programs
#

AR = ar cq
RANLIB = true

MKDIRHIER = mkdirhier
INSTALL   = $(TOP)/bin/scripts/install-sh -c


CPP = 'CC -E'

# The cc/CC version 7.2 (mips)
#
CXX = CC
CXXMAKEDEPEND = $(TOP)/$(BINDIR)/omkdepend -D__SGI_CC -D__cplusplus
CXXDEBUGFLAGS = 
CXXWOFFOPTIONS =  -woff 3303,1110,1182
CXXOPTIONS     =  -n32 -float -ansi -LANG:exceptions=ON $(CXXWOFFOPTIONS)
CXXLINK		= $(CXX)
CXXLINKOPTIONS  = $(CXXDEBUGFLAGS) $(CXXOPTIONS)

CC                = cc
COPTIONS          = -n32
CLINKOPTIONS      = $(COPTIONS)
CMAKEDEPEND       = $(TOP)/$(BINDIR)/omkdepend
CLINK             = $(CC)

#
# OMNI thread stuff
#

Posix_OMNITHREAD_LIB = $(patsubst %,$(LibSearchPattern),omnithread) -lpthread
Posix_OMNITHREAD_CPPFLAGS = -DUsePthread -D_REENTRANT 
OMNITHREAD_POSIX_CPPFLAGS = -DPthreadDraftVersion=10 \
			    -DPthreadSupportThreadPriority

OMNITHREAD_LIB = $($(ThreadSystem)_OMNITHREAD_LIB)
OMNITHREAD_CPPFLAGS = $($(ThreadSystem)_OMNITHREAD_CPPFLAGS)

ThreadSystem = Posix

lib_depend := $(patsubst %,$(LibPattern),omnithread)
OMNITHREAD_LIB_DEPEND := $(GENERATE_LIB_DEPEND)

#
# CORBA stuff
#

omniORB2GatekeeperImplementation = OMNIORB2_TCPWRAPGK
CorbaImplementation = OMNIORB2

# It seems that the linker must have the pthread library as the last 
# library. The folowing lines filter out the pthread library from 
# OMNIORB2_LIB, and add it again as the last library. 
MY_TEMP:=$(filter-out -lpthread, $(OMNIORB2_LIB))
OMNIORB2_LIB=$(MY_TEMP)
OMNIORB2_LIB+=$(patsubst %,$(LibSearchPattern),pthread)




# Default location of the omniORB2 configuration file [falls back to this if
# the environment variable OMNIORB_CONFIG is not set] :

OMNIORB_CONFIG_DEFAULT_LOCATION = \"/etc/omniORB.cfg\"

# Default directory for the omniNames log files.
OMNINAMES_LOG_DEFAULT_LOCATION = \"/var/omninames\"

--------------07304998A52C0920EBBB706D--