sageb0t/testsage — pull request #1126 by sageb0t (2013-03-28 20:34:34+00:00)
Title: [with spkg] building of fplll is broken

Imported from trac #1126.

```
>
> ***
> x86_64-Linux
> ***
> While compiling libfplll-2.1-20071024, I get
>
> g++ -shared -nostdlib /usr/lib/../lib64/crti.o
> /usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/crtbeginS.o
> .libs/fplll.o -Wl,--rpath
> -Wl,/usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64 -Wl,--rpath
> -Wl,/usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64 -lmpfr -lgmp
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../../../lib64
> -L/lib/../lib64 -L/usr/lib/../lib64
> -L/home/kate/sage/sage-2.8.12-x86_64-Linux/local/lib
> -L/usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/../../..
> /usr/local/gcc-4.2.2/x86_64-Linux/lib/../lib64/libstdc++.so -lm -lc
> -lgcc_s /usr/local/gcc-4.2.2/x86_64-Linux/lib/gcc/x86_64-unknown-linux-gnu/4.2.2/crtendS.o
> /usr/lib/../lib64/crtn.o -Wl,-soname -Wl,libfplll.so.0 -o
> .libs/libfplll.so.0.0.0
> /usr/bin/ld: /usr/lib/../lib64/libmpfr.a(exceptions.o): relocation
> R_X86_64_32 against `a local symbol' can not be used when making a
> shared object; recompile with -fPIC
> /usr/lib/../lib64/libmpfr.a: could not read symbols: Bad value
>
> Why is Sage trying to use libmpfr.a out of /usr/lib? Should it not be
> using the version
> in [sage]/local/lib?

I agree. Note that libfpll is a brand new package in Sage (it does very fast LLL reduction,
so is quite important), but it hasn't been as widely tested as other components of Sage.
```

Reported by: was

Component: packages

CC:

Report Upstream:

Authors: ?

Dependencies:

Work issues:

Reviewers:

Merged in:

Attachments: