LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-02-2013, 05:05 AM   #1
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Rep: Reputation: Disabled
Post BLFS libxcb-1.9.3 make error


Hi all!
Today i have a python error as i guess.
The object is libxcb-1.9.3 {http://www.linuxfromscratch.org/blfs/view/svn/x/libxcb.html}

All required and recommend packages are installed succesful.

When i try to "make" the package there is an error: (//all steps before are successful)
Code:
...]# make
Making all in src
make[1]: Entering directory '/usr/src/xc/libxcb-1.9.3/src'
/usr/bin/python3 ./c_client.py -p /usr/lib/python3.3/site-packages /usr/share/xc
b/xproto.xml
Traceback (most recent call last):
 File "./c_client.py", line 2982, in <module>
  from xcbgen.state import Module
 File "/usr/lib/python3.3/site-packages/xcbgen/state.py",line 7, in <module>
  from xcbgen import matcher
 File "/usr/lib/python3.3/site-packages/xcbgen/matcher.py", line 12, in <module>
  from xcbgen.xtypes import *
 File "/usr/lib/python3.3/site-packages/xcbgen/xtypes.py", line 82
  new_fd = Field(self, module.get_type_name('INT32'), fd_name, True, False, Fa
lse, None, True)
  ^
IndentationError: unexpected indent
make[1]: ***[xproto.c] Error 1
make[1]: Leaving directory '/usr/src/xc/libxcb-1.9.3/src'
make: *** [all-recursive] Error 1
...]#
 
Old 12-02-2013, 08:28 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
You seem to be building the BLFS development version, which might or might not work. I would suggest using the current stable version instead.

That said:
Code:
 File "/usr/lib/python3.3/site-packages/xcbgen/xtypes.py", line 82
  new_fd = Field(self, module.get_type_name('INT32'), fd_name, True, False, Fa
lse, None, True)
  ^
IndentationError: unexpected indent
make[1]: ***[xproto.c] Error 1
make[1]: Leaving directory '/usr/src/xc/libxcb-1.9.3/src'
make: *** [all-recursive] Error 1
Python is rather picky when it comes to indentation. It looks like the bold line is truncated over 2 lines, which is wrong.

As I'm not sure if this is a user input error or something in the code I have no idea how to fix this, though.
 
Old 12-02-2013, 10:22 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
The problem is with python3. Did you apply the patch for python3 in xcb-proto?

I compiled libxcb-1.9.3 on my system, but I compiled xcb-proto against python2, so libxcb used python2, and it compiled fine.
 
Old 12-02-2013, 12:05 PM   #4
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by Lennie View Post
The problem is with python3. Did you apply the patch for python3 in xcb-proto?

I compiled libxcb-1.9.3 on my system, but I compiled xcb-proto against python2, so libxcb used python2, and it compiled fine.
I applied a python patch, it was successful.
 
Old 12-02-2013, 01:01 PM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
As a test I compiled xcb-proto with python3 (I had to remove python2 first). Then I compiled libxcb with no problem.

So it seems something is wrong with the file /usr/lib/python3.3/site-packages/xcbgen/xtypes.py on your system.

I ran diff on the newly compiled version and a freshly untarred version of this file.
Code:
$ diff -u xtypes.py ../../xcb-proto-1.9-old/xcbgen/xtypes.py 
--- xtypes.py	2013-11-07 14:14:12.000000000 +0100
+++ ../../xcb-proto-1.9-old/xcbgen/xtypes.py	2013-12-02 19:31:35.208247662 +0100
@@ -76,7 +76,7 @@
         complex_type.fields.append(new_field)
 
     def make_fd_of(self, module, complex_type, fd_name):
-    	'''
+        '''
         Method for making a fd member of a structure.
         '''
         new_fd = Field(self, module.get_type_name('INT32'), fd_name, True, False, False, None, True)
As you can see there is a slight difference of the indentation. Maybe you should recompile it and see if you get the right version. So _don't_ just copy this file from the sources, because that is the faulty version.
(Sorry for changing back and forth. I'm bit confused about this...)

Or you can try to correct it. The only differens is the ''' on line 79, but python is very strict about how much indented it should be, and not mixing tabs and spaces.

