Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-07-2011, 08:48 AM
|
#1
|
|
Member
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 767
|
Bug in Slackware64 version of yp-tools
Hi,
The yp-tools have a bug in them in the 64bit-version. In the 32bit-version of Slackware, the various NIS tools are to be found in /usr/lib/yp/. In the 64bit-version, the tools are in /usr/lib64/yp, but some of the tools rely on other tools and try to find them in the wrong place, e. g. /usr/lib/yp.
A workaround is to create a /usr/lib/yp directory on the 64bit version and to symlink the tools from /usr/lib64/yp.
I don't know quite how to report this bug, so I post it here.
|
|
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
07-07-2011, 09:36 AM
|
#2
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
it could be useful if you post the names of the binaries/libraries that try to look for stuff in /usr/lib instead that /usr/lib64, or just post the full errors without the /ust/lib/yp symlink.
|
|
|
|
07-07-2011, 11:44 PM
|
#3
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
I got no NIS where to try this atm, but running this simple sed fixes things for you without the symlink?
Code:
sed -i -e "s|^YPBINDIR.*|YPBINDIR=/usr/lib64/yp|" /usr/lib64/yp/{ypinit,ypxfr_1perday,ypxfr_1perhour,ypxfr_2perday}
(found them with "grep usr\/lib /usr/lib64/yp/*", maybe naive, but should do  )
Last edited by ponce; 07-07-2011 at 11:49 PM.
|
|
|
|
07-08-2011, 03:30 AM
|
#4
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 614
Rep: 
|
Looks like it can be fixed in the build by adding --libexecdir=/usr/lib64 to configure.
|
|
|
2 members found this post helpful.
|
07-08-2011, 04:09 AM
|
#5
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
nice wildwizard  I modified the slackbuild where it builds ypserv like this
Code:
--- yptools/yptools.SlackBuild.orig 2011-03-08 19:33:25.000000000 +0100
+++ yptools/yptools.SlackBuild 2011-07-08 09:10:19.928969470 +0200
@@ -201,6 +201,7 @@
make clean
./configure \
--libdir=/usr/lib${LIBDIRSUFFIX} \
+ --libexecdir=/usr/lib${LIBDIRSUFFIX}/yp \
--enable-fqdn \
--enable-yppasswd \
$ARCH-slackware-linux
Last edited by ponce; 07-08-2011 at 04:10 AM.
|
|
|
|
07-08-2011, 04:16 AM
|
#6
|
|
Member
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 614
Rep: 
|
Quote:
Originally Posted by ponce
nice wildwizard  I modified the slackbuild where it builds ypserv like this
|
NB It is there twice, some bug with the build according to Pat's comments so you have to add it twice.
|
|
|
|
07-08-2011, 04:28 AM
|
#7
|
|
Senior Member
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 1,933
|
seems like in the second block it's enough: should be used by shell scripts for the YPBINDIR variable and the install location.
|
|
|
|
07-08-2011, 04:56 AM
|
#8
|
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,677
Rep: 
|
I sent this patch to Pat earlier today:
Code:
--- yptools.SlackBuild.orig 2011-07-08 10:04:00.560251285 +0200
+++ yptools.SlackBuild 2011-07-08 10:05:14.891000923 +0200
@@ -190,6 +190,8 @@
rm -rf ypserv-$YPSERV
tar xvf $CWD/ypserv-$YPSERV.tar.bz2 || exit 1
cd ypserv-$YPSERV || exit 1
+# Make it 64-bit clean:
+sed -i -e "s,lib/yp,lib${LIBDIRSUFFIX}/yp,g" configure
# --with-ndbm=yes
# Support for this was discontinued upstream
# --enable-tcp-wrapper
That should fix it.
Eric
Edit: I think ponce's patch is cleaner... I did not see that before I wrote this.
Last edited by Alien Bob; 07-08-2011 at 04:58 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|