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

Compiling Ice-1.5.1 on FreeBSD5.3Beta5 error

Last night, I installed Ice1.5.1 on FreeBSD 5.3Beta5. I modified the Make.rules correctly, but compiled Ice fail.

c++ -g -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -D_THREAD_SAFE -L../../lib -o ../../bin/glacierrouter GlacierRouter.o RouterI.o Blobject.o ClientBlobject.o ServerBlobject.o Request.o -lGlacier -lIceSSL -lIce -lIceUtil -lc_r -lssl -lcrypto -L/usr/local/lib -lexpat
/usr/bin/ld: warning:, needed by ../../lib/, not found (try using -rpath or -rpath-link)
../../lib/ undefined reference to `typeinfo for IceXML::Element'
../../lib/ undefined reference to `typeinfo for IceXML::Node'
../../lib/ undefined reference to `IceXML::Parser::parse(std::string const&)'
../../lib/ undefined reference to `typeinfo for IceXML::ParserException'
gmake[2]: *** [../../bin/glacierrouter] Error 1
gmake[2]: Leaving directory `/tmp/Ice-1.5.1/src/Glacier'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/tmp/Ice-1.5.1/src'
gmake: *** [all] Error 1

I modified Make.rules.FREEBSD to solved this problem.
Adding "-rpath /tmp/Ice-1.5.1/lib" on the CXXFLAGS line, as following:
CXXFLAGS = -ftemplate-depth-128 -fPIC -Wall -D_REENTRANT -D_THRE
AD_SAFE -rpath /tmp/Ice-1.5.1/lib


  • bernard
    bernard Jupiter, FL
    If you submit a reasonable patch for Make.rules.FREEBSD, I'd be happy to include it for the next Ice release. Please note that FreeBSD is not a
    supported platform.