LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Linux-PAM (http://www.linuxquestions.org/questions/linux-from-scratch-13/linux-pam-915141/)

devilboy09 11-23-2011 12:48 PM

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!!!

corp769 11-23-2011 12:59 PM

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?

druuna 11-23-2011 01:09 PM

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 :)

devilboy09 11-23-2011 01:10 PM

Code:

glibc-headers-2.14-5.x86_64
is this package contained in blfs?
i think i installed in lfs!!!

devilboy09 11-23-2011 01:16 PM

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/ !!!

corp769 11-23-2011 01:16 PM

Quote:

Originally Posted by druuna (Post 4531911)
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. :)

spiky0011 11-23-2011 01:36 PM

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

druuna 11-23-2011 02:09 PM

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.

devilboy09 11-23-2011 02:36 PM

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/


All times are GMT -5. The time now is 12:44 AM.