Hi all!, when trying to compile Linux-PAM from last svn revision, I got the following error:

============================================================================================
executing libungif with option build (in /build/tmp/libungif-4.1.4)

executing libusb with option build (in /build/tmp/libusb-0.1.12)

executing lzo with option build (in /build/tmp/lzo-2.03)

executing mhash with option build (in /build/tmp/mhash-0.9.9)

executing mktemp with option build (in /build/tmp/mktemp-1.5)

executing ncurses with option build (in /build/tmp/ncurses-5.6)

executing pax-utils with option build (in /build/tmp/pax-utils-0.1.15)

executing paxctl with option build (in /build/tmp/paxctl-0.5)

executing pcre with option build (in /build/tmp/pcre-7.9)

executing popt with option build (in /build/tmp/popt-1.7)

executing readline with option build (in /build/tmp/readline-5.2)

executing tcp_wrappers with option build (in /build/tmp/tcp_wrappers_7.6)

executing uClibc with option build (in /build/tmp/uClibc-0.9.19)

executing which with option build (in /build/tmp/which-2.14)

executing zlib with option build (in /build/tmp/zlib-1.2.3)

executing Linux-PAM with option build (in /build/tmp/Linux-PAM-1.0.4)
ERROR
/build/scripts/Linux-PAM build failed
check log file /build/tmp/LOGS/build/Linux-PAM for details
make: *** [build] Error 1

============================================================================================

