[issue37360] Building without OpenPTY and without stropts.h

2019-06-21 Thread Nick Papior


Nick Papior  added the comment:

FYI:

The problem arises since Intel adds a library path to:

../clck/2019.2.1/lib/intel64/

which has libutil.so!

This means that the Intel compiler *may* not find OpenPTY since that may 
optionally be placed in libutil.so...
Simply removing the path from the env means Intel compilers functions again ;)

*sigh*

--

___
Python tracker 

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



[issue37360] Building without OpenPTY and without stropts.h

2019-06-21 Thread Nick Papior


New submission from Nick Papior :

When trying to compile Python without OpenPTY and without stropts.h the 
compilation fails at Modules/posixmodule.c.

Apparently there is a failed logic in the def's.

It goes something like this:

#ifdef HAVE_OPENPTY
...
#elif defined(HAVE__GETPTY)
...
#else
...
#if !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC)
ioctl(slave_fd, I_PUSH, "ptem"); /* push ptem */
...
#endif
#endif

However, in the top of the file there is:
#if defined(HAVE_OPENPTY) || defined(HAVE_FORKPTY) || defined(HAVE_DEV_PTMX)
#ifdef HAVE_PTY_H
#include 
#else
#ifdef HAVE_LIBUTIL_H
#include 
#else
#ifdef HAVE_UTIL_H
#include 
#endif /* HAVE_UTIL_H */
#endif /* HAVE_LIBUTIL_H */
#endif /* HAVE_PTY_H */
#ifdef HAVE_STROPTS_H
#include 
#endif


However, if stropts.h is not present (then I_PUSH isn't either) then the logic 
fails if OpenPTY isn't present as well... :(

This came up when I tried to compile Python using Intel compiler suite on our 
cluster.
It succesfully compiles using GNU, but fails with Intel due to this rare hickup.

If you need additional details, please let me now!

--
messages: 346200
nosy: nickpapior
priority: normal
severity: normal
status: open
title: Building without OpenPTY and without stropts.h
type: compile error
versions: Python 2.7, Python 3.7

___
Python tracker 

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