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.

classification
Title: cmathmodule.c compile error
Type: compile error Stage:
Components: Extension Modules Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: christian.heimes Nosy List: Juno, christian.heimes
Priority: critical Keywords:

Created on 2008-05-15 21:42 by Juno, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg66880 - (view) Author: Stéphane JEANNENOT (Juno) Date: 2008-05-15 21:42
Building on Linux Debian Etch 2.6.18-6-k7 #1 SMP Thu May 8 08:09:57 UTC
2008 i686 GNU/Linux

Python version 2.6 svn trunk:63321
Compiler : GCC 4.1.2
Compile error in Modules/cmathmodule.c

Detailled error message follows :

building 'cmath' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/data/User/AppSVN/Python/./Include -I.
-IInclude -I./Include -I/usr/local/include
-I/data/User/AppSVN/Python/Include -I/data/User/AppSVN/Python -c
/data/User/AppSVN/Python/Modules/cmathmodule.c -o
build/temp.linux-i686-2.6/data/User/AppSVN/Python/Modules/cmathmodule.o
/data/User/AppSVN/Python/Modules/cmathmodule.c: In function 'cmath_phase':
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: 'r'
undeclared (first use in this function)
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: (Each
undeclared identifier is reported only once
/data/User/AppSVN/Python/Modules/cmathmodule.c:923: error: for each
function it appears in.)

Checking previous function in the file cmathmodule.c, it seems that you
have to declare line 916 :
Py_complex z,r;

After this correction the compilation is ok. I do not test the function
itself, I just try to have the code compiling.
msg66929 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-05-16 10:23
Fixed in r63366
History
Date User Action Args
2022-04-11 14:56:34adminsetgithub: 47119
2008-05-16 10:23:45christian.heimessetstatus: open -> closed
resolution: fixed
messages: + msg66929
2008-05-16 09:30:37georg.brandlsetpriority: critical
assignee: christian.heimes
nosy: + christian.heimes
2008-05-15 21:42:15Junocreate