============================================================================================
root:/build# cat /build/tmp/LOGS/build/Linux-PAM
configure: WARNING: unrecognized options: --enable-static-libpam, --with-cracklib
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-linux-gnuoldld
checking host system type... i686-pc-linux-gnuoldld
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/build/tmp/Linux-PAM-1.0.4':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: Entering directory `/build/tmp/Linux-PAM-1.0.4'
make[1]: *** No targets specified and no makefile found.  Stop.
make[1]: Leaving directory `/build/tmp/Linux-PAM-1.0.4'

============================================================================================

============================================================================================
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.63.  Invocation command line was

  $ ./configure --enable-static-libpam --with-mailspool=/var/mail --enable-read-both-confs --sysconfdir=/etc --with-cracklib --mandir=/usr/share/man --sbindir=/lib/security --enable-securedir=/lib/security --disable-nls

## --------- ##
## Platform. ##
## --------- ##

hostname = etacarinae
uname -m = i686
uname -r = 2.6.31.9-174.fc12.i686
uname -s = Linux
uname -v = #1 SMP Mon Dec 21 05:33:33 UTC 2009

/usr/bin/uname -p = unknown
/bin/uname -X     =

/bin/arch              = i686
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/bin
PATH: /tools/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2198: checking for a BSD-compatible install
configure:2266: result: /usr/bin/install -c
configure:2277: checking whether build environment is sane
configure:2320: result: yes
configure:2345: checking for a thread-safe mkdir -p
configure:2384: result: /bin/mkdir -p
configure:2397: checking for gawk
configure:2413: found /usr/bin/gawk
configure:2424: result: gawk
configure:2435: checking whether make sets $(MAKE)
configure:2457: result: yes
configure:2650: checking build system type
configure:2668: result: i686-pc-linux-gnuoldld
configure:2690: checking host system type
configure:2705: result: i686-pc-linux-gnuoldld
configure:2920: checking for style of include used by make
configure:2948: result: GNU
configure:3018: checking for gcc
configure:3034: found /usr/bin/gcc
configure:3045: result: gcc
configure:3277: checking for C compiler version
configure:3285: gcc --version >&5
gcc (GCC) 4.1.2
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3289: $? = 0
configure:3296: gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr --localstatedir=/var --enable-shared --enable-CONFIG_SHELL=/bin/bash --enable-threads=posix --libexecdir=/usr/lib --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,objc --disable-nls --with-gnu-ld --disable-werror i686-pc-linux-gnu
Thread model: posix
gcc version 4.1.2
configure:3300: $? = 0
configure:3307: gcc -V >&5
gcc: '-V' option must have argument
configure:3311: $? = 1
configure:3334: checking for C compiler default output file name
configure:3356: gcc -mtune=i686 -march=i686   conftest.c  >&5
as: error while loading shared libraries: /usr/lib/libz.so.1: cannot restore segment prot after reloc: Permission denied
configure:3360: $? = 1
configure:3398: result:
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "Linux-PAM"
| #define VERSION "1.0.4"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3404: error: in `/build/tmp/Linux-PAM-1.0.4':
configure:3407: error: C compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnuoldld
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-mtune=i686 -march=i686'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnuoldld
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run aclocal-1.10'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run tar'
AR=''
AUTOCONF='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run autoconf'
AUTOHEADER='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run autoheader'
AUTOMAKE='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run automake-1.10'
AWK='gawk'
BROWSER=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-mtune=i686 -march=i686'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_GENERATE_PDF_FALSE=''
ENABLE_GENERATE_PDF_TRUE=''
ENABLE_REGENERATE_MAN_FALSE=''
ENABLE_REGENERATE_MAN_TRUE=''
EXEEXT=''
FGREP=''
FO2PDF=''
GMSGFMT=''
GMSGFMT_015=''
GREP=''
HAVE_AUDIT_TTY_STATUS_FALSE=''
HAVE_AUDIT_TTY_STATUS_TRUE=''
HAVE_KEY_MANAGEMENT=''
HAVE_KEY_MANAGEMENT_FALSE=''
HAVE_KEY_MANAGEMENT_TRUE=''
HAVE_LIBCRACK_FALSE=''
HAVE_LIBCRACK_TRUE=''
HAVE_LIBDB_FALSE=''
HAVE_LIBDB_TRUE=''
HAVE_LIBSELINUX_FALSE=''
HAVE_LIBSELINUX_TRUE=''
HAVE_UNSHARE_FALSE=''
HAVE_UNSHARE_TRUE=''
HAVE_VERSIONING_FALSE=''
HAVE_VERSIONING_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INTLLIBS=''
INTL_MACOSX_LIBS=''
LD=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBAUDIT=''
LIBCRACK=''
LIBCRYPT=''
LIBDB=''
LIBDL=''
LIBICONV=''
LIBINTL=''
LIBNSL=''
LIBOBJS=''
LIBPRELUDE_CFLAGS=''
LIBPRELUDE_CONFIG=''
LIBPRELUDE_CONFIG_PREFIX=''
LIBPRELUDE_LDFLAGS=''
LIBPRELUDE_LIBS=''
LIBPRELUDE_PREFIX=''
LIBPRELUDE_PTHREAD_CFLAGS=''
LIBS=''
LIBSELINUX=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /build/tmp/Linux-PAM-1.0.4/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='Linux-PAM'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PAM_READ_BOTH_CONFS=''
PATH_SEPARATOR=':'
PIE_CFLAGS=''
PIE_LDFLAGS=''
POSUB=''
RANLIB=''
SCONFIGDIR=''
SECUREDIR=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STATIC_MODULES_FALSE=''
STATIC_MODULES_TRUE='#'
STRIP=''
USE_NLS=''
VERSION='1.0.4'
WITH_DEBUG=''
WITH_PAMLOCKING=''
XGETTEXT=''
XGETTEXT_015=''
XMLCATALOG=''
XMLLINT=''
XML_CATALOG_FILE=''
XSLTPROC=''
YACC=''
YFLAGS=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnuoldld'
build_alias=''
build_cpu='i686'
build_os='linux-gnuoldld'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnuoldld'
host_alias=''
host_cpu='i686'
host_os='linux-gnuoldld'
host_vendor='pc'
htmldir='${docdir}'
includedir='/usr/include/security'
infodir='${datarootdir}/info'
install_sh='$(SHELL) /build/tmp/Linux-PAM-1.0.4/install-sh'
libc_cv_fpie=''
libdir='/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
lt_ECHO='echo'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pam_cv_ld_as_needed=''
pam_xauth_path=''
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='/lib/security'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE "Linux-PAM"
#define VERSION "1.0.4"

configure: exit 77

============================================================================================


as I'm using Fedora 12, the solution for

as: error while loading shared libraries: /usr/lib/libz.so.1: cannot restore segment prot after reloc: Permission denied

is

/usr/sbin/setenforce 0


regards

--
WARPTROSSE {The knowledge of a man belongs to all the humanity}