(I'm trying to compile patched PAM for debian-pure64 from i386 source) I got the patched pam_0.76.tar.gz and unpacked it in /usr/local cd'ed to /usr/local/pam-0.76.orig/Linux-PAM and ran ./configure.. Seemed to go OK.. When I ran make I got errors: pan64:/usr/local/pam-0.76.orig/Linux-PAM# make rm -f security ln -sf . security make -C modules all make[1]: Entering directory `/usr/local/pam-0.76.orig/Linux-PAM/modules' building the static modutil library make -C pammodutil all make[2]: Entering directory `/usr/local/pam-0.76.orig/Linux-PAM/modules/pammodutil' mkdir -p static gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -ansi -D_POSIX_SOURCE -pedantic -I./include -I/usr/local/pam-0.76.orig/Linux-PAM/libpam/include -I/usr/local/pam-0.76.orig/Linux-PAM -I/usr/local/pam-0.76.orig/Linux-PAM/libpamc/include -fPIC -DLIBPAM_VERSION_MAJOR=0 -DLIBPAM_VERSION_MINOR=76 -c modutil_cleanup.c -o static/modutil_cleanup.o gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -ansi -D_POSIX_SOURCE -pedantic -I./include -I/usr/local/pam-0.76.orig/Linux-PAM/libpam/include -I/usr/local/pam-0.76.orig/Linux-PAM -I/usr/local/pam-0.76.orig/Linux-PAM/libpamc/include -fPIC -DLIBPAM_VERSION_MAJOR=0 -DLIBPAM_VERSION_MINOR=76 -c modutil_getpwnam.c -o static/modutil_getpwnam.o gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -ansi -D_POSIX_SOURCE -pedantic -I./include -I/usr/local/pam-0.76.orig/Linux-PAM/libpam/include -I/usr/local/pam-0.76.orig/Linux-PAM -I/usr/local/pam-0.76.orig/Linux-PAM/libpamc/include -fPIC -DLIBPAM_VERSION_MAJOR=0 -DLIBPAM_VERSION_MINOR=76 -c modutil_getpwuid.c -o static/modutil_getpwuid.o ar cr libpammodutil.a static/modutil_cleanup.o static/modutil_getpwnam.o static/modutil_getpwuid.o ranlib libpammodutil.a make[2]: Leaving directory `/usr/local/pam-0.76.orig/Linux-PAM/modules/pammodutil' modules sources available are: pam_access pam_deny pam_ftp pam_lastlog pam_mail pam_nologin pam_radius pam_securetty pam_tally pam_userdb pam_cracklib pam_env pam_group pam_limits pam_mkhomedir pam_permit pam_rhosts pam_shells pam_time pam_warn pam_debug pam_filter pam_issue pam_listfile pam_motd pam_pwdb pam_rootok pam_stress pam_unix pam_wheel :-------- make[2]: Entering directory `/usr/local/pam-0.76.orig/Linux-PAM/modules/pam_access' mkdir -p ./dynamic gcc -Wall -Wwrite-strings -Wpointer-arith -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wshadow -Dlinux -ansi -D_POSIX_SOURCE -pedantic -I./include -I/usr/local/pam-0.76.orig/Linux-PAM/libpam/include -I/usr/local/pam-0.76.orig/Linux-PAM -I/usr/local/pam-0.76.orig/Linux-PAM/libpamc/include -DDEFAULT_CONF_FILE=\"/etc/security/access.conf\" -I../pammodutil/include -DPAM_DYNAMIC -c pam_access.c -o dynamic/pam_access.o gcc -shared -Xlinker -x -o pam_access.so dynamic/pam_access.o -lc -L../pammodutil -lpammodutil /usr/bin/ld: dynamic/pam_access.o: relocation R_X86_64_32S can not be used when making a shared object; recompile with -fPIC dynamic/pam_access.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [pam_access.so] Error 1 make[2]: Leaving directory `/usr/local/pam-0.76.orig/Linux-PAM/modules/pam_access' make[1]: *** [all] Error 1 make[1]: Leaving directory `/usr/local/pam-0.76.orig/Linux-PAM/modules' make: *** [modules] Error 2 pan64:/usr/local/pam-0.76.orig/Linux-PAM# All I can think of is to try again and do ./configure -L/lib64 because of the /lib64 symlink to /lib... Any ideas? Norv