LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 10-20-2012, 11:27 PM   #1
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Rep: Reputation: Disabled
Problems compiling libxml2 (on 64-bit CLFS system)


I've been following the instructions from CBLFS for how to compile libxml2 on my system, yet I get this error message:
Code:
/usr/include/pthread.h:961:12: note: previous declaration of 'pthread_cond_signal' was here
  CC     c14n.lo
  CC     xmlstring.lo
  CC     buf.lo
  CC     xmlregexp.lo
  CC     xmlschemas.lo
  CC     xmlschemastypes.lo
  CC     xmlunicode.lo
  CC     xmlreader.lo
  CC     relaxng.lo
  CC     dict.lo
  CC     SAX2.lo
  CC     xmlwriter.lo
  CC     legacy.lo
  CC     chvalid.lo
  CC     pattern.lo
  CC     xmlsave.lo
  CC     xmlmodule.lo
  CC     schematron.lo
  CC     xzlib.lo
  CCLD   libxml2.la
/usr/bin/ld: /usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../lib64/liblzma.a(liblzma_la-common.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-unknown-linux-gnu/4.6.3/../../../../lib64/liblzma.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libxml2.la] Error 1
make[2]: Leaving directory `/sources/libxml2-2.9.0'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/libxml2-2.9.0'
make: *** [all] Error 2
I tried putting the -fPIC option under the CC variable, but that didn't work either. I also tried different versions, but got the same error

How would I go about fixing this problem?
 
Old 10-21-2012, 09:55 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 1,010

Rep: Reputation: 224Reputation: 224Reputation: 224
I have installed two different versions of libxml2 on to different LFS builds and had no problem, the lib liblzma.a is installed by the xz package try checking that and maybe reinstalling
 
Old 10-24-2012, 02:32 PM   #3
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Original Poster
Rep: Reputation: Disabled
Eventually got libxml2 to install after playing around with a few libraries.
 
Old 10-24-2012, 02:41 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 1,010

Rep: Reputation: 224Reputation: 224Reputation: 224
For the benefit of others post what you did to what libs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Problems with using Python2.7 on 64-bit CLFS system EnigmaticFellow Linux From Scratch 2 10-19-2012 11:40 PM
[SOLVED] Cannot run 64-bit pre-compiled binaries on CLFS-Pure64 system corbis_demon Linux From Scratch 2 09-19-2012 03:07 AM
[SOLVED] Installing IcedTea on a 64-bit CLFS system corbis_demon Linux From Scratch 1 11-13-2010 08:08 AM
[SOLVED] CLFS 64 bit multilib and pure 64 bit pacthes wanted Openumerix Linux From Scratch 1 11-16-2009 01:23 AM
installation problems with libxml2-2.2.66.tar.gz and libxml2-devel2-2.6.20-3.tar.gz g-string 3 Linux - Software 6 11-24-2005 12:39 PM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration