Hej,
försöker nämligen kompilera PHP 5.3.6 på min burk med cURL stöd, dock kommer man inte förbi configure-steget ens:
Citat:
checking for cURL support... yes
checking if we should use cURL for url streams... no
checking for cURL in default path... found in /usr
checking for cURL 7.10.5 or greater... libcurl 7.21.0
checking for SSL support in libcurl... yes
checking how to run the C preprocessor... gcc -E
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
|
innehållet i config.log avslöjar att något är fel med libldap i relation till cyrus SASL2 (kan nämnas att jag har själv kompilerat cyrus SASL2 innan):
Citat:
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_errdetail@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_errstring@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_dispose@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_setprop@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_getprop@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_decode@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_client_step@SASL2'
/usr/lib64/libldap_r-2.4.so.2: undefined reference to `sasl_client_new@SASL2'
collect2: ld returned 1 exit status
configure: failed program was:
#line 28308 "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; }
|
skippar jag --with-curl i configure så slipper jag detta problem.
Vad göra?
Cyrus SASL2 kompilerades på följande sätt:
Citat:
./configure \
CFLAGS="-march=core2 -mtune=generic -O2 -pipe" \
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe" \
--prefix=/usr \
--with-plugindir=/usr/lib/sasl2 \
--with-openssl \
--with-des \
--enable-anon \
--enable-plain \
--enable-login \
--enable-sql \
--disable-krb4 \
--with-mysql=/usr/include/mysql \
--without-pam \
--without-saslauthd \
--without-pwcheck
|