pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Darwin help needed for Python + curses



Hi!

Since I merged py-curses and py-cursespanel into the base Python
packages, they don't build in the MNX bulks for Darwin, reporting
problems with missing functions, which are, AFAICT, included in
ncurses which is installed:

=> Full dependency ncurses>=6.3nb1: found ncurses-6.4

In a manual test build, this was not reproducible.

Does anyone have an idea what could be the problem here?

I'll include the error from the log below.

Thanks,
 Thomas


clang -Wsign-compare -Wunreachable-code -DNDEBUG -pipe -Os -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -pipe -Os -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -pipe -Os -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -std=gnu11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DHAVE_NCURSESW=1 -D_XOPEN_SOURCE_EXTENDED=1 -I./Include -I. -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/Users/pbulk/build/lang/python311/work/Python-3.11.6/Include -I/Users/pbulk/build/lang/python311/work/Python-3.11.6/. -c /Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_curses_panel.c -o build/temp.macosx-11.3-x86_64-3.11/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_curses_panel.o
clang -bundle -undefined dynamic_lookup -L/opt/pkg/lib -L/usr/lib -L/opt/pkg/lib -L/usr/lib -L/opt/pkg/lib -L/usr/lib -pipe -Os -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include -I/opt/pkg/include -I/opt/pkg/include/ncurses -I/opt/pkg/include -I/opt/pkg/include/ncurses build/temp.macosx-11.3-x86_64-3.11/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/socketmodule.o -L. -L/opt/pkg/lib -L/usr/lib -o build/lib.macosx-11.3-x86_64-3.11/_socket.so
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:765:9: error: call to undeclared function 'setcchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        setcchar(&wcval, wstr, attr, PAIR_NUMBER(attr), NULL);
        ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:767:19: error: call to undeclared function 'mvwadd_wch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = mvwadd_wch(self->win,y,x, &wcval);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:767:19: note: did you mean 'mvwaddch'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:717:28: note: 'mvwaddch' declared here
extern NCURSES_EXPORT(int) mvwaddch (WINDOW *, int, int, const chtype); /* generated */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:769:19: error: call to undeclared function 'wadd_wch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = wadd_wch(self->win, &wcval);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:849:19: error: call to undeclared function 'mvwaddwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = mvwaddwstr(self->win,y,x,wstr);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:851:19: error: call to undeclared function 'waddwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = waddwstr(self->win,wstr);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:932:19: error: call to undeclared function 'mvwaddnwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = mvwaddnwstr(self->win,y,x,wstr,n);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:932:19: note: did you mean 'mvwaddnstr'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:720:28: note: 'mvwaddnstr' declared here
extern NCURSES_EXPORT(int) mvwaddnstr (WINDOW *, int, int, const char *, int);  /* generated */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:934:19: error: call to undeclared function 'waddnwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = waddnwstr(self->win,wstr,n);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:934:19: note: did you mean 'waddnstr'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:830:28: note: 'waddnstr' declared here
extern NCURSES_EXPORT(int) waddnstr (WINDOW *,const char *,int);        /* implemented */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1505:14: error: call to undeclared function 'wget_wch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        ct = wget_wch(self->win ,&rtn);
             ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1505:14: note: did you mean 'wgetch'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:852:28: note: 'wgetch' declared here
extern NCURSES_EXPORT(int) wgetch (WINDOW *);                           /* implemented */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1508:14: error: call to undeclared function 'mvwget_wch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        ct = mvwget_wch(self->win, y, x, &rtn);
             ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1508:14: note: did you mean 'mvwgetch'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:724:28: note: 'mvwgetch' declared here
extern NCURSES_EXPORT(int) mvwgetch (WINDOW *, int, int);               /* generated */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1850:19: error: call to undeclared function 'mvwins_wstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = mvwins_wstr(self->win,y,x,wstr);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1852:19: error: call to undeclared function 'wins_wstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = wins_wstr(self->win,wstr);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1935:19: error: call to undeclared function 'mvwins_nwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = mvwins_nwstr(self->win,y,x,wstr,n);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1935:19: note: did you mean 'mvwinsnstr'?
/Users/pbulk/build/lang/python311/work/.buildlink/include/ncurses.h:734:28: note: 'mvwinsnstr' declared here
extern NCURSES_EXPORT(int) mvwinsnstr (WINDOW *, int, int, const char *, int);  /* generated */
                           ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:1937:19: error: call to undeclared function 'wins_nwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
            rtn = wins_nwstr(self->win,wstr,n);
                  ^
/Users/pbulk/build/lang/python311/work/Python-3.11.6/Modules/_cursesmodule.c:4505:29: error: call to undeclared function 'unget_wch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    return PyCursesCheckERR(unget_wch(wch), "unget_wch");
                            ^
14 errors generated.


Home | Main Index | Thread Index | Old Index