Problems installig root 5.28

Dear all.
I am trying to locally install root 5.28 on my SLC5 machine.
i downloaded the tar.gz file, then

gzip -dc root_v5.28.00c.source.tar.gz | tar -xf -
cd root
./configure
gmake

it installs for quite some time, then I get the following error:

g++ -shared -Wl,-soname,libFFTW.so -m64 -O2 -o lib/libFFTW.so math/fftw/src/TFFTComplex.o math/fftw/src/TFFTComplexReal.o math/fftw/src/TFFTRealComplex.o math/fftw/src/TFFTReal.o math/fftw/src/G__FFTW.o /usr/local/lib/libfftw3.a
/usr/bin/ld: /usr/local/lib/libfftw3.a(plan-r2r.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw3.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libFFTW.so] Error 1

any idea why that is?

Thanks
Hendrik

anyone?!

Much apperciated!

i tried with 5.26, same problem:
g++ -shared -Wl,-soname,libFFTW.so -m64 -O2 -o lib/libFFTW.so math/fftw/src/TFFTComplex.o math/fftw/src/TFFTComplexReal.o math/fftw/src/TFFTRealComplex.o math/fftw/src/TFFTReal.o math/fftw/src/G__FFTW.o /usr/local/lib/libfftw3.a
/usr/bin/ld: /usr/local/lib/libfftw3.a(plan-r2r.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw3.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libFFTW.so] Error 1
make: *** Waiting for unfinished jobs…
==> lib/libSessionViewer.so done
rm core/utils/src/RStl_tmp.cxx core/utils/src/rootcint_tmp.cxx

why is the -fPIC flag missing for this?

Thanks.

I’d really appreciate any possible help on this…

thanks

Hi,

Searching this forum for libfftw3 & fpic may already help, see for example this post

Cheers, Bertrand.

thanks!

I did

./configure --disable-fftw3
make

and it compiled!

Thanks
Hendrik