failed to build cairo

Kemin Zhou <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
I have just installed the latest GCC compiler on my linux computer
GCC 4.8.1

gcc 4.8.1 installed the libiberty.a static lib in the standard place,
in my case /usr/local/lib64

I looked at the source code for both gcc and binutil from gnu. They are identical with only one target (libiberty.a).  Don't know how to change the make input files to build the dynamic version.  I have tried to learn the autoconf system a few times (each time spending a few hours), but this system is very hard for me.

My configure for Cairo went well, but it failed in the linking stage.

The failure directory is in util/cairo-trace directory

  CCLD   libcairo-trace.la
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../x86_64-unknown-linux-gnu/bin/ld: /usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/libiberty.a(cplus-dem.o): relocation R_X86_64_32S against `_sch_istable' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/gcc/x86_64-unknown-linux-gnu/4.8.1/../../../../lib64/libiberty.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status

See anyone can help.

I have searched the internet for the whole night and did not find any help.

 
Kemin Zhou
609 818-4265 Office
858 366-8260 Mobile
858 771-3269 Home

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.