Issue851020
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2003-11-29 03:17 by msoulier, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (13) | |||
---|---|---|---|
msg19183 - (view) | Author: Michael P. Soulier (msoulier) | Date: 2003-11-29 03:17 | |
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@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. |
|||
msg19184 - (view) | Author: Martin v. Löwis (loewis) * | Date: 2003-12-01 21:43 | |
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. |
|||
msg19185 - (view) | Author: Michael P. Soulier (msoulier) | Date: 2003-12-03 01:20 | |
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@tigger msoulier]$ cd rpms [msoulier@tigger rpms]$ cd BUILD/ [msoulier@tigger BUILD]$ ls Python-2.3.2 [msoulier@tigger BUILD]$ find Python-2.3.2/ -name "_tkinter*" Python-2.Modules/_tkinter.c Python-2.PC/os2vacpp/_tkinter.def Python-2.PCbuild/_tkinter.dsp I logged the entire build, if you'd like me to attach it. [msoulier@tigger msoulier]$ rpm -q tk-devel tk-devel-8.3.5-93 Thanks. |
|||
msg19186 - (view) | Author: Martin v. Löwis (loewis) * | Date: 2003-12-03 06:49 | |
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. |
|||
msg19187 - (view) | Author: Anthony Baxter (anthonybaxter) | Date: 2003-12-03 22:59 | |
Logged In: YES user_id=29957 Note that I build the 23-maint and HEAD on FC1 frequently, and haven't had any problems like this at all. Make sure you have the tcl-devel and tk-devel RPMs installed. |
|||
msg19188 - (view) | Author: Michael P. Soulier (msoulier) | Date: 2003-12-04 01:53 | |
Logged In: YES user_id=470843 > Make sure you have the tcl-devel and tk-devel RPMs installed. I did not have tcl-devel installed. I'll try again now. Note that if tk-devel and tcl-devel are required to build this src rpm, then they should be listed in the BuildRequires section of the specfile. Building now... |
|||
msg19189 - (view) | Author: Michael P. Soulier (msoulier) | Date: 2003-12-04 02:18 | |
Logged In: YES user_id=470843 > Building now... It worked! Cool. Changing Summary: Was: building on Fedora Core 1 Is: Missing BuildRequires in src rpm specfile |
|||
msg19190 - (view) | Author: Martin v. Löwis (loewis) * | Date: 2003-12-04 07:20 | |
Logged In: YES user_id=21627 Can you contribute a patch for the spec files (in Misc/RPM)? |
|||
msg19191 - (view) | Author: Nobody/Anonymous (nobody) | Date: 2003-12-05 01:02 | |
Logged In: NO I'm attaching a patch and a patched version of the spec-file which adds the tcl and tk prerequesites for building if tkinter is enabled. I'm running into a problem when building with these on Fedora, but I'm not sure if it's an environment problem or a .spec problem. I'd appreciate feedback on wether this spec file works for anyone. Sean |
|||
msg19192 - (view) | Author: Sean Reifschneider (jafo) * | Date: 2003-12-05 01:03 | |
Logged In: YES user_id=81797 Ugh, sorry, I wasn't logged in. The last message was from me. Sean |
|||
msg19193 - (view) | Author: Sean Reifschneider (jafo) * | Date: 2003-12-05 01:08 | |
Logged In: YES user_id=81797 I guess I can't attach files to this bug. I've uploaded the patch and the patched .spec file to ftp://ftp.tummy.com/pub/tummy/Python/patches/ Let me know how this looks, and I'll either fix it or submit it as a patch. Thanks, Sean |
|||
msg19194 - (view) | Author: Sean Reifschneider (jafo) * | Date: 2003-12-08 01:22 | |
Logged In: YES user_id=81797 Please go ahead and close this. See <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=855999&group_id=5470&atid=305470">patch #855999</a>, which includes a patch for the .spec file which seems to work with Fedora Core 1. I've also uploaded a new SRPM and Fedora binaries to the FTP site, and will be updating the web-page in a bit. Sean |
|||
msg19195 - (view) | Author: A.M. Kuchling (akuchling) * | Date: 2003-12-23 19:16 | |
Logged In: YES user_id=11375 Closed per jafo's request. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:01 | admin | set | github: 39626 |
2003-11-29 03:17:00 | msoulier | create |