PHP 5.3 ./configure --with-curl problem

[email protected] (Alina Quereilhac)
Newsgroups php.install
Message-ID <[email protected]>
Hello,
          I am trying to install PHP 5.3 from source on OS RH ( arch
x86_64 ) using ./configure --with-curl and i get the following error
in the config.log

configure:27042: checking for curl_easy_perform in -lcurl
configure:27061: gcc -o conftest -g -O2 -fvisibility=hidden
-Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64
-Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
conftest.c -lcurl  -lcurl -lm -ldl -lnsl  -lxml2 -lz -lm -lcurl -ldl
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz
1>&5
/usr/bin/ld: skipping incompatible /usr/lib/libkrb5.so when searching for -lkrb5
/usr/bin/ld: skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5
/usr/bin/ld: cannot find -lkrb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 27050 "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 curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }

As i read the problem could be do to a mismatch in the library
versions for 64 bits, i tried the suggested solution:

ln -sf /usr/lib64/libkrb5.so /usr/lib/libkrb5.so
ln -sf /usr/lib64/libkrb5.a /usr/lib/libkrb5.a

Then the errors "/usr/bin/ld: skipping incompatible
/usr/lib/libkrb5.so when searching for -lkrb5" and "/usr/bin/ld:
skipping incompatible /usr/lib/libkrb5.a when searching for -lkrb5"
stopped appearing but i still get the "/usr/bin/ld: cannot find
-lkrb5" error.

Does anybody know what could be the problem?

Thanks in advance.
Alina.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.