Bug 647413 - pyconfig-32.h is unavailable on x86_64 host
Summary: pyconfig-32.h is unavailable on x86_64 host
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: python26
Version: el5
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Adrien Devresse
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-10-28 09:29 UTC by Konstantin Tokarev
Modified: 2017-04-06 10:25 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-06 10:25:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Missing header file (30.38 KB, text/x-chdr)
2010-10-28 09:29 UTC, Konstantin Tokarev
no flags Details

Description Konstantin Tokarev 2010-10-28 09:29:32 UTC
Created attachment 456195 [details]
Missing header file

Description of problem:

pyconfig.h from python26-devel is hacked to include either pyconfig-32.h or pyconfig-64.h depending on target arch (original Python distribution uses single pyconfig.h and does not provide multilib functionality)

But needed pyconfig-{arch}.h files are provided by python26 package, and i386 version of this package is not available for x86_64. In attachment you will find missing pyconfig-32.h generated by Python configurator from original source distribution of Python 2.6.5. I suggest to include it into python26-devel-2.6.5-5.el5.i386

Comment 1 Dave Malcolm 2010-11-01 18:49:25 UTC
I'm sorry, I don't think I understand this bug report.

python26-devel  contains  /usr/include/python2.6/pyconfig.h
python26.i386   contains  /usr/include/python2.6/pyconfig-32.h
python26.x86_64 contains  /usr/include/python2.6/pyconfig-64.h

What is the problem here?  Is there something on x86_64 that ends up needing /usr/include/python2.6/pyconfig-32.h ?

Comment 2 Konstantin Tokarev 2010-11-02 07:43:47 UTC
Surely. Compilation of 32-bit software which depends on Python libraries

Comment 3 Konstantin Tokarev 2010-11-02 07:57:40 UTC
I've enabled EPEL on x86_64 but `yum list python26*` shows only the next packages:

python26.x86_64       
python26-devel.i386   
python26-devel.x86_64 
python26-libs.i386    
python26-libs.x86_64 
python26-dirq.noarch  
python26-distribute.noarch
python26-gdata.noarch 
python26-greenlet.x86_64
python26-greenlet-devel.i386
python26-greenlet-devel.x86_64
python26-simplejson.x86_64
python26-sqlalchemy.noarch  
python26-test.x86_64
python26-tools.x86_64

Comment 4 Konstantin Tokarev 2010-11-02 07:59:48 UTC
If you need more details, I was building Boost 1.44 and pyconfig-32.h is required for Boost.Python module

Comment 5 Dave Malcolm 2010-11-02 20:01:25 UTC
Are you building with "-m32" on the gcc command line, rather than "-m64"?

Comment 6 Konstantin Tokarev 2010-11-02 20:48:03 UTC
Of course. I've built both versions using SRPM from Fedora, 64-bit compiled out of the box, 32-bit only when I've added this pyconfig-32.h, generated by Python configurator

Comment 7 Dave Malcolm 2010-11-02 21:36:41 UTC
Does installing python26.i386 on the box as well fix it?  That rpm contains the correct version of /usr/include/python2.6/pyconfig-32.h

Comment 8 Konstantin Tokarev 2010-11-02 21:50:14 UTC
1. Python interpreter is not needed for compilation of Boost.Python
2. My yum have not found python26.i386 in EPEL (see list of available packages above)

Comment 9 Dave Malcolm 2010-11-02 22:08:16 UTC
The core "python26" package currently contains rather more than just /usr/bin/python: it also contains the standard libraries.

I recently changed Fedora's python so that the core package just contains /usr/bin/python (and a few related items), moving the standard libraries to python-libs:
http://pkgs.fedoraproject.org/gitweb/?p=python.git;a=commitdiff;h=2ec5b35c5f46414d8bb1eb5874e3f788967d76e3

Perhaps we should make an analogous change to python26 in EPEL5.  That would place the headers into python26-libs, which according to comment #3 are available 

I'm wondering right now how the repo manifest is generated; why is python26.i386 not in the repo, whereas python26-libs.i386 is?

Comment 10 Dave Malcolm 2010-11-04 19:06:38 UTC
(See also bug 649901)

Comment 11 Fedora End Of Life 2017-04-06 10:25:47 UTC
Fedora EPEL 5 changed to end-of-life (EOL) status on 2017-03-31. Fedora EPEL 5
is no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora
or Fedora EPEL, please feel free to reopen this bug against that version. If
you are unable to reopen this bug, please file a new report against the current
release. If you experience problems, please add a comment to this bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.