There's a problem when compiling OpenPAM's code with the specs in the title. I've noticed that Zoulas has touched pam_debug_log.c and pam_mod_misc.h a bit, dating 2004/12/12, and they work fine here. I created a patch to include the actual Gentoo/FreeBSD's patch, but with these two updated files. I wonder if it works fine on Gentoo/FreeBSD as well. The patch goes below.
Created attachment 80059 [details, diff] openpam-20050201-gentoo.patch
Created attachment 80060 [details, diff] openpam-gcc-3.4.5.patch I'm attaching a patch with the specific char which should be replaced by const char, from where gcc 3.4.5 complains.
Applied incremental patch.