[omniORB] Solaris, gcc 2.8.1 and omniORB2
Jens Apel
jens.apel@theoinf.tu-ilmenau.de
Fri, 28 Aug 1998 17:00:46 +0200
This is a multi-part message in MIME format.
--------------1A991160D875F0B95AAE23C6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello omniORBlers,
I just want to share my experiences Compiling OmniORB2 under Solaris
using gcc2.8.1
The good news is: it is possible !!!
I used gcc 2.8.1 from the Summertime98 CD from micromata
(http://www.micromata.de)
Attention: There are different 2.8.1 releases. The ChangeLog in my one
stops March 2.
I had another 2.8.1 release, which did not work.....
The bad news is: Some patches were necessary.
After patching some files (the diffs are in the attachment of this
message) it compiled
properly.
The examples in echo are working fine too.
Currently I try to get the Java-examples running, but for that I still
have to work
a little bit.
Maybe this changes will be included in the next release.
Regards,
Jens
--------------1A991160D875F0B95AAE23C6
Content-Type: text/plain; charset=us-ascii; name="changes.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="changes.diff"
diff -r ./mk/platforms/sun4_sosV_5.5.mk ../orig/omniORB_2.5.0/mk/platforms/sun4_sosV_5.5.mk
32c32
< #CPP = /usr/ccs/lib/cpp
---
> CPP = /usr/ccs/lib/cpp
34,37c34,37
< #CXX = CC
< #CXXMAKEDEPEND = $(TOP)/$(BINDIR)/omkdepend -D__SUNPRO_CC -D__cplusplus
< #CXXDEBUGFLAGS = -O2 -fsimple
< #CXXMTFLAG = -mt
---
> CXX = CC
> CXXMAKEDEPEND = $(TOP)/$(BINDIR)/omkdepend -D__SUNPRO_CC -D__cplusplus
> CXXDEBUGFLAGS = -O2 -fsimple
> CXXMTFLAG = -mt
39,41c39,40
< #CXXLINK = $(CXX)
< #CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS)
< #CXXSHAREDLINKOPTIONS = $(CXXLINKOPTIONS) -G
---
> CXXLINK = $(CXX)
> CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS)
50,64c49,60
< CPP = gcc
<
< CXXHEADER = /opt/Summertime_98.sparc/lib/g++-include
<
< CXX = g++
< CXXMAKEDEPEND = $(TOP)/$(BINDIR)/omkdepend -D__cplusplus -D__GNUG__ -D__GNUC__
< CXXDEBUGFLAGS =
< CXXOPTIONS = -fexceptions -Wall -Wno-unused -I$(CXXHEADER)
< CXXMTFLAG =
<
< CXXLINK = $(CXX)
< CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS) -L/opt/Summertime_98.sparc/lib
< CXXSHAREDLINKOPTIONS = $(CXXLINKOPTIONS) -shared
<
< CXXLINKOPTIONS += $(patsubst %,-R %,$(IMPORT_LIBRARY_DIRS))
---
> #CPP = gcc
> #
> #CXX = g++
> #CXXMAKEDEPEND = $(TOP)/$(BINDIR)/omkdepend -D__cplusplus -D__GNUG__ -D__GNUC__
> #CXXDEBUGFLAGS =
> #CXXOPTIONS = -fhandle-exceptions -Wall -Wno-unused
> #CXXMTFLAG =
> #
> #CXXLINK = $(CXX)
> #CXXLINKOPTIONS = $(CXXDEBUGFLAGS) $(CXXOPTIONS)
> #
> # CXXLINKOPTIONS += $(patsubst %,-R %,$(IMPORT_LIBRARY_DIRS))
diff -r ./src/lib/omniORB2/gatekeepers/tcpwrapper/sharedlib/dir.mk ../orig/omniORB_2.5.0/src/lib/omniORB2/gatekeepers/tcpwrapper/sharedlib/dir.mk
77a78,80
> ifeq ($(notdir $(CXX)),CC)
>
> CXXOPTIONS += -Kpic
81d83
< CXXOPTIONS += -fpic
84d85
< CXXOPTIONS += -Kpic
96c97
< $(CXX) $(CXXSHAREDLINKOPTIONS) -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
---
> CC -G -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
113a115
> endif
diff -r ./src/lib/omniORB2/sharedlib/dir.mk ../orig/omniORB_2.5.0/src/lib/omniORB2/sharedlib/dir.mk
172a173
>
174,176d174
< else
< DIR_CPPFLAGS += -fpic
< endif
193c191
< $(CXX) $(CXXSHAREDLINKOPTIONS) -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
---
> CC -G -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
201c199
< $(CXX) $(CXXSHAREDLINKOPTIONS) -o $@ -h $(lcsoname) $(IMPORT_LIBRARY_FLAGS) \
---
> CC -G -o $@ -h $(lcsoname) $(IMPORT_LIBRARY_FLAGS) \
229a228
> endif
diff -r ./src/lib/omnithread/sharedlib/dir.mk ../orig/omniORB_2.5.0/src/lib/omnithread/sharedlib/dir.mk
113a114
>
115,117d115
< else
< DIR_CPPFLAGS += -fpic
< endif
126c124
< $(CXX) $(CXXSHAREDLINKOPTIONS) -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
---
> CC -G -o $@ -h $(soname) $(IMPORT_LIBRARY_FLAGS) \
145a144
> endif
--------------1A991160D875F0B95AAE23C6--