This forum has been archived. Please start a new discussion on GitHub.

Ice build error on Solaris 9 (ld: cannot find -lmcpp)


I'm trying to build Ice 3.3.0 on Solaris 9 and I'm getting the following error.

g++ -shared -ftemplate-depth-128 -Wall -D_REENTRANT -fPIC -g -L../../lib -o ../../lib/ -h Scanner.o ../Slice/Grammar.o Parser.o CPlusPlusUtil.o CsUtil.o JavaUtil.o Preprocessor.o Checksum.o PythonUtil.o DotNetNames.o RubyUtil.o Util.o MD5.o MD5I.o SignalHandler.o -lIceUtil -lmcpp
/cots/sol10-port/lib/gcc/sparc-sun-solaris2.10/3.4.6/../../../../sparc-sun-solaris2.10/bin/ld: cannot find -lmcpp
collect2: ld returned 1 exit status
make[3]: *** [../../lib/] Error 1
make[3]: Leaving directory `.../Ice3.3.0/Ice-3.3.0/cpp/src/Slice'

I only changed the following line in "cpp/config/Make.rules.SunOS"
CXX = g++

I'm using g++ version 3.4.6

What else am I missing?



  • dwayne
    dwayne St. John's, Newfoundland
    You need to build and install mcpp on your machine. You can find the source code and build instructions in the third party source package on the [url=htttp://]download[/url] page. This includes the source for mcpp 2.7 as well as some patches that need to be applied for it to work properly with Ice. Alternately you can download the latest version, mcpp 2.7.2, from here. This version does not require any patching.