Results 1 to 5 of 5

Thread: Linux X64 RPM install return Link error

  1. #1
    lifejoy is offline Registered User
    Name: lifejoy
    Organization: klmt
    Project: 1919&secondplat
    Join Date
    Nov 2005
    Posts
    9

    Linux X64 RPM install return Link error

    ++ -m64 -o dist/Debug/GNU-Linux-x86/uploadsvr build/Debug/GNU-Linux-x86/UpLoadServerImp.o build/Debug/GNU-Linux-x86/upload.o build/Debug/GNU-Linux-x86/main.o -L/usr/lib64 -lICE -lIceUtil -lc -lm
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::__patch__UpLoadServerPtr(void*, IceInternal::Handle<Ice::Object>&)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1267: undefined reference to `IceInternal::Ex::throwUOE(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::__read(IceInternal::Handle< Ice::InputStream> const&, bool)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1254: undefined reference to `Ice::MarshalException::MarshalException(char const*, int)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1256: undefined reference to `Ice::MarshalException::~MarshalException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1256: undefined reference to `typeinfo for Ice::MarshalException'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1256: undefined reference to `Ice::MarshalException::~MarshalException()'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::__write(IceInternal::Handle <Ice::OutputStream> const&) const':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1246: undefined reference to `Ice::MarshalException::MarshalException(char const*, int)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1248: undefined reference to `Ice::MarshalException::~MarshalException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1248: undefined reference to `typeinfo for Ice::MarshalException'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1248: undefined reference to `Ice::MarshalException::~MarshalException()'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::__read(IceInternal::BasicSt ream*, bool)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1232: undefined reference to `IceInternal::BasicStream::readTypeId(std::basic_s tring<char, std::char_traits<char>, std::allocator<char> >&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1234: undefined reference to `IceInternal::BasicStream::startReadSlice()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1235: undefined reference to `IceInternal::BasicStream::endReadSlice()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1239: undefined reference to `Ice::Object::__read(IceInternal::BasicStream*, bool)'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::__write(IceInternal::BasicS tream*) const':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1216: undefined reference to `IceInternal::BasicStream::writeTypeId(std::basic_ string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1217: undefined reference to `IceInternal::BasicStream::startWriteSlice()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1218: undefined reference to `IceInternal::BasicStream::endWriteSlice()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1222: undefined reference to `Ice::Object::__write(IceInternal::BasicStream*) const'
    build/Debug/GNU-Linux-x86/upload.o: In function `run':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:965: undefined reference to `typeinfo for Ice::Object'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:968: undefined reference to `Ice::OperationNotExistException::OperationNotExis tException(char const*, int, Ice::Identity const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:968: undefined reference to `Ice::OperationNotExistException::~OperationNotExi stException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:968: undefined reference to `typeinfo for Ice::OperationNotExistException'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:896: undefined reference to `typeinfo for Ice::Object'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:899: undefined reference to `Ice::OperationNotExistException::OperationNotExis tException(char const*, int, Ice::Identity const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:899: undefined reference to `Ice::OperationNotExistException::~OperationNotExi stException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:899: undefined reference to `typeinfo for Ice::OperationNotExistException'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:826: undefined reference to `typeinfo for Ice::Object'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:829: undefined reference to `Ice::OperationNotExistException::OperationNotExis tException(char const*, int, Ice::Identity const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:829: undefined reference to `Ice::OperationNotExistException::~OperationNotExi stException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:829: undefined reference to `typeinfo for Ice::OperationNotExistException'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:688: undefined reference to `typeinfo for Ice::Object'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:691: undefined reference to `Ice::OperationNotExistException::OperationNotExis tException(char const*, int, Ice::Identity const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:691: undefined reference to `Ice::OperationNotExistException::~OperationNotExi stException()'
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:691: undefined reference to `typeinfo for Ice::OperationNotExistException'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::___upFile(IceInternal::Inco ming&, Ice::Current const&)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1114: undefined reference to `Ice::Object::__checkMode(Ice::OperationMode, Ice::OperationMode)'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::___deleteFile(IceInternal:: Incoming&, Ice::Current const&)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1097: undefined reference to `Ice::Object::__checkMode(Ice::OperationMode, Ice::OperationMode)'
    build/Debug/GNU-Linux-x86/upload.o: In function `upload::UpLoadServer::___Login(IceInternal::Incom ing&, Ice::Current const&)':
    /root/.netbeans/remote/dpl-Windows-x86_64/I/uploadsvr/upload.cpp:1058: undefined reference to `Ice::Object::__checkMode(Ice::OperationMode, Ice::OperationMode)'
    build/Debug/GNU-Linux-x86/upload.o: In function `run':
    dongpinglei
    china kunlun mobile tech.
    lifejoy@163.com
    project :1919plat,www.1919.com.cn

  2. #2
    lifejoy is offline Registered User
    Name: lifejoy
    Organization: klmt
    Project: 1919&secondplat
    Join Date
    Nov 2005
    Posts
    9
    g++ -m64 -o dist/Debug/GNU-Linux-x86/uploadsvr build/Debug/GNU-Linux-x86/UpLoadServerImp.o build/Debug/GNU-Linux-x86/upload.o build/Debug/GNU-Linux-x86/main.o -L/usr/lib64 -lICE -lIceUtil -lc -lm
    dongpinglei
    china kunlun mobile tech.
    lifejoy@163.com
    project :1919plat,www.1919.com.cn

  3. #3
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Looks like it should be -lIce instead of -lICE.

    Cheers,

    Michi.

  4. #4
    lifejoy is offline Registered User
    Name: lifejoy
    Organization: klmt
    Project: 1919&secondplat
    Join Date
    Nov 2005
    Posts
    9
    the command parameters
    that I used was "-L/usr/lib64 -lICE -lIceUtil"
    if word case wrong ,the ld promate "can't find file'.
    Last edited by lifejoy; 11-27-2009 at 01:54 AM.
    dongpinglei
    china kunlun mobile tech.
    lifejoy@163.com
    project :1919plat,www.1919.com.cn

  5. #5
    mefoster is offline Registered User
    Name: Mary Ellen Foster
    Organization: Heriot-Watt University, Edinburgh
    Project: ECHOES learning environment
    Join Date
    Jun 2006
    Posts
    121
    Quote Originally Posted by michi View Post
    Looks like it should be -lIce instead of -lICE.
    Incidentally, if you're trying to compile Ice things on a Mac using CMake, the above can turn into a really annoying problem: you tell CMake to "FIND_LIBRARY Ice", and the first thing it finds is /usr/lib/libICE.dylib. Then it tries to link against that, and weird things happen ...

    Turns out the default file system on a Mac is case-*preserving* but not case-*sensitive* (http://osxbook.com/book/bonus/ancien.../arch_fs.html). Urgh. The workaround I've found is to add NO_DEFAULT_PATH to the FIND_LIBRARY call -- dunno what you would do if you put Ice into the system directory though. I guess you just don't.

    MEF

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. puzzle about how to install ice on linux
    By snowman in forum Help Center
    Replies: 2
    Last Post: 01-30-2008, 06:04 AM
  2. Link errors in linux
    By OrNot in forum Help Center
    Replies: 12
    Last Post: 05-30-2007, 06:46 AM
  3. Support for Linux x64 ?
    By vermorel in forum Comments
    Replies: 3
    Last Post: 12-08-2005, 12:08 PM
  4. Question about install ICE on Linux
    By oraclexiao in forum Help Center
    Replies: 3
    Last Post: 11-03-2005, 02:18 AM
  5. INSTALL.LINUX typo
    By Ivan in forum Bug Reports
    Replies: 1
    Last Post: 05-30-2003, 11:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •