[issue37733] Fail to build _curses module of Python 3.7.4 on AIX 7.1 using gcc

2019-08-02 Thread LIU YONG


LIU YONG  added the comment:

Additional information of environment 
OS - AIX 7.1 (7100-05-03-1838)
gcc version 6.3.0 (GCC)
ncurses-6.1-2.ppc
ncurses-devel-6.1-2.ppc

I had tried to build Python3.7.3 and Python3.6.9, it hit same errors
It looks like some issue with ncurses version

--
versions: +Python 3.6

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



[issue37733] Fail to build Python 3.7.4 on AIX 7.1 using gcc

2019-07-31 Thread LIU YONG


New submission from LIU YONG :

Trying to build Python 3.7.4 on AIX 7.1 using gcc 6.3.0 but failed

Failed to build these modules:
_ctypes   _curses   _curses_panel


building '_curses' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-I./Include -I. -I/uxx/bxx/Python-3.7.4/Include -I/uxx/bxx/Python-3.7.4 -c 
/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.c -o 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.o
Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_cursesmodule.o -lncurses 
-o build/lib.aix-7.1-3.7/_curses.so
ld: 0711-317 ERROR: Undefined symbol: .box32
ld: 0711-317 ERROR: Undefined symbol: ._setqiflush
ld: 0711-317 ERROR: Undefined symbol: .setsyx
ld: 0711-317 ERROR: Undefined symbol: ._getsyx
ld: 0711-317 ERROR: Undefined symbol: .w32attroff
ld: 0711-317 ERROR: Undefined symbol: .w32attron
ld: 0711-317 ERROR: Undefined symbol: .w32attrset
ld: 0711-317 ERROR: Undefined symbol: .w32addch
ld: 0711-317 ERROR: Undefined symbol: _unctrl
ld: 0711-317 ERROR: Undefined symbol: .w32insch
ld: 0711-317 ERROR: Undefined symbol: .w32echochar
ld: 0711-317 ERROR: Undefined symbol: .p32echochar
ld: 0711-317 ERROR: Undefined symbol: .initscr32
ld: 0711-317 ERROR: Undefined symbol: wacs_map
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
building '_curses_panel' extension
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall 
-std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Werror=implicit-function-declaration 
-I./Include -I. -I/uxx/bxx/Python-3.7.4/Include -I/uxx/bxx/Python-3.7.4 -c 
/uxx/bxx/Python-3.7.4/Modules/_curses_panel.c -o 
build/temp.aix-7.1-3.7/uxx/bxx/Python-3.7.4/Modules/_curses_panel.o
In file included from /opt/freeware/include/ncurses/panel.h:42:0,
 from /uxx/bxx/Python-3.7.4/Modules/_curses_panel.c:17:
/opt/freeware/include/ncurses/curses.h:388:16: error: conflicting types for 
'attr_t'
 typedef chtype attr_t;  /* ...must be at least as wide as chtype */
^~
In file included from ./Include/py_curses.h:36:0,
 from /uxx/bxx/Python-3.7.4/Modules/_curses_panel.c:15:
/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/6.3.0/include-fixed/curses.h:80:21:
 note: previous declaration of 'attr_t' was here
 typedef int attr_t;
 ^~

--
components: Build
messages: 348811
nosy: LIU YONG
priority: normal
severity: normal
status: open
title: Fail to build Python 3.7.4 on AIX 7.1 using gcc
versions: Python 3.7

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