LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 11-20-2012, 07:14 AM   #1
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Rep: Reputation: Disabled
Problems compiling MesaLib on 64-bit CLFS System


Posting this on a CLFS system using lynx may be a bit weird for me, but this is pretty much the only way for me to get the compilation error I got without chrooting from another system.

Here's the error message I got when attempting to compile MesaLib:
Code:
make[2]: Entering directory `/sources/Mesa-7.9-64/src/mesa'
python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES2.0 > main/api_exec_es2.c
Traceback (most recent call last):
  File "main/es_generator.py", line 26, in <module>
    import APIspecutil as apiutil
  File "/sources/Mesa-7.9-64/src/mesa/main/APIspecutil.py", line 28, in <module>
    import libxml2
ImportError: No module named libxml2
make[2]: *** No rule to make target `main/api_exec_es2.c', needed by `depend'.  Stop.
make[2]: Leaving directory `/sources/Mesa-7.9-64/src/mesa'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/sources/Mesa-7.9-64/src'
make: *** [default] Error 1
So the problem seems to come from the libxml2 module not being defined on python. I do have libxml2 installed on my system, so how would I fix this problem?
 
Old 11-20-2012, 07:39 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
You mention installing libxml2, but have you seen these notes (Mesalib):
Quote:
The libxml2 Python module must have been built during the installation of libxml2 or else MesaLib build will fail.
and (libxml2)
Quote:
Some packages which utilize libxml2 (such as GNOME Doc Utils) need the Python module installed to function properly and some packages (such as MesaLib) will not build properly if the Python module is not available.
Which would make python a required dependency for libxml2 and not a recommended one.
 
Old 11-20-2012, 09:26 AM   #3
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 464

Rep: Reputation: 133Reputation: 133
Even though Python is considered optional for libxml2, it's almost not possible to build libxml2 without Python unless a bigger mistake was already made (IMO). Since xcb-proto requires Python, and since libxcb (next after xcb-proto) requires libxslt which in turn requires libxml2, then libxml2 will be built with Python when that sequence of events happens. It does for me anyway.

There are some circular dependencies with Python, Tk, and X that are irritating. I have been dealing with that by installing Python once with none of its optional packages for xcb-proto, and then a second time with all (almost) of its dependencies after X is done.
 
Old 11-20-2012, 11:11 AM   #4
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Original Poster
Rep: Reputation: Disabled
Well, attempting to get X on my CLFS system seems to be getting me more and more annoyed with the likes of Python and libxml2. I guess I'll go look at the compilation options I enabled for those two and see if I can tinker with them to get the module right.

Thanks for the help so far, guys.
 
Old 11-20-2012, 12:17 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 464

Rep: Reputation: 133Reputation: 133
Yeah, X is a giant thing to install IMO. Things in the book are constantly changing for it, too. My current system has Xorg-7.7 like the current book version, but still I noticed some package version changes since I last installed it in September.

FWIW, I had no big issues when I installed my current version. My notes say the folder gets named wrong for the llvm docs, and I just edited the Makefile for it. Somebody has filed a ticket at the wiki about that. I also added a couple of extra Xorg Applications that the book has dropped but I still need. But that's it. Unless something else big has changed, I would expect X to be clear sailing. A lot to do, but no problems. If you have some way to back up and go at it again, maybe something simple was overlooked or botched. A tarball backup made just before starting X would be really nice.
 
Old 11-21-2012, 01:57 PM   #6
EnigmaticFellow
LQ Newbie
 
Registered: Jul 2012
Distribution: Arch Linux
Posts: 26

Original Poster
Rep: Reputation: Disabled
After recompiling a few libraries, I finally got MesaLib to compile and install onto my system.
 
Old 03-14-2013, 01:49 AM   #7
driftingblues
LQ Newbie
 
Registered: Mar 2013
Posts: 1

Rep: Reputation: Disabled
Hi EnigmaticFellow,

Please tell me how did you solve the libxml2 and python dependencies and compile MesaLib ?
 
  


Reply

Tags
blfs, clfs


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 compiling libxml2 (on 64-bit CLFS system) EnigmaticFellow Linux From Scratch 3 10-24-2012 01:41 PM
[SOLVED] Problems with using Python2.7 on 64-bit CLFS system EnigmaticFellow Linux From Scratch 2 10-19-2012 10:40 PM
[SOLVED] Cannot run 64-bit pre-compiled binaries on CLFS-Pure64 system corbis_demon Linux From Scratch 2 09-19-2012 02:07 AM
[SOLVED] Installing IcedTea on a 64-bit CLFS system corbis_demon Linux From Scratch 1 11-13-2010 07:08 AM
[SOLVED] CLFS 64 bit multilib and pure 64 bit pacthes wanted Openumerix Linux From Scratch 1 11-16-2009 12:23 AM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
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