Home Bug Reports

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: libIceXML.so.15, needed by ../../lib/libIceSSL.so, not found (try using -rpath or -rpath-link)
../../lib/libIceSSL.so: undefined reference to `typeinfo for IceXML::Element'
../../lib/libIceSSL.so: undefined reference to `typeinfo for IceXML::Node'
../../lib/libIceSSL.so: undefined reference to `IceXML::Parser::parse(std::string const&)'
../../lib/libIceSSL.so: 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
^^^^^^^^^^^^^^^^

Comments

  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    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.

    Cheers,
    Bernard
Sign In or Register to comment.