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: "Dr. Thomas Orgis" <thomas.orgis%uni-hamburg.de@localhost>
To: <gnats-bugs%netbsd.org@localhost>
Cc: 
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: Mon, 1 Apr 2019 22:14:41 +0200

 For my system, the issue seems to be that python does not link with -lnsl:
 
 building 'nis' extension
 gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -I/usr/local/include -I/dev/shm/Python-2.7.16/Include -I/dev/shm/Python-2.7.16 -c /dev/shm/Python-2.7.16/Modules/nismodule.c -o build/temp.linux-x86_64-2.7/dev/shm/Python-2.7.16/Modules/nismodule.o
 gcc -pthread -shared build/temp.linux-x86_64-2.7/dev/shm/Python-2.7.16/Modules/nismodule.o -L/usr/local/lib -ltirpc -o build/lib.linux-x86_64-2.7/nis.so
 *** WARNING: renaming "nis" since importing it failed: build/lib.linux-x86_64-2.7/nis.so: undefined symbol: yp_master
 
 $ nm -g /usr/lib/libnsl.so.2 | grep yp_master
 00000000000075c0 T yp_master
 
 It needs a check if glibc provides the symbols, and else check for
 libnsl. It should be able to build and use the module just fine on my
 box with glibc 2.29, libnsl and libtirpc.
 
 
 -- 
 Dr. Thomas Orgis
 HPC @ Universität Hamburg
 


Home | Main Index | Thread Index | Old Index