LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-06-2011, 09:50 AM   #1
JoelPB
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.

Points:

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?

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

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

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, 10:32 AM   #3
JoelPB
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!

-Joel
 
Old 08-31-2011, 11:47 AM   #4
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

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.

http://linuxfromscratch.org/pipermai...st/068617.html

HTH.

jb.
 
Old 09-02-2011, 05:28 AM   #5
magiknight
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 4
Quote:
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.

http://linuxfromscratch.org/pipermai...st/068617.html

HTH.

jb.
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 05:30 AM.
 
Old 12-10-2011, 09:16 AM   #6
rpedrica
Member
 
Registered: Nov 2008
Location: Cape Town
Distribution: Slackware64 -current
Posts: 208

Rep: Reputation: 27
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, 07: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
 
  


Reply


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 06:19 AM
glibc removed, now I can't do anything, extremely urgent myt Suse/Novell 12 11-06-2007 03:58 AM
glibc pam screwup -- help!!! venky Linux - Newbie 0 03-04-2003 07:27 AM


All times are GMT -5. The time now is 11:03 AM.

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