[ python-Bugs-851020 ] building on Fedora Core 1

SourceForge.net noreply at sourceforge.net
Wed Dec 3 01:49:36 EST 2003


Bugs item #851020, was opened at 2003-11-29 04:17
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851020&group_id=5470

Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael P. Soulier (msoulier)
Assigned to: Nobody/Anonymous (nobody)
Summary: building on Fedora Core 1

Initial Comment:
I'm trying to build Python 2.3.2 on Fedora Core 1. The
configure runs without errors, but I then get an odd
error about pyconfig.h during the build. 

gcc -pthread -c -fno-strict-aliasing -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -I. -I./Include 
-DPy_BUILD_CORE -o Objects/dictobject.o
Objects/dictobject.c
In file included from Objects/dictobject.c:10:
Include/Python.h:8:22: pyconfig.h: No such file or
directory
Include/Python.h:21:2: #error "limits.h is required by
std C -- why isn't HAVE_LIMITS_H defined?"
In file included from Include/Python.h:48,
                 from Objects/dictobject.c:10:
Include/pyport.h:4:48: pyconfig.h: No such file or
directory
Include/pyport.h:536:2: #error "could not set LONG_MAX
in pyport.h"
Objects/dictobject.c: In function `dictresize':
Objects/dictobject.c:477: warning: implicit declaration
of function `free'
make: *** [Objects/dictobject.o] Error 1
[msoulier at tigger Python-2.3.2]$ find . -name pyconfig.h
./Mac/Include/pyconfig.h
./PC/pyconfig.h
./PC/os2emx/pyconfig.h
./PC/os2vacpp/pyconfig.h
./RISCOS/pyconfig.h
./pyconfig.h

I'm not sure what the issue is here.

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-12-03 07:49

Message:
Logged In: YES 
user_id=21627

It would be good if you could add print statements to
setup.py:detect_tkinter, to find out why it gives up.

Alternatively, you can edit Modules/Setup to force _tkinter
being built.

----------------------------------------------------------------------

Comment By: Michael P. Soulier (msoulier)
Date: 2003-12-03 02:20

Message:
Logged In: YES 
user_id=470843

Well, this is quite odd, but I rebuilt and the error didn't
happen this time. I'm not sure why. 

However, I'm having a problem getting Tkinter built. I'm
trying to port the src rpm currently, but when I do the
--rebuild, I get this in post-processing.

RPM build errors:
    File not found by glob:
/var/tmp/python2.3-2.3.2-root/usr/lib/python2.3/lib-dynload/_tkinter.so*

Looks like it was never built.

[msoulier at tigger msoulier]$ cd rpms
[msoulier at tigger rpms]$ cd BUILD/
[msoulier at tigger BUILD]$ ls
Python-2.3.2
[msoulier at tigger BUILD]$ find Python-2.3.2/ -name "_tkinter*"
Python-2.3.2/Modules/_tkinter.c
Python-2.3.2/PC/os2vacpp/_tkinter.def
Python-2.3.2/PCbuild/_tkinter.dsp

I logged the entire build, if you'd like me to attach it.

[msoulier at tigger msoulier]$ rpm -q tk-devel
tk-devel-8.3.5-93

Thanks.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2003-12-01 22:43

Message:
Logged In: YES 
user_id=21627

Can you pleas invoke the gcc command line manually, passing
-v to gcc? This looks like a bug in the gcc installation: If
-I. is given, it should find ./pyconfig.h.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=851020&group_id=5470



More information about the Python-bugs-list mailing list