Edit2: The more I think about this the more strange it seems, how the file could be changed. I can't see anything in the Makefile about changing it.

It should be 8 spaces, the faulty version has 4 spaces and one tab.

Last edited by Lennie; 12-02-2013 at 01:29 PM.
 
Old 12-02-2013, 09:59 PM   #6
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by Lennie View Post
As a test I compiled xcb-proto with python3 (I had to remove python2 first). Then I compiled libxcb with no problem.

So it seems something is wrong with the file /usr/lib/python3.3/site-packages/xcbgen/xtypes.py on your system.

I ran diff on the newly compiled version and a freshly untarred version of this file.
Code:
$ diff -u xtypes.py ../../xcb-proto-1.9-old/xcbgen/xtypes.py 
--- xtypes.py	2013-11-07 14:14:12.000000000 +0100
+++ ../../xcb-proto-1.9-old/xcbgen/xtypes.py	2013-12-02 19:31:35.208247662 +0100
@@ -76,7 +76,7 @@
         complex_type.fields.append(new_field)
 
     def make_fd_of(self, module, complex_type, fd_name):
-    	'''
+        '''
         Method for making a fd member of a structure.
         '''
         new_fd = Field(self, module.get_type_name('INT32'), fd_name, True, False, False, None, True)
As you can see there is a slight difference of the indentation. Maybe you should recompile it and see if you get the right version. So _don't_ just copy this file from the sources, because that is the faulty version.
(Sorry for changing back and forth. I'm bit confused about this...)

Or you can try to correct it. The only differens is the ''' on line 79, but python is very strict about how much indented it should be, and not mixing tabs and spaces.

Edit2: The more I think about this the more strange it seems, how the file could be changed. I can't see anything in the Makefile about changing it.

It should be 8 spaces, the faulty version has 4 spaces and one tab.
i decided to remove python and install it again, but while configuring i've got an error:
Code:
....
 Python/_warnings.c
/bin/mkdir -p Include
python3.3 ./Parser/asdl_c.py -h include ./Parser/Python.asdl
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings'
make: *** [Include/Python-ast.h] Aborted
...]#
I havn't installed optional Valgrind, berkeley, openssl, sqlite.

so i'm shocked =)

P.S: while 'make' command, not ./configure... .

Last edited by Rodano; 12-02-2013 at 10:13 PM.
 
Old 12-02-2013, 11:15 PM   #7
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
I ran across that error as well. I have everything built as the book states in 7.4 stable BLFS, but libxcb still refuses to budge. Very disturbing this error is.
 
Old 12-04-2013, 03:52 AM   #8
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
But what to do with python? There wasn't such error while i installed it at firs time.
 
Old 12-04-2013, 11:12 AM   #9
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Remove python completely. If configure finds python on your system, it'll use it. If it doesn't find it, it'll instead use the newly compiled binary.
 
