Skip to topic | Skip to bottom
Home
Federation
Federation.WhyFailCompileSPr1.1 - 26 Aug 2007 - 01:48 - BrucLiongtopic end

Start of topic | Skip to actions

Fail Compiling SP on the final stage

Situation:

  • you've got all the source files and libraries required
  • you compile them one by one successfully
  • you've seen a lot of warnings about existence of virtual functions without its virtual destructor
  • you thought "oh, well, it's warning, no biggy" -- which most of the time is the 'correct' attitude from years of experience in compiling any C/C++ applications
  • you tried to build the final stage: the shibboleth SP module and you've failed with errors

There are a number of possible reasons, but this are the most common ones:

  • you've got incompatible libraries somewhere, check if your system has pre-existing openssl library for example. Choose the one which has been suggested, remove the other one.
  • you have multiple gcc and g++ in the system, particularly you may have a much more recent gcc/++ (such as version 4.x). Shib SP has been tested to be working on v.3.3. Solution below will solve your problem (assuming they're running from /usr/bin):
    gcc --version
    g++ --version
    
    which gcc
    
    cd /usr/bin
    rm gcc; rm g++
    ln -s gcc-3.3 gcc
    ln -s g++-3.3 g++
    

Once you've sort out your problem, time to recompile every modules on shib SP.



to top

You are here: Federation > FrequentlyAskedQuestions > WhyFailCompileSP

to top

Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback