Bug 7119

Summary: Can't use NIS module with Python
Product: [Retired] Red Hat Linux Reporter: James Graves <ansible>
Component: pythonAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-11-22 17:50:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description James Graves 1999-11-18 22:46:38 UTC
I can't import and use the NIS module with Python 1.5.2.  This is what it
looks like trying it from the interactive prompt:

# python
Python 1.5.2 (#1, Nov 18 1999, 16:29:32)  [GCC egcs-2.91.66 19990314/Linux
(egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import nis
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: /usr/lib/python1.5/lib-dynload/nismodule.so: undefined
symbol: yperr_string

I've looked at the definition of /usr/include/rpcsvc/ypclnt.h and
yperr_string is indeed in there.  I don't do much with dynamically loaded
libraries, so I'm not sure where to go from here.

Comment 1 Michael K. Johnson 1999-11-22 17:50:59 UTC
nismodule needed to be linked with -lnsl
Fixed in python-1.5.2-8 package which will be in the next RawHide
release.  Please re-open this bug if that is not the case.

Thanks for the report!