WN

WN (https://www.wn.se/forum/index.php)
-   Serversidans teknologier (https://www.wn.se/forum/forumdisplay.php?f=4)
-   -   Kompilera PHP med cURL (https://www.wn.se/forum/showthread.php?t=1047287)

jayzee 2011-03-23 07:45

Kompilera PHP med cURL
 
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

Magnus_A 2011-03-23 08:19

Blir det bättre om du kompilerar SASL2 med --with-ldap=DIR ?

jayzee 2011-03-23 09:32

Citat:

Ursprungligen postat av Magnus_A (Inlägg 20399013)
Blir det bättre om du kompilerar SASL2 med --with-ldap=DIR ?

Hej Magnus, tyvärr inte - SASL2 kompilerar och allt ser bra ut dock när man försöker konfigurera PHP så uppstår felet igen. Detta känns lite som hönan och ägget..

Magnus_A 2011-03-23 13:21

Hittade denna, kanske har bäring på ditt problem:
http://lists.alioth.debian.org/piper...er/000145.html

jayzee 2011-03-23 19:43

Citat:

Ursprungligen postat av Magnus_A (Inlägg 20399080)
Hittade denna, kanske har bäring på ditt problem:
http://lists.alioth.debian.org/piper...er/000145.html

Det var precis vad jag menade med hönan och ägget :)


Alla tider är GMT +2. Klockan är nu 17:44.

Programvara från: vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Svensk översättning av: Anders Pettersson