Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile failure for linux socket CAN support #75047

Open
xrmx mannequin opened this issue Jul 6, 2017 · 2 comments
Open

Compile failure for linux socket CAN support #75047

xrmx mannequin opened this issue Jul 6, 2017 · 2 comments

Comments

@xrmx
Copy link
Mannequin

xrmx mannequin commented Jul 6, 2017

BPO 30864
Nosy @xrmx, @ZackerySpytz

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 = None
closed_at = None
created_at = <Date 2017-07-06.08:36:05.380>
labels = ['expert-IO']
title = 'Compile failure for linux socket CAN support'
updated_at = <Date 2019-07-22.23:40:05.966>
user = 'https://github.com/xrmx'

bugs.python.org fields:

activity = <Date 2019-07-22.23:40:05.966>
actor = 'ZackerySpytz'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['IO']
creation = <Date 2017-07-06.08:36:05.380>
creator = 'Riccardo Magliocchetti'
dependencies = []
files = []
hgrepos = []
issue_num = 30864
keywords = []
message_count = 2.0
messages = ['297816', '348311']
nosy_count = 2.0
nosy_names = ['Riccardo Magliocchetti', 'ZackerySpytz']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = None
url = 'https://bugs.python.org/issue30864'
versions = ['Python 3.6']

@xrmx
Copy link
Mannequin Author

xrmx mannequin commented Jul 6, 2017

I have an issue related to this while trying to compile statically Python 3.6.1 (but latest master looks the same) against a static musl.

The problem is that i have AF_CAN defined because it's defined in linux/socket.h but by not having HAVE_LINUX_CAN_H defined in pyconfig.h the header which contains the definition of struct sockaddr_can is not included. I think (at least for linux) using AF_CAN for the conditionals is wrong and the HAVE_LINUX_CAN_H should be used instead.

I think the same applies for CAN_RAW and CAN_BCM because they are defined in the generic linux/can.h and not in a feature specific header.

Reference:
http://bugs.python.org/issue10141

@xrmx xrmx mannequin added the topic-IO label Jul 6, 2017
@ZackerySpytz
Copy link
Mannequin

ZackerySpytz mannequin commented Jul 22, 2019

It seems that the AF_CAN issue was fixed in bpo-31927 / d318715.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant