Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35059 - Emerge on pam_krb5-1.0 fails
Summary: Emerge on pam_krb5-1.0 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PAM Gentoo Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 28810 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-12-04 07:42 UTC by Rens
Modified: 2004-07-16 02:01 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to include errno.h in pam_krb5_auth.c (pam_krb5-1.0-pam_krb5_auth.c.diff,344 bytes, patch)
2004-01-03 14:59 UTC, Wes Kurdziolek
Details | Diff
Patch to include errno.h in support.c (pam_krb5-1.0-support.c.diff,344 bytes, patch)
2004-01-03 15:00 UTC, Wes Kurdziolek
Details | Diff
Patch to fix up the ebuild (pam_krb5-1.0.ebuild.patch,274 bytes, patch)
2004-01-03 15:01 UTC, Wes Kurdziolek
Details | Diff
Correct ebuild patch (pam_krb5-1.0.ebuild.patch,324 bytes, patch)
2004-01-03 15:35 UTC, Wes Kurdziolek
Details | Diff
Updated ebuild that includes epatch line for patch to correct compile failure (pam_krb5-1.0-r1.ebuild,810 bytes, text/plain)
2004-06-09 12:35 UTC, Brandon Edens
Details
Patch that adds missing headers to support.c and pam_krb5_auth.c (pam_krb5-1.0-gentoo-fix.diff,575 bytes, patch)
2004-06-09 12:37 UTC, Brandon Edens
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rens 2003-12-04 07:42:24 UTC
I have a freshly installed Gentoo machine. I just installed OpenLDAP, Samba3, 
Kerebos5 (libs and tools), lsdap and nss pam modules and now I want install the 
kerebos5 pam module. Unfortunately it fails, see my output. I dont know if I am 
making a mistake but I decided to report it anyways. Greets and thanks!


Reproducible: Always
Steps to Reproduce:
1. Install Nentoo :)
2. Install OpenLDAP and Samba3
3. Emerge pam_krb5-1.0
Actual Results:  
This happened:

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)


:)

Expected Results:  
Build a pam module for Kerebos5


Utopia DEV # emerge -s pam_krb5
Searching...
[ Results for search key : pam_krb5 ]
[ Applications found : 1 ]

*  app-crypt/pam_krb5
      Latest version available: 1.0
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 12 kB
      Homepage:    http://www.fcusack.com/
      Description: Pam module for MIT Kerberos V


Utopia DEV # emerge pam_krb5
Calculating dependencies ...done!
>>> emerge (1 of 1) app-crypt/pam_krb5-1.0 to /
>>> Downloading http://gentoo.oregonstate.edu/distfiles/pam_krb5-1.0.tar.gz
--02:47:13--  http://gentoo.oregonstate.edu/distfiles/pam_krb5-1.0.tar.gz
           => `/usr/portage/distfiles/pam_krb5-1.0.tar.gz'
Resolving gentoo.oregonstate.edu... 128.193.0.3
Connecting to gentoo.oregonstate.edu[128.193.0.3]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13,107 [application/x-tar]

100%
[===============================================================================
==================================================>] 13,107        40.83K/s

02:47:14 (40.61 KB/s) - `/usr/portage/distfiles/pam_krb5-1.0.tar.gz' saved 
[13107/13107]

>>> md5 src_uri ;-) pam_krb5-1.0.tar.gz
>>> Unpacking source...
>>> Unpacking pam_krb5-1.0.tar.gz to /var/tmp/portage/pam_krb5-1.0/work
>>> Source unpacked.
 * Applying pam_krb5-1.0-
gentoo.diff...                                                                  
                                                              [ ok ]
gcc -c -O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -
I/usr/include pam_krb5_auth.c
pam_krb5_auth.c: In function `pam_sm_authenticate':
pam_krb5_auth.c:72: warning: passing arg 2 of `pam_get_user' from incompatible 
pointer type
pam_krb5_auth.c:77: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:129: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:148: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:166: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c: In function `pam_sm_setcred':
pam_krb5_auth.c:291: warning: assignment discards qualifiers from pointer 
target type
pam_krb5_auth.c:295: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:300: warning: passing arg 3 of `pam_get_item' from incompatible 
pointer type
pam_krb5_auth.c:418: `errno' undeclared (first use in this function)
pam_krb5_auth.c:418: (Each undeclared identifier is reported only once
pam_krb5_auth.c:418: for each function it appears in.)
make: *** [pam_krb5_auth.o] Error 1

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 20, Exitcode 2
!!! (no error message)
Comment 1 Shawn Leas 2003-12-16 07:14:08 UTC
One hack is to temporarily place "#include <errno.h>" in /usr/include/stdio.h.

Don't leave it there, though.
Comment 2 Wes Kurdziolek 2004-01-03 14:59:53 UTC
Created attachment 23104 [details, diff]
Patch to include errno.h in pam_krb5_auth.c

This fixes the indicated problem: failure to include errno.h in
pam_krb5_auth.c. Two more patches are forthcoming; one for support.c which is
also missing errno.h, and one for the ebuild to put the patches in place.
Comment 3 Wes Kurdziolek 2004-01-03 15:00:34 UTC
Created attachment 23105 [details, diff]
Patch to include errno.h in support.c

As promised, patch to include errno.h in support.c
Comment 4 Wes Kurdziolek 2004-01-03 15:01:16 UTC
Created attachment 23106 [details, diff]
Patch to fix up the ebuild

As promised, patch to fix the 1.0 ebuild
Comment 5 Wes Kurdziolek 2004-01-03 15:35:06 UTC
Created attachment 23112 [details, diff]
Correct ebuild patch

Old ebuild patch was incorrect from an earlier version of my fix; this is
correct
Comment 6 Michael Farnbach 2004-02-17 21:03:25 UTC
perchance we should just move to pam_krb5 1.3? I compiled it and it works where the 1.0 did not (even after the patch was applied).
Comment 7 Michael Farnbach 2004-02-17 21:04:06 UTC
perchance we should just move to pam_krb5 1.3? I compiled it and it works where the 1.0 did not (even after the patch was applied).
Comment 8 Guy Van Sanden 2004-02-29 13:27:07 UTC
It seems to compile for me (with the patches)
Comment 9 David Dynerman 2004-03-02 09:43:06 UTC
The posted patches and ebuild worked fine for me too.

What's the hold up guys?  This is a major problem for anyone building a site that uses PAM.

It shouldn't take 2 months to get a completed ebuild into the distribution -- this should get added ASAP.
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2004-03-15 12:03:14 UTC
*** Bug 28810 has been marked as a duplicate of this bug. ***
Comment 11 K. Posern 2004-04-07 02:45:45 UTC
Hi.

I am new to gentoo and have (nearly) the same problem - just for me it is line 23 instead of 20 ?!:

pam_krb5_auth.c:418: error: `errno' undeclared (first use in this function)
pam_krb5_auth.c:418: error: (Each undeclared identifier is reported only once
pam_krb5_auth.c:418: error: for each function it appears in.)
make: *** [pam_krb5_auth.o] Error 1

