Build errors

Quentin Spencer qspencer at ieee.org
Tue Aug 9 16:46:41 UTC 2005


I got the following errors while building a new version of octave on 
x86_64 that includes GLPK support:

g++ -shared -o __glpk__.oct pic/__glpk__.o -L../libcruft -lcruft -L../liboctave -loctave -L. -loctinterp -lumfpack -lamd -llapack -lblas -lfftw3 -lreadline  -lncurses -ldl -lhdf5 -lz -lm  -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lhdf5 -lz -lgfortranbegin -lgfortran -lm -lgcc_s -lglpk
g++ -shared -o __qp__.oct pic/__qp__.o -L../libcruft -lcruft -L../liboctave -loctave -L. -loctinterp -lumfpack -lamd -llapack -lblas -lfftw3 -lreadline  -lncurses -ldl -lhdf5 -lz -lm  -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64 -L/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 -lhdf5 -lz -lgfortranbegin -lgfortran -lm -lgcc_s
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libglpk.a(glplib2.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libglpk.a: could not read symbols: Bad value


I was able to build this without errors on my i386 system yesterday. I 
find it odd that the error happens on the next compilation after the one 
that links to libglpk. The .o files in question were all generated with 
the -fPIC flag. Does the g++ -o step need this flag also? Should I 
compile GLPK with -fPIC? Any advice from someone with more expertise on 
this than I have is welcome.

-Quentin




More information about the fedora-extras-list mailing list