Hejsa
Jeg har spurgt i dk.edb.system.unix men fik ikke noget svar, så jeg
prøver lige her, måske er det et mere relevant sted.
Jeg har nogle komplieringsproblemer med PHP på en RedHat9, det lader til at
gå galt med -lpam og pam_start(). Dette er bare et lille uddrag af
config.log - Er der nogen, der kan give et hint til, hvad der skal til for
at få det til at spille?
configure:39930: checking for pam_start in -lpam
configure:39949: gcc -o
conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -lpam -lgd -lfreetype -lpng -lz -ljpeg -lz -lz -lssl -lcrypto -l
resolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: cannot find -lpam
collect2: ld returned 1 exit status
configure: failed program was:
#line 39938 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char pam_start();
int main() {
pam_start()
; return 0; }
configure:39977: checking for crypt in -lcrypt
configure:39996: gcc -o
conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib
conftest.c -lcrypt -lgd -lfreetype -lpng -lz -ljpeg -lz -lz -lssl -lcrypto
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
configure:40396: checking whether SSL libraries are needed for c-client
configure:40526: gcc -o
conftest -g -O2 -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr
/kerberos/lib -L/usr/kerberos/lib
conftest.c -lc-client -lcrypt -lgd -lfreetype -lpng -lz -ljpeg -lz -lz -ls
sl -lcrypto -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk
5crypto -lcom_err 1>&5
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa4d7): In function `ssl_onceonlyinit':
> the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa2f4): In function `checkpw':
> undefined reference to `pam_start'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa30b): In function `checkpw':
> undefined reference to `pam_authenticate'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa322): In function `checkpw':
> undefined reference to `pam_setcred'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa335): In function `checkpw':
> undefined reference to `pam_end'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa351): In function `checkpw':
> undefined reference to `pam_acct_mgmt'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa368): In function `checkpw':
> undefined reference to `pam_setcred'
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../libc-client.a(osdep.o)(.te
xt+0xa37f): In function `checkpw':
> undefined reference to `pam_end'
collect2: ld returned 1 exit status
configure: failed program was:
#line 40501 "configure"
#include "confdefs.h"
void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
auth_gssapi_valid();
return 0;
Kompiling parametre:
'./configure' \
'--with-mysql=/usr' \
'--with-apxs=/usr/local/bin/apxs' \
'--enable-trans-sid' \
'--with-gd=/usr/local' \
'--enable-gd-native-ttf' \
'--with-zlib-dir' \
'--with-png-dir' \
'--enable-gd-imgstrttf' \
'--with-openssl=/usr/local' \
'--enable-ftp' \
'--with-freetype-dir' \
'--enable-exif' \
'--with-regex=system' \
'--with-ttf' \
'--with-jpeg-dir' \
'--enable-track-vars' \
'--with-xml' \
'--enable-magic-quotes' \
'--enable-safe-mode' \
'--with-config-file-path=/usr/local/lib' \
'--with-gettext' \
'--with-dom' \
'--with-imap=/usr/local' \
'--with-kerberos' \
'--with-expat-dir=/usr'
--
Take Care
Kim Emax - master|minds - Vi tænker IT for dig...
http://www.masterminds.dk -
http://www.emax.dk