/usr/bin/ld: cannot find -lpam

I'm trying to compile sudo on RHEL 4.8 and during the make I get the this error. Does anyone know what package I'm missing?

gcc -o sudo sudo_auth.o pam.o mkstemps.o ldap.o exec_pty.o get_pty.o iolog.o audit.o boottime.o check.o env.o exec.o getspwuid.o gettime.o goodpath.o fileops.o find_path.o interfaces.o lbuf.o logging.o parse.o parse_args.o set_perms.o sudo.o sudo_edit.o sudo_nss.o tgetpass.o -L. -lsudo -lutil -lpam -ldl -lldap -lz
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
make: *** [sudo] Error 1

I have the following PAM rpms installed:
pam-0.77-66.26.ppc
pam_passwdqc-0.7.5-2.ppc
pam_ccreds-3-3.rhel4.2.ppc
pam-devel-0.77-66.26.ppc64
pam-0.77-66.26.ppc64
pam_passwdqc-0.7.5-2.ppc64
pam_smb-1.1.7-5.ppc64
pam_ccreds-3-3.rhel4.2.ppc64
pam_krb5-2.1.17-8.el4.ppc64
pam_smb-1.1.7-5.ppc
pam_krb5-2.1.17-8.el4.ppc

Probably you are missing pam-devel

Well pam-devel is installed but it's the 64-bit libraries.

If I install the 32 bit rpm then this should solve my issue.

Thanks