Skip to content

cmathmodule.c compile error #47119

Closed
Closed

Description

@JUNO
mannequin
BPO 2870
Nosy @tiran

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/tiran'
closed_at = <Date 2008-05-16.10:23:45.886>
created_at = <Date 2008-05-15.21:42:15.660>
labels = ['extension-modules', 'build']
title = 'cmathmodule.c compile error'
updated_at = <Date 2008-05-16.10:23:45.869>
user = 'https://bugs.python.org/Juno'

bugs.python.org fields:

activity = <Date 2008-05-16.10:23:45.869>
actor = 'christian.heimes'
assignee = 'christian.heimes'
closed = True
closed_date = <Date 2008-05-16.10:23:45.886>
closer = 'christian.heimes'
components = ['Extension Modules']
creation = <Date 2008-05-15.21:42:15.660>
creator = 'Juno'
dependencies = []
files = []
hgrepos = []
issue_num = 2870
keywords = []
message_count = 2.0
messages = ['66880', '66929']
nosy_count = 2.0
nosy_names = ['christian.heimes', 'Juno']
pr_nums = []
priority = 'critical'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue2870'
versions = ['Python 2.6']

Activity

  1. JUNO commented on May 15, 2008

    JUNOmannequin
    MannequinAuthor

    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.

  2. added
    buildThe build process and cross-build
    on May 15, 2008
  3. tiran commented on May 16, 2008

    @tiran
    Member

    Fixed in r63366

  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildThe build process and cross-buildextension-modulesC modules in the Modules dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions