Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 06-06-2011, 08:50 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
Unhappy Upcoming pain with glibc-2.14 and Linux-PAM: RPC build supt. is removed from glibc!

Hi -

I have built an LFS/BLFS server, with additional things to support email, and one thing I try to do is stay relatively up to date with glibc. One thing that has kept me away from the new 2.14 is this horror story: glibc 2.14 has removed support for compiling any code using the old Sun RPC interface in glibc, although it will still support existing shared-library executables. They suggest people use the newer TI-RPC library, which supports IPv6, and other things.

This completely hoses compiling Linux-PAM, which I know is used by a number of folks. I've reached out to the Linux-PAM folks (no reply so far since Saturday), and in the meantime have tried to see if I can make TI-RPC work, and there are a number of source files commented out from the makefiles (around DES encryption, etc.) that are required by things like rpcbind, etc.

This is turning into a real nightmare.


1) Is anyone from the LFS team aware of this loss of RPC in glibc 2.14? I don't know if things other than Linux-PAM are affected.

2) Does anyone know how to successfully build and use Linux-PAM with TI-RPC on an LFS-based system?

Old 06-06-2011, 10:10 AM   #2
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389

glibc 2.14 isn't yet used when building an LFS systems (either the stable 6.8 or the SVN version).

Is the LFS team aware? We'll see when a new LFS version arrives, but I'm betting they are aware
Old 06-11-2011, 09:32 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Now that I had some time on the weekend...

...I edited Linux-PAM a bit to let me compile it under glibc 2.14. In particular, since I am not a user of YP/NIS, I just did a 'kludge' of "#if 0" around the entire file modules/pam_unix/yppasswd_xdr.c, and in the same directory, also "#if 0" around some similar code that supported NIS. The build (and the resulting functionality) worked just fine.

To properly handle this, the right thing to do is make Linux-PAM have YP/NIS disabled from it as an optional, configurable choice, and then users who do NOT use it can choose '--disable-nis' or some such. The owners of Linux-PAM should perhaps do that (and I am contacting them), but in the meantime, I now have a full system running with glibc 2.14!

Old 08-31-2011, 10:47 AM   #4
Registered: May 2004
Distribution: FC3
Posts: 87

Rep: Reputation: 27
One solution to this problem is to patch glibc to input the required rpc headers.

Please see this post which has the patches and how to apply them.


Old 09-02-2011, 04:28 AM   #5
Registered: Oct 2003
Posts: 37

Rep: Reputation: 4
Originally Posted by Johnburrell View Post
One solution to this problem is to patch glibc to input the required rpc headers.

Please see this post which has the patches and how to apply them.


Actually the real fix is to install libtirpc (check it out on sourceforge). The current maintainer of glibc want's to drop the RPC stuff all together and allow it to be a separate package. There are reasons for this, (libtirpc supports ipv6, the older glibc version does not and never will.)

And yes it compiles fine for me, I am using libtirpc-0.2.2 and it seems to clear things up very nicely.

Last edited by magiknight; 09-02-2011 at 04:30 AM.
Old 12-10-2011, 08:16 AM   #6
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 219

Rep: Reputation: 29
I'm running slackware -current ( glibc 2.14.1 ) and same issue when building libvirt. Only problem is that nis.h is also missing if I try and build libtirpc ...
Old 12-13-2011, 06:31 AM   #7
Andrew Benton
Senior Member
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Linux-PAM-1.1.5 compiles no problem for me if I configure it with --disable-nis


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR:During Making of glibc-build(GLIBC-2.12.1) gau190188 Linux From Scratch 1 01-04-2011 05:19 AM
glibc removed, now I can't do anything, extremely urgent myt SUSE / openSUSE 12 11-06-2007 02:58 AM
glibc pam screwup -- help!!! venky Linux - Newbie 0 03-04-2003 06:27 AM

All times are GMT -5. The time now is 06:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration