pkgsrc-Bugs archive

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

Re: pkg/53673: Building Python 3.7 on Linux fails with error "pkg_create: can't stat" at stage "Generating post-install file lists"



Thanks for your help.

On Wed, Oct 17, 2018 at 1:55 PM Leonardo Taccari <leot%netbsd.org@localhost> wrote:
>  Thank you for the quick feedback and for investigating it!
>
>  I think these are just the important lines of build2.log:
>
>   | building 'nis' extension
>   | cc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -std=gnu99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -I./Include -I. -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -I/root/pkg/work/lang/python37/work/Python-3.7.0/Include -I/root/pkg/work/lang/python37/work/Python-3.7.0 -c /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c -o build/temp.linux-x86_64-3.7/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.o
>   | In file included from /usr/include/rpcsvc/yp_prot.h:11:0,
>   |                  from /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:18:
>   | /usr/include/rpcsvc/ypclnt.h:23:23: fatal error: sys/cdefs.h: No such file or directory
>   |  #include <sys/cdefs.h>
>   |                        ^
>   | compilation terminated.
>
>  If I understand the error correctly I think that now the problem
>  is in libnsl-dev that could tries to include <sys/cdefs.h>.
>

I installed bsd-compat-headers package, which installs file
/usr/include/sys/cdefs.h, and tried again. Build failed, and following
is a chunk of the output.

I also tried with the libbsd-dev package, which installs
/usr/include/bsd/sys/cdefs.h, but the result was the same. There's
another package, dev86, which installs
/usr/lib/bcc/include/sys/cdefs.h , but I didn't try with that.

| building 'nis' extension
| cc -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -O2
-D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=2 -I/usr/include
-I/usr/pkg/include -I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=2
-I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -std=gnu99
-Wextra -Wno-unused-result -Wno-unused-parameter
-Wno-missing-field-initializers -Werror=implicit-function-declaration
-I./Include -I. -I/usr/include -I/usr/pkg/include
-I/usr/pkg/include/db4
-I/root/pkg/work/lang/python37/work/Python-3.7.0/Include
-I/root/pkg/work/lang/python37/work/Python-3.7.0 -c
/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c -o
build/temp.linux-x86_64-3.7/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.o
| In file included from /usr/include/rpcsvc/ypclnt.h:23:0,
|                  from /usr/include/rpcsvc/yp_prot.h:11,
|                  from
/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:18:
| /usr/include/sys/cdefs.h:1:2: warning: #warning usage of
non-standard #include <sys/cdefs.h> is deprecated [-Wcpp]
|  #warning usage of non-standard #include <sys/cdefs.h> is deprecated
|   ^~~~~~~
| In file included from
/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:18:0:
| /usr/include/rpcsvc/yp_prot.h:291:18: error: field
'ypbind_binding_addr' has incomplete type
|    struct in_addr ypbind_binding_addr;         /* In network order */
|                   ^~~~~~~~~~~~~~~~~~~
| /usr/include/rpcsvc/yp_prot.h:332:3: error: unknown type name 'rpcvers_t'
|    rpcvers_t ypbind_hi_vers;
|    ^~~~~~~~~
| /usr/include/rpcsvc/yp_prot.h:335:3: error: unknown type name 'rpcvers_t'
|    rpcvers_t ypbind_lo_vers;
|    ^~~~~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:338:37:
error: unknown type name 'CLIENT'
|  nisproc_maplist_2(domainname *argp, CLIENT *clnt)
|                                      ^~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:
In function 'nis_maplist':
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:358:5:
error: unknown type name 'CLIENT'
|      CLIENT *cl;
|      ^~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:370:10:
error: implicit declaration of function 'clnt_create'
[-Werror=implicit-function-declaration]
|      cl = clnt_create(server, YPPROG, YPVERS, "tcp");
|           ^~~~~~~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:370:8:
warning: assignment makes pointer from integer without a cast
[-Wint-conversion]
|      cl = clnt_create(server, YPPROG, YPVERS, "tcp");
|         ^
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:372:35:
error: implicit declaration of function 'clnt_spcreateerror'
[-Werror=implicit-function-declaration]
|          PyErr_SetString(NisError, clnt_spcreateerror(server));
|                                    ^~~~~~~~~~~~~~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:372:35:
warning: passing argument 2 of 'PyErr_SetString' makes pointer from
integer without a cast [-Wint-conversion]
| In file included from ./Include/Python.h:112:0,
|                  from
/root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:13:
| ./Include/pyerrors.h:83:18: note: expected 'const char *' but
argument is of type 'int'
|  PyAPI_FUNC(void) PyErr_SetString(
|                   ^~~~~~~~~~~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:375:12:
error: implicit declaration of function 'nisproc_maplist_2'
[-Werror=implicit-function-declaration]
|      list = nisproc_maplist_2 (&dom, cl);
|             ^~~~~~~~~~~~~~~~~
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:375:10:
warning: assignment makes pointer from integer without a cast
[-Wint-conversion]
|      list = nisproc_maplist_2 (&dom, cl);
|           ^
| /root/pkg/work/lang/python37/work/Python-3.7.0/Modules/nismodule.c:376:5:
error: implicit declaration of function 'clnt_destroy'
[-Werror=implicit-function-declaration]
|      clnt_destroy(cl);
|      ^~~~~~~~~~~~
| cc1: some warnings being treated as errors
|
| Python build finished successfully!
| The necessary bits to build these optional modules were not found:
| _gdbm                 _sqlite3              _tkinter
| To find the necessary bits, look in setup.py in detect_modules() for
the module's name.
|
|
| The following modules found by detect_modules() in setup.py, have been
| built by the Makefile instead, as configured by the Setup files:
| _abc                  atexit                pwd
| time
|
|
| Failed to build these modules:
| nis

>  Can you please try to share that with the Alpine community and keep us
>  updated?
>

Should I share with the Alpine community that it's a dependency issue?
That libnsl-dev expects <sys/cdefs.h> but it's not installed and that
either libbsd-dev or bsd-compat-headers or something else should be a
dependency?

Thanks.


Home | Main Index | Thread Index | Old Index