[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
use-pam patch problem
From: |
Robin Cook |
Subject: |
use-pam patch problem |
Date: |
Sat, 07 Jan 2006 10:31:26 -0600 |
I am trying to compile coreutils 5.93 with the patch to enable pam use.
I am getting the below error.
make[3]: Entering directory `/usr/src/coreutils-5.93/src'
gcc -O -march=athlon-mp -mmmx -mfpmath=sse -msse -m3dnow -pipe -DPIC
-fPIC -O3 -z combreloc -s -o su -lpam_misc
su.o ../lib/libcoreutils.a ../lib/libcoreutils.a -lcrypt -ldl -lpam
-lpam_misc
su.o: In function `pam_copyenv':
su.c:(.text+0xe4): undefined reference to `xputenv'
collect2: ld returned 1 exit status
make[3]: *** [su] Error 1
make[2]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/coreutils-5.93/src'
make[2]: Leaving directory `/usr/src/coreutils-5.93/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/coreutils-5.93'
The only place in the patch this appears is here
+#ifdef USE_PAM
+static int caught=0;
+/* Signal handler for parent process later */
+static void su_catch_sig(int sig)
+{
+ ++caught;
+}
+
+int
+pam_copyenv (pam_handle_t *pamh)
+{
+ char **env;
+
+ env = pam_getenvlist(pamh);
+ if(env) {
+ while(*env) {
+ xputenv(*env);
+ env++;
+ }
+ }
+ return(0);
+}
+#endif
What needs to be changed to make this work again?
Thanks
Robin Cook
signature.asc
Description: This is a digitally signed message part
- use-pam patch problem,
Robin Cook <=