[issue25853] Compile error with pytime.h - struct timespec declared inside parameter list

2021-09-12 Thread Irit Katriel


Irit Katriel  added the comment:

Closing as there isn't enough information here for us to do anything about it 
and there has been no response from the OP to follow-up questions.

--
nosy: +iritkatriel
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25853] Compile error with pytime.h - struct timespec declared inside parameter list

2015-12-14 Thread Martin Panter

Martin Panter added the comment:

What platform, C library, etc do you have? According to Posix, struct timespec 
is normally defined in , but can also be gotten via various other 
include files, many of which are included before "pytime.h".

In particular,  includes "pyport.h", which has conditional code for 
including ,  and . All of these should define 
timespec. It might be useful to check your pyconfig.h file to see if stuff like 
the following is defined:

/* Define to 1 if you can safely include both  and . */
#define TIME_WITH_SYS_TIME 1

--
components: +Build -Library (Lib)
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25853] Compile error with pytime.h - struct timespec declared inside parameter list

2015-12-12 Thread jamespharvey20

New submission from jamespharvey20:

When including pytime.h:

n file included from /usr/include/python3.5m/Python.h:65:0,
 from src/package.c:25:
/usr/include/python3.5m/pytime.h:136:56: error: ‘struct timespec’ declared 
inside parameter list [-Werror]
 PyAPI_FUNC(int) _PyTime_AsTimespec(_PyTime_t t, struct timespec *ts);
^
/usr/include/python3.5m/pytime.h:136:56: error: its scope is only this 
definition or declaration, which is probably not what you want [-Werror]
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1

--
components: Library (Lib)
messages: 256301
nosy: jamespharvey20
priority: normal
severity: normal
status: open
title: Compile error with pytime.h - struct timespec declared inside parameter 
list
type: compile error
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25853] Compile error with pytime.h - struct timespec declared inside parameter list

2015-12-12 Thread jamespharvey20

jamespharvey20 added the comment:

This is using https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz

GCC v5.3.0

Using Werror obviously

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com