[issue43241] curses.h: present but cannot be compiled while building with custom CPPFLAGS

2021-02-17 Thread Xuehai Pan


New submission from Xuehai Pan :

I install python3 with Linuxbrew. All header files have been symlinked to 
"~/.linuxbrew/inlcude". It raises warnings when I building with custom CPPFLAGS.

```
checking curses.h usability... no
checking curses.h presence... yes
configure: WARNING: curses.h: present but cannot be compiled
configure: WARNING: curses.h: check for missing prerequisite headers?
configure: WARNING: curses.h: see the Autoconf documentation
configure: WARNING: curses.h: section "Present But Cannot Be Compiled"
configure: WARNING: curses.h: proceeding with the compiler's result
configure: WARNING: ## --- ##
configure: WARNING: ## Report this to https://bugs.python.org/ ##
configure: WARNING: ## --- ##
checking for curses.h... no
checking ncurses.h usability... no
checking ncurses.h presence... yes
configure: WARNING: ncurses.h: present but cannot be compiled
configure: WARNING: ncurses.h: check for missing prerequisite headers?
configure: WARNING: ncurses.h: see the Autoconf documentation
configure: WARNING: ncurses.h: section "Present But Cannot Be Compiled"
configure: WARNING: ncurses.h: proceeding with the compiler's result
configure: WARNING: ## --- ##
configure: WARNING: ## Report this to https://bugs.python.org/ ##
configure: WARNING: ## --- ##
checking for ncurses.h... no
checking for term.h... yes
```

See https://github.com/Homebrew/linuxbrew-core/pull/22307 for more details.

--
components: Build
files: Screenshot config master.png
messages: 387150
nosy: XuehaiPan
priority: normal
severity: normal
status: open
title: curses.h: present but cannot be compiled while building with custom 
CPPFLAGS
type: compile error
versions: Python 3.9
Added file: https://bugs.python.org/file49814/Screenshot config master.png

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



[issue43241] curses.h: present but cannot be compiled while building with custom CPPFLAGS

2021-02-17 Thread Xuehai Pan


Xuehai Pan  added the comment:

./configure raised "WARNING: curses.h: present but cannot be compiled" when 
CPPFLAGS="-I. -I/Include -I${HOMEBREW_PREFIX}/include".

./configure found and compiled with ncurses successfully when CPPFLAGS="-I. 
-I/Include -I${HOMEBREW_PREFIX}/include -I$(brew --prefix ncurses)/include"

It's really weird that all headers in "$(brew --prefix ncurses)/include" are 
already symlinked to "${HOMEBREW_PREFIX}/include".

--

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



[issue43241] curses.h: present but cannot be compiled while building with custom CPPFLAGS

2021-02-17 Thread Xuehai Pan


Xuehai Pan  added the comment:

Add screenshot.

--
Added file: https://bugs.python.org/file49815/Screenshot.png

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



[issue43241] curses.h: present but cannot be compiled while building with custom CPPFLAGS

2021-02-17 Thread Xuehai Pan


Change by Xuehai Pan :


--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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