Results 1 to 6 of 6

Thread: Purify Link error

  1. #1
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21

    Purify Link error

    Hello,

    I've a link error under solaris when i try to use purify on Ice. I try to compile the hello world program (server part) using purify. When i don't use purify everything link fine ... however when I use purify i've this following error:



    purify /u1/SUNWspro/bin/CC -R /export/home/venninj/opt/Ice-3.1.0/lib -z text -mt +p -features=tmplife -xarch=v8plus -KPIC -g -L../../../lib -o server Hello.o HelloI.o Server.o -LOME/usr/lib -lbz2 -L/export/home/venninj/usr/lib -lIce -lIceUtil -mt
    Purify 7.0 Solaris 2 (32-bit) (C) Copyright IBM Corporation. 1992, 2006 All Rights Reserved.
    Instrumenting: libIce.so.31 libIceUtil.so.31 Linking
    Undefined first referenced
    symbol in file
    BZ2_bzBuffToBuffDecompress /export/home/venninj/opt/Ice-3.1.0/lib/libIce.so.31_pure_p3_c0_104192125_58_32
    BZ2_bzBuffToBuffCompress /export/home/venninj/opt/Ice-3.1.0/lib/libIce.so.31_pure_p3_c0_104192125_58_32
    ld: fatal: Symbol referencing errors. No output written to server


    Can you help me ?

    Thank you.

    Joël
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Quote Originally Posted by joel vennin
    -LOME/usr/lib -lbz2
    This part of your link-line sounds strange. Did you change the Makefile to add this fragment?

    Cheers,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21
    Quote Originally Posted by bernard
    This part of your link-line sounds strange. Did you change the Makefile to add this fragment?
    Bernard
    You're right i've modified the makefile, in the line above i've make an error, however i've fixed it (because there are two version of the bzip2 library installed on the system, so it's why i select one).

    However, the same errror is still present ...

    Another idea ?

    Thank you,

    Joel
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    Just as a wild guess, perhaps you must specify -lbz2 as the last library?
    Code:
    purify /u1/SUNWspro/bin/CC -R /export/home/venninj/opt/Ice-3.1.0/lib -z text -mt +p -features=tmplife -xarch=v8plus -KPIC -g -L../../../lib -o server Hello.o HelloI.o Server.o -L$HOME/usr/lib -L/export/home/venninj/usr/lib -lIce -lIceUtil -lbz2 -mt

  5. #5
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21
    I've already tryed to moved the bz2 library but nothing good ...

    I've checked if the symbol are present inside the bz2 library, and they are present...
    Joel
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

  6. #6
    joel vennin is offline Registered User
    Name: Joël Vennin
    Organization: University Lille 1
    Project: Just Testing when i have time
    Join Date
    Dec 2005
    Location
    France
    Posts
    21
    Ok i've found the problem, it comes that i've two different version of bzip2 on my system. Ice is linked with one specifc version, whereas purify instrument a different version of bz2. So it's why i got a link error.

    Thank you,

    Joël
    Phd Student
    - University of Lille 1 (France)
    - I work on distributed simulation (i'm ask my self if i should use Ice has a backend)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Error detected by Purify
    By jesusgm in forum Bug Reports
    Replies: 4
    Last Post: 09-18-2006, 12:03 PM
  2. Link error on Solaris
    By ACM in forum Help Center
    Replies: 2
    Last Post: 10-28-2005, 03:54 AM
  3. dynamic link error
    By diddek in forum Bug Reports
    Replies: 2
    Last Post: 02-18-2004, 03:16 PM
  4. Replies: 2
    Last Post: 09-03-2003, 02:49 AM
  5. link error with stl
    By simpley in forum Help Center
    Replies: 11
    Last Post: 09-02-2003, 05:58 PM

Posting Permissions

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