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"



The following reply was made to PR pkg/53673; it has been noted by GNATS.

From: Hamza Sheikh <hamza%codeghar.com@localhost>
To: leot%netbsd.org@localhost
Cc: linux-pkg-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, 
	pkgsrc-bugs%netbsd.org@localhost, gnats-bugs%netbsd.org@localhost
Subject: Re: pkg/53673: Building Python 3.7 on Linux fails with error
 "pkg_create: can't stat" at stage "Generating post-install file lists"
Date: Wed, 24 Oct 2018 15:43:56 -0700

 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_SO=
 URCE=3D2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -O2 -D_FO=
 RTIFY_SOURCE=3D2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -=
 O2 -D_FORTIFY_SOURCE=3D2 -I/usr/include -I/usr/pkg/include -I/usr/pkg/inclu=
 de/db4 -std=3Dgnu99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-m=
 issing-field-initializers -Werror=3Dimplicit-function-declaration -I./Inclu=
 de -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/python3=
 7/work/Python-3.7.0 -c /root/pkg/work/lang/python37/work/Python-3.7.0/Modul=
 es/nismodule.c -o build/temp.linux-x86_64-3.7/root/pkg/work/lang/python37/w=
 ork/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=3D2 -I/usr/include -I/usr/pkg/include
 -I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=3D2 -I/usr/include
 -I/usr/pkg/include -I/usr/pkg/include/db4 -O2 -D_FORTIFY_SOURCE=3D2
 -I/usr/include -I/usr/pkg/include -I/usr/pkg/include/db4 -std=3Dgnu99
 -Wextra -Wno-unused-result -Wno-unused-parameter
 -Wno-missing-field-initializers -Werror=3Dimplicit-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/M=
 odules/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=3Dimplicit-function-declaration]
 |      cl =3D 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 =3D 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=3Dimplicit-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=3Dimplicit-function-declaration]
 |      list =3D 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 =3D 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=3Dimplicit-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