#9864: Error building PIL on RHEL Server 5.5
----------------------+-----------------------------------------------------
   Reporter:  mpatel  |       Owner:  GeorgSWeber
       Type:  defect  |      Status:  new        
   Priority:  major   |   Milestone:             
  Component:  build   |    Keywords:             
     Author:          |    Upstream:  N/A        
   Reviewer:          |      Merged:             
Work_issues:          |  
----------------------+-----------------------------------------------------

Comment(by drkirkby):

 I would triple-check that all objects are built with position independent
 code (PIC), using the -fPIC option. There are three problems with PIC.

  * Libraries built without PIC run a bit more slowly.
  * You can often get away without compiling PIC
  * Building shared libraries often works if one does not use PIC.

 Because of this, sometimes people don't build PIC code. The GNU manual
 implies you should, but is not very clear about it. The Sun linker manual
 is absolutely clear - shared libraries should be built with PIC.

 I've also found that some libraries that should be position independent,
 do not appear to do so according to the link editor. See #9840

 I know of 2 possible issues that can arise.

  * If the objects are compiled with -fPIC, but there's assembly code that
 is not  position independent then the resulting library may not work
 reliably.
  * If shared libraries are created with the wrong options, which is the
 case with #9833, though only Solaris will be affected, as the options are
 only wrong on Solaris.

 but there are others.

 I'm aware of three libraries which show problems related to this on
 Solaris or !OpenSolaris in 64-bit mode, but two of them might be an issue
 on all platforms.

  * !PolyBori
  * Cliquer (will only affect Solaris or !OpenSolaris)
  * ECL

 If the system has the {{{elfdump}}} command, you might try this:

 {{{
 $ elfdump -d ./build/libecl.so |  grep TEXTREL
 }}}

 At least on Solaris, that should produce no output. If it does, it
 indicates a problem with the library.

 Dave

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9864#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to