# echo $LIBRARY_PATH /lib:/usr/lib:/usr/kerberos/lib root@evy:/usr/local/src/php-4.3.10# gcc -v -o conftest -g -O2 -L/usr/lib -L/lib -Wl,-rpath,/usr/kerberos/lib -L/usr/kerberos/lib conftest.c -lc-client -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.1 -ldb-4.1 -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lpam Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux Thread model: posix gcc version 3.3.2 20040108 (Red Hat Linux 3.3.2-6) /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 conftest.c -quiet -dumpbase conftest.c -auxbase conftest -g -O2 -version -o /tmp/ccKQxyfd.s GNU C version 3.3.2 20040108 (Red Hat Linux 3.3.2-6) (i386-redhat-linux) compiled by GNU C version 3.3.2 20040108 (Red Hat Linux 3.3.2-6). GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=129016 ignoring nonexistent directory "/usr/i386-redhat-linux/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/include /usr/include End of search list. as -V -Qy -o /tmp/ccGGK1jf.o /tmp/ccKQxyfd.s GNU assembler version 2.14.90.0.6 (i386-redhat-linux) using BFD version 2.14.90.0.6 20030820 /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -o conftest /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/crtbegin.o -L/usr/lib -L/lib -L/usr/kerberos/lib -L/usr/lib/gcc-lib/i386-redhat-linux/3.3.2 -L/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../.. -rpath /usr/kerberos/lib /tmp/ccGGK1jf.o -lc-client -lcrypt -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.1 -ldb-4.1 -lcurl -lbz2 -lz -lssl -lcrypto -lresolv -lm -ldl -lnsl -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lpam -lgcc -lgcc_eh -lc -lgcc -lgcc_eh /usr/lib/gcc-lib/i386-redhat-linux/3.3.2/crtend.o /usr/lib/crtn.o /usr/bin/ld: cannot find -lpam collect2: ld returned 1 exit status