Python.h library referencing problem

Bug #1899088 reported by Ishan Roychowdhury
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python3-defaults (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In the file /usrinclude/python3.8/cpython/pystate.h, on line 9, it is trying to reference the initconfig file but is using the path "cpython/initconfig" even though initconfig is in the same directory as pystate.h and gcc thinks that it means another directory called cpython inside the cpython directory. Please change pystate.h so that it references the correct path, modified it on my machine:

previous: #include "cpython/initconfig.h"
new: #include /*cpython/*/"initconfig.h"

please change from previous to new

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gcc 4:7.4.0-1ubuntu2.3
ProcVersionSignature: Ubuntu 5.4.0-48.52~18.04.1-generic 5.4.60
Uname: Linux 5.4.0-48-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.17
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 8 17:50:12 2020
InstallationDate: Installed on 2020-03-31 (191 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
SourcePackage: gcc-defaults
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ishan Roychowdhury (pikleme) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

this is correct behavior. The headers are searched in /usr/include/python3.8

affects: gcc-defaults (Ubuntu) → python3-defaults (Ubuntu)
Changed in python3-defaults (Ubuntu):
status: New → Invalid
Revision history for this message
Ishan Roychowdhury (pikleme) wrote : Re: [Bug 1899088] Re: Python.h library referencing problem

I mean one of the header files is referencing another header file using the
wrong path

On Tue, 9 Mar 2021 at 10:20, Matthias Klose <email address hidden>
wrote:

> this is correct behavior. The headers are searched in
> /usr/include/python3.8
>
>
> ** Package changed: gcc-defaults (Ubuntu) => python3-defaults (Ubuntu)
>
> ** Changed in: python3-defaults (Ubuntu)
> Status: New => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1899088
>
> Title:
> Python.h library referencing problem
>
> Status in python3-defaults package in Ubuntu:
> Invalid
>
> Bug description:
> In the file /usrinclude/python3.8/cpython/pystate.h, on line 9, it is
> trying to reference the initconfig file but is using the path
> "cpython/initconfig" even though initconfig is in the same directory
> as pystate.h and gcc thinks that it means another directory called
> cpython inside the cpython directory. Please change pystate.h so that
> it references the correct path, modified it on my machine:
>
> previous: #include "cpython/initconfig.h"
> new: #include /*cpython/*/"initconfig.h"
>
> please change from previous to new
>
> ProblemType: Bug
> DistroRelease: Ubuntu 18.04
> Package: gcc 4:7.4.0-1ubuntu2.3
> ProcVersionSignature: Ubuntu 5.4.0-48.52~18.04.1-generic 5.4.60
> Uname: Linux 5.4.0-48-generic x86_64
> ApportVersion: 2.20.9-0ubuntu7.17
> Architecture: amd64
> CurrentDesktop: ubuntu:GNOME
> Date: Thu Oct 8 17:50:12 2020
> InstallationDate: Installed on 2020-03-31 (191 days ago)
> InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64
> (20200203.1)
> SourcePackage: gcc-defaults
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1899088/+subscriptions
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.