LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 11-23-2011, 11:48 AM   #1
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Rep: Reputation: 10
Linux-PAM


i'm having problem with making this pachage.i'm getting this error:
Code:
 pam_unix_passwd.c:57:21: fatal error: rpc/rpc.h: No such file or directory
  compilation terminated.
  make[3]: *** [pam_unix_passwd.lo] Error 1
  make[3]: Leaving directory `/sources/Linux-PAM-1.1.3/modules/pam_unix'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/sources/Linux-PAM-1.1.3/modules'
  make[1]: *** [all-recursive] Error 1
  make[1]: Leaving directory `/sources/Linux-PAM-1.1.3'
  make: *** [all] Error 2
i'm not sure rpc.h is belong to which package!!!
 
Old 11-23-2011, 11:59 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
I'm running Fedora, FYI....
Code:
yum provides */rpc/rpc.h
(outputs the following)
glibc-headers-2.14-5.x86_64 : Header files for development using standard C libraries.
Repo        : installed
Matched from:
Filename    : /usr/include/rpc/rpc.h
Do you have glibc-headers installed?
 
Old 11-23-2011, 12:09 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

rpc.h is installed by glibc during the installation of LFS 7.0 (This one).

It should reside in: /usr/include/rpc

@corp769: Yep, roughly the same answer, but Fedora and LFS do things differently
 
Old 11-23-2011, 12:10 PM   #4
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Code:
glibc-headers-2.14-5.x86_64
is this package contained in blfs?
i think i installed in lfs!!!
 
Old 11-23-2011, 12:16 PM   #5
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
Code:
rpc.h is installed by glibc during the installation of LFS 7.0
i didn't get any error during the installation of glibc in lfs, but i don't hace rpc.h in /usr/include/rpc/ !!!
 
Old 11-23-2011, 12:16 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by druuna View Post
Hi,

rpc.h is installed by glibc during the installation of LFS 7.0 (This one).

It should reside in: /usr/include/rpc

@corp769: Yep, roughly the same answer, but Fedora and LFS do things differently
Oh I know, it was just a reference, nothing more.
 
Old 11-23-2011, 12:36 PM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
There was a report from blfs support
Quote:
>> Hi,
>> >> I'm now having trouble with Linux-PAM.
>> >> I get the following error:
>> >>
>> >> pam_unix_passwd.c:57:21: fatal error: rpc/rpc.h: No such file or directory
>> >> compilation terminated.
>> >> make[3]: *** [pam_unix_passwd.lo] Error 1
>> >> make[3]: Leaving directory `/sources/Linux-PAM-1.1.3/modules/pam_unix'
>> >> make[2]: *** [all-recursive] Error 1
>> >> make[2]: Leaving directory `/sources/Linux-PAM-1.1.3/modules'
>> >> make[1]: *** [all-recursive] Error 1
>> >> make[1]: Leaving directory `/sources/Linux-PAM-1.1.3'
>> >> make: *** [all] Error 2
>> >>
>> >> Not sure which package rpc.h belongs to.
>> >> Any help would be appreciated.
> >
> > Try configuring pam with --disable-nis
> >
> > Andy
Thanks for all the suggestions.
I think I'll stick with the --disable-nis with Linux-PAM-1.1.4 since I
will never use NIS. FYI, version 1.1.3 did not work.
Does any one know where the official download site for Linux-PAM is
located? It seems that all the kernel.org links are still broken. Can
some please post the md5sum for Linux-PAM-1.1.4.tar.bz2. I just want to
make sure I've downloaded the correct version.
Thanks,
Wayne
 
Old 11-23-2011, 01:09 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Another option you could try would be installing libtirpc before building linux PAM.

Based on this info:
Quote:
On 09/09/2011 19:11, Walter Webb wrote:
> I don't know if it's my own problem or a general one, but the directory
> /usr/include/rpc contains one file; netdb.h. /tools/include/rpc also has
> the one file. I discovered this when trying to install portmap in a
> completed system.

Yes, this has been reported previously. It's because upstream Glibc no
longer installs the rpc headers. Upstream now expect folks to install
libtirpc http://sourceforge.net/projects/libtirpc/). That said,
libtirpc itself depends on some of the Glibc rpc headers, or did last
time I tried to install it.

Probably another issue to sort out before LFS-7.0 final (either put
libtirpc or a pointer to it in the book).

Regards,

Matt.
(lfs-7.0-rc1 glibc-2.14 rpc)

The above was a discussion during the 7.0rc1 period, things might be ironed out now that we use 7.0 final.

Hope this helps.
 
Old 11-23-2011, 01:36 PM   #9
devilboy09
Member
 
Registered: Nov 2011
Location: Iran
Distribution: Debian, CentOS, LFS, CloudLinux
Posts: 377

Original Poster
Rep: Reputation: 10
i compiled the 1.1.4 version with --disable-nis option and it went well.
here's the source of 1.1.4 version, in case anyone needs it:
http://mirror.nexcess.net/kernel.org...s/pam/library/

and the documentation:
http://mirror.nexcess.net/kernel.org...documentation/
 
  


Reply



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
[SOLVED] PAM in linux drManhattan Linux - Newbie 7 05-23-2011 11:03 AM
Linux PAM:How can the PAM operation be logged?? ono1331 Linux - Newbie 13 06-30-2010 12:51 PM
PAM module:passwd:- how many character validate by pam library amit_pansuria Linux - General 3 10-21-2008 01:19 AM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-22-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:53 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
Open Source Consulting | Domain Registration