Old 12-04-2013, 08:26 PM   #10
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by Lennie View Post
Remove python completely. If configure finds python on your system, it'll use it. If it doesn't find it, it'll instead use the newly compiled binary.
There are some hardship with it. I removed python folders from /usr/lib and /usr/share and /usr/lib/libpython3.3m.so, /usr/lib/libpython.so. But whe i try to locate "*python*" there are folders where there r python files:
Code:
/root/.local/lib/python3.3
/root/.local/lib/python3.3/site-packages
/tools/share/gcc-4.8.1/python
/tools/share/gcc-4.8.1/python/libstdcxx
/tools/share/gcc-4.8.1/python/libstdcxx/__init__.py
/tools/share/gcc-4.8.1/python/libstdcxx/v6
/tools/share/gcc-4.8.1/python/libstdcxx/v6/__init__.py
/tools/share/gcc-4.8.1/python/libstdcxx/v6/printers.py
/usr/bin/python3
/usr/bin/python3.3
/usr/bin/python3.3-config
/usr/bin/python3.3m
/usr/bin/python3.3m-config
/usr/bin/python3-config
/usr/lib/pkgconfig/python-3.3m.pc
/usr/lib/pkgconfig/python-3.3.pc
/usr/lib/pkgconfig/python3.pc
/usr/share/aclocal-1.14/python.m4
/usr/share/automake-1.14/am/python.am
/usr/share/doc/gettext-0.18.3/examples/hello-python
/usr/share/doc/gettext-0.18.3/examples/hello-python/autoclean.sh
/usr/share/doc/gettext-0.18.3/examples/hello-python/autogen.sh
/usr/share/doc/gettext-0.18.3/examples/hello-python/configure.ac
/usr/share/doc/gettext-0.18.3/examples/hello-python/hello.py.in
/usr/share/doc/gettext-0.18.3/examples/hello-python/INSTALL
/usr/share/doc/gettext-0.18.3/examples/hello-python/m4
/usr/share/doc/gettext-0.18.3/examples/hello-python/m4/Makefile.am
/usr/share/doc/gettext-0.18.3/examples/hello-python/Makefile.am
/usr/share/doc/gettext-0.18.3/examples/hello-python/po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/af.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ast.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/bg.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ca.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/cs.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/da.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/de.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/el.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/eo.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/es.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/fi.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/fr.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ga.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/gl.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/hr.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/hu.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/id.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/it.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ja.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ky.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/LINGUAS
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/lv.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/Makefile.am
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ms.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/mt.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/nb.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/nl.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/pl.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/pt.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ro.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/ru.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/sk.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/sl.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/sr.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/sv.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/tr.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/uk.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/vi.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/zh_CN.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/zh_HK.po
/usr/share/doc/gettext-0.18.3/examples/hello-python/po/zh_TW.po
/usr/share/doc/libxslt-1.1.28/html/python.html
/usr/share/gcc-4.8.1/python
/usr/share/gcc-4.8.1/python/libstdcxx
/usr/share/gcc-4.8.1/python/libstdcxx/__init__.py
/usr/share/gcc-4.8.1/python/libstdcxx/v6
/usr/share/gcc-4.8.1/python/libstdcxx/v6/__init__.py
/usr/share/gcc-4.8.1/python/libstdcxx/v6/printers.py
/usr/share/man/man1/python3.1
/usr/share/man/man1/python3.3.1
/usr/share/vim/vim74/autoload/python3complete.vim
/usr/share/vim/vim74/autoload/pythoncomplete.vim
/usr/share/vim/vim74/ftplugin/python.vim
/usr/share/vim/vim74/indent/python.vim
/usr/share/vim/vim74/syntax/python.vim
/usr/share/xml/docbook/xsl-stylesheets-1.78.1/highlighting/python-hl.xml
Should i remove all of them and if there are another files(or config files)concerned with python?
 
Old 12-04-2013, 08:51 PM   #11
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Check the ./configure --help read out to see if it has a python disable switch.
 
Old 12-04-2013, 09:55 PM   #12
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by ReaperX7 View Post
Check the ./configure --help read out to see if it has a python disable switch.
I find "--enable-shared disable/enable building shared python library" but i don't think it's usefull. That's all. So, i didn't find this switch.
 
Old 12-05-2013, 02:11 AM   #13
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
On my system, the files that belong to python3 is:
Code:
/usr/lib/python3.3/
/usr/include/python3.3m/

python3 /usr/bin/2to3-3.3
python3 /usr/bin/idle3
python3 /usr/bin/idle3.3
python3 /usr/bin/pydoc3
python3 /usr/bin/pydoc3.3
python3 /usr/bin/python3
python3 /usr/bin/python3-config
python3 /usr/bin/python3.3
python3 /usr/bin/python3.3-config
python3 /usr/bin/python3.3m
python3 /usr/bin/python3.3m-config
python3 /usr/bin/pyvenv
python3 /usr/bin/pyvenv-3.3
python3 /usr/lib/libpython3.3m.so
python3 /usr/lib/libpython3.3m.so.1.0
python3 /usr/lib/libpython3.so
python3 /usr/lib/pkgconfig/
python3 /usr/lib/pkgconfig/python-3.3.pc
python3 /usr/lib/pkgconfig/python-3.3m.pc
python3 /usr/lib/pkgconfig/python3.pc
python3 /usr/share/
python3 /usr/share/man/man1/python3.1.gz
python3 /usr/share/man/man1/python3.3.1.gz
No other package has files in /usr/include/python3.3m.
The packages that has files in /usr/lib/python3.3 is:
pyalpm 0.6.2-1
python3-beautifulsoup4 4.3.2-1
python3-setuptools 1.3-1

I think the most important are the files in /usr/bin, especially /usr/bin/python3.3, so that configure doesn't find python.
 
Old 12-05-2013, 08:56 AM   #14
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lennie View Post
On my system, the files that belong to python3 is:
Code:
/usr/lib/python3.3/
/usr/include/python3.3m/

python3 /usr/bin/2to3-3.3
python3 /usr/bin/idle3
python3 /usr/bin/idle3.3
python3 /usr/bin/pydoc3
python3 /usr/bin/pydoc3.3
python3 /usr/bin/python3
python3 /usr/bin/python3-config
python3 /usr/bin/python3.3
python3 /usr/bin/python3.3-config
python3 /usr/bin/python3.3m
python3 /usr/bin/python3.3m-config
python3 /usr/bin/pyvenv
python3 /usr/bin/pyvenv-3.3
python3 /usr/lib/libpython3.3m.so
python3 /usr/lib/libpython3.3m.so.1.0
python3 /usr/lib/libpython3.so
python3 /usr/lib/pkgconfig/
python3 /usr/lib/pkgconfig/python-3.3.pc
python3 /usr/lib/pkgconfig/python-3.3m.pc
python3 /usr/lib/pkgconfig/python3.pc
python3 /usr/share/
python3 /usr/share/man/man1/python3.1.gz
python3 /usr/share/man/man1/python3.3.1.gz
No other package has files in /usr/include/python3.3m.
The packages that has files in /usr/lib/python3.3 is:
pyalpm 0.6.2-1
python3-beautifulsoup4 4.3.2-1
python3-setuptools 1.3-1

I think the most important are the files in /usr/bin, especially /usr/bin/python3.3, so that configure doesn't find python.
This files/folders were removed before reconfiguring python package, but the error is appeared. So.. lets try to understand, what's python wants. Google shows me such pages like this {http://www.linuxforums.org/forum/red-hat-fedora-linux/138085-how-uninstall-python.html} All i knowed from them is "If you remove the python that was installed by your distro, you will break your system so if you do not want to end up reinstalling your OS, leave it as it is." I find gd article..Will read it at home) {http://answers.oreilly.com/topic/1243-how-to-configure-python/}

Last edited by Rodano; 12-05-2013 at 09:49 AM.
 
Old 12-05-2013, 11:03 AM   #15
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Now i'll show you config.log in attach.
There are some strange errors.
Attached Files
File Type: log config_part1.log (238.9 KB, 20 views)
File Type: log config_part2.log (238.4 KB, 10 views)
File Type: log config_part3.log (62.4 KB, 10 views)
 
  


Reply



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] Error Loading libxcb-util.co.1 after Slackware 14.0 switch to -current gabytf Slackware 9 11-04-2013 03:10 AM
[SOLVED] Libxcb-1.8.1 – make check error mev Linux From Scratch 4 01-11-2013 08:09 AM
blfs + dpkg make error! :( k84834 Linux From Scratch 2 11-18-2012 02:28 AM
BLFS OpenLDAP-2.4.32 make test error kkt Linux From Scratch 4 10-27-2012 06:40 AM
BLFS 6.1: Gnome-vfs-2.10.1 make error Lenard Spencer Linux From Scratch 1 08-29-2006 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:49 PM.

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
Open Source Consulting | Domain Registration