Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Bug in zsh 3.1.0 on RedHat 5.0



On RedHat 5.0 (with glibc), zsh v3.1.0 was unable to find yp_all(), as 
-lnsl was missing during linking.  This patch fixed my problem.

diff -ur /store/store/stash/zsh/src-3.1.0/configure.in src-3.1.0-386linuxlibc6/configure.in
--- /store/store/stash/zsh/src-3.1.0/configure.in       Sat Dec 21 01:14:15 1996
+++ src-3.1.0-386linuxlibc6/configure.in        Tue Jan 13 15:13:32 1998
@@ -361,9 +361,13 @@

 dnl Some systems (Solaris 2.x) require libnsl (Network Services Library)
 dnl to find getdomainname and yp_all
-AC_CHECK_FUNCS(getdomainname)
+AC_CHECK_FUNCS(getdomainname yp_all)
 if test $ac_cv_func_getdomainname = no; then
   AC_CHECK_LIB(nsl, getdomainname)
+fi
+dnl Others (Linux RedHat 5.0) need nsl just to get yp_all
+if test $ac_cv_func_yp_all = no; then
+  AC_CHECK_LIB(nsl, yp_all)
 fi

 dnl I am told that told that unicos reqire these for nis_list
-- 
##>  Petter Reinholdtsen <##    | pere@xxxxxxxxxxxxx
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!



Messages sorted by: Reverse Date, Date, Thread, Author