Mailing List Archive

[issue2870] cmathmodule.c compile error
New submission from Juno <stephane.jeannenot@orange.fr>:

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.

----------
components: Extension Modules
messages: 66880
nosy: Juno
severity: normal
status: open
title: cmathmodule.c compile error
type: compile error
versions: Python 2.6

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2870>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2870] cmathmodule.c compile error [ In reply to ]
Changes by Georg Brandl <georg@python.org>:


----------
assignee: -> christian.heimes
nosy: +christian.heimes
priority: -> critical

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2870>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue2870] cmathmodule.c compile error [ In reply to ]
Christian Heimes <lists@cheimes.de> added the comment:

Fixed in r63366

----------
resolution: -> fixed
status: open -> closed

__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2870>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com