!!! ERROR: app-crypt/pam_krb5-1.0 failed.
!!! Function src_compile, Line 23, Exitcode 2
!!! (no error message)

---------

So why are these patches available not added to the gentoo emerge package?!
Or the other way round: When will they be added?
And until then everyone has to apply the patches here handish by themselves?!

Greetings, tormen.
Comment 12 Scott Beck 2004-05-27 01:01:20 UTC
more than 5 months and nothing has been done....
Comment 13 Brandon Edens 2004-06-09 12:35:39 UTC
Created attachment 32991 [details]
Updated ebuild that includes epatch line for patch to correct compile failure

Features an epatch line to apply a fix to files support.c and pam_krb5_auth
that prevents pam_krb5 from compiling.
Brandon
Comment 14 Brandon Edens 2004-06-09 12:37:34 UTC
Created attachment 32992 [details, diff]
Patch that adds missing headers to support.c and pam_krb5_auth.c

This is the patch used by the pam_krb5-1.0-r1.ebuild.
Comment 15 David Dynerman 2004-07-15 12:12:14 UTC
What is the hold up here?

I did an emerge on pam_krb5 on ppc, and it STILL has the SAME BUG.

Common Gentoo devs - a patch has been posted, tested and found to be working...why is this taking so long to integerate -- 7 months now???

This is ridiculous - either integrate the patch or let us know how we can contribute it to the main tree.  Your users are doing everything they can to help Gentoo's development, but when stuff like this just sits around it's very frustrating.
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2004-07-15 12:49:27 UTC
Done.
Comment 17 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-15 13:46:17 UTC
sorry about the delay, but very few of us do anything with kerberos, and so properly testing it so we can put it in is very hard. I believe we have only one or two devs that do anything with kerberos, and more devs there wouldn't hurt i think.
Comment 18 Jose Gonzalez Gomez 2004-07-16 01:13:06 UTC
Could you please take a look at http://bugs.gentoo.org/show_bug.cgi?id=51837 ? It's also related to Kerberos and it's been almost two months since it was opened.

By the way, I'm just curious about this... from what I've been reading it seems that the so called LDAPv3 (Kerberos for authentication+LDAP for authorization information+SASL authentication to LDAP+DIGEST MD5 mandatory mechanism) is the sensible way to go when setting up a central authentication and authorization server, with centralized user management, for installations with more than a few users and/or machines. That's why I tried pam_krb5. But from what you tell us, it seems that Kerberos doesn't have that much attention from the developers.

I'm trying to do Gentoo for a living and from my point of view things like Kerberos are very important if you want to sell Gentoo to a medium/big sized company. So I think details like this are the difference that could make Gentoo become a possible corporate solution, or make it a toy with relative spreading due to its improved performance and ease of management thanks to portage.

Please take this as constructive criticism from somebody who would like to make Gentoo even better than it is.

By the way, I'm working in a howto about this issue (right now in spanish). If there is enough interest I would be happy to donate it to the Gentoo documentation, if that helps to have more users/devs involved in this.

Best regards
Comment 19 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-07-16 01:39:34 UTC
jose: it's possible to mix and match ldap configurations to suit your environment. as an example, at work (I do gentoo for money too) my setup is pure LDAPv3, all running over SSL/TLS. pam_ldap and nss_ldap provide all the data needed, incl. nfs automounts (for home directories). My ldap also supplies data to Samba as a PDC + fileserver for windows.

This environment runs MacOSX, SGI Irix, Windows XP/2K, FreeBSD, and multiple distributions of Linux (no fewer than 6 distinct flavours at last count).
Comment 20 Jose Gonzalez Gomez 2004-07-16 02:01:16 UTC
Robin,

I first went that way, using pam_ldap/nss_ldap, but then I found about Kerberos. In theory Kerberos/LDAP (pam_krb5/nss_ldap) can provide single sign-on, and that's why I gave a try to it. I must say I'm quite new to linux/unix admin so I'm exploring all these posibilities so I can offer an informed decission to any possible client.

By the way... maybe we are going a bit off topic? Maybe we could take this to private or gentoo-user/gentoo-dev?