Jump to content

Recommended Posts

I compiled and built PHP on Ubuntu and CentOS, but failed(when running ./configure). It said like this:

 

 

There is something wrong. Please check config.log for more information. 
 

 

Then I checked the config.log, but got no idea to solve this problem.

 

This is my command line:

 

 

 

./configure --prefix=/home/root/php --with-config-file-path=/home/root/php/etc --with-config-file-scan-dir=/home/root/php/etc/ext --with-fpm-log=/home/root/log/php/php-fpm.log --with-fpm-pid=/home/root/var/php-fpm.pid --enable-bcmath --enable-fastcgi --enable-fpm --enable-gd-native-ttf --enable-mbstring --enable-shmop --enable-soap --enable-sockets --enable-sysvsem --enable-pcntl --enable-zip --with-gd=/home/root/env/output/tmp/php/output/gd/output --with-openssl=/home/root/env/output/tmp/php/output/openssl/output --with-zlib=/home/root/env/output/tmp/php/output/zlib/output --with-pear --with-curlwrappers --with-xmlrpc --with-curl=/home/root/env/output/tmp/php/output/libcurl/output --with-mcrypt=/home/root/env/output/tmp/php/output/libmcrypt/output --with-t1lib=/home/root/env/output/tmp/php/output/t1lib/output --with-freetype-dir=/home/root/env/output/tmp/php/output/freetype/output --with-jpeg-dir=/home/root/env/output/tmp/php/output/libjpeg/output --with-png-dir=/home/root/env/output/tmp/php/output/libpng/output --with-libxml-dir=/home/root/env/output/tmp/php/output/libxml2/output --with-mysql=/home/root/env/output/tmp/php/output/mysql/output --with-mysqli=/home/root/env/output/tmp/php/output/mysql/output/bin/mysql_config
 

 

These are the last lines of the config.log:

 

 

 

configure:26486: checking for curl_easy_perform in -lcurl
configure:26505: gcc -o conftest -g -O2  -Wl,-rpath,/home/root/env/output/tmp/php/output/libcurl/output/lib -L/home/root/env/output/tmp/php/output/libcurl/output/lib  -Wl,-rpath,/home/root/env/output/tmp/php/output/openssl/output/lib -L/home/root/env/output/tmp/php/output/openssl/output/lib -Wl,-rpath,/home/root/env/output/tmp/php/output/zlib/output/lib -L/home/root/env/output/tmp/php/output/zlib/output/lib -Wl,-rpath,/home/root/env/output/tmp/php/output/libcurl/output/lib -L/home/root/env/output/tmp/php/output/libcurl/output/lib -lcurl conftest.c -lcurl  -lcurl -lz -lssl -lcrypto -lrt -lresolv -lm -ldl -lnsl  -lrt -lxml2 -lz -lm -lcurl 1>&5
/home/root/env/output/tmp/php/output/libcurl/output/lib/libcurl.a(strerror.o): In function `Curl_idn_strerror':
strerror.c:(.text+0x463): undefined reference to `idna_strerror'
/home/root/env/output/tmp/php/output/libcurl/output/lib/libcurl.a(url.o): In function `Curl_disconnect':
url.c:(.text+0xb55): undefined reference to `idn_free'
url.c:(.text+0xb71): undefined reference to `idn_free'
/home/root/env/output/tmp/php/output/libcurl/output/lib/libcurl.a(url.o): In function `fix_hostname':
url.c:(.text+0x4c11): undefined reference to `stringprep_check_version'
url.c:(.text+0x4c2f): undefined reference to `idna_to_ascii_lz'
url.c:(.text+0x4c37): undefined reference to `stringprep_locale_charset'
url.c:(.text+0x4c71): undefined reference to `idna_to_unicode_lzlz'
url.c:(.text+0x4cbe): undefined reference to `tld_check_lz'
url.c:(.text+0x4cdf): undefined reference to `idn_free'
url.c:(.text+0x4ce8): undefined reference to `tld_strerror'
/home/root/env/output/tmp/php/output/libcurl/output/lib/libcurl.a(ldap.o): In function `Curl_ldap':
ldap.c:(.text+0xb5): undefined reference to `ldap_url_parse'
ldap.c:(.text+0xfd): undefined reference to `ldap_set_option'
ldap.c:(.text+0x10e): undefined reference to `ldap_set_option'
ldap.c:(.text+0x16e): undefined reference to `ldap_set_option'
ldap.c:(.text+0x193): undefined reference to `ldap_set_option'
ldap.c:(.text+0x1b2): undefined reference to `ldap_init'
ldap.c:(.text+0x1dc): undefined reference to `ldap_set_option'
ldap.c:(.text+0x20e): undefined reference to `ldap_simple_bind_s'
ldap.c:(.text+0x25d): undefined reference to `ldap_search_s'
ldap.c:(.text+0x28e): undefined reference to `ldap_first_entry'
ldap.c:(.text+0x2b4): undefined reference to `ldap_get_dn'
ldap.c:(.text+0x322): undefined reference to `ldap_first_attribute'
ldap.c:(.text+0x340): undefined reference to `ldap_get_values_len'
ldap.c:(.text+0x486): undefined reference to `ldap_value_free_len'
ldap.c:(.text+0x4b7): undefined reference to `ldap_memfree'
ldap.c:(.text+0x4cb): undefined reference to `ldap_next_attribute'
ldap.c:(.text+0x4e1): undefined reference to `ldap_memfree'
ldap.c:(.text+0x4fe): undefined reference to `ldap_next_entry'
ldap.c:(.text+0x525): undefined reference to `ldap_set_option'
ldap.c:(.text+0x538): undefined reference to `ldap_err2string'
ldap.c:(.text+0x569): undefined reference to `ldap_msgfree'
ldap.c:(.text+0x59a): undefined reference to `ldap_free_urldesc'
ldap.c:(.text+0x5b1): undefined reference to `ldap_init'
ldap.c:(.text+0x61b): undefined reference to `ldap_unbind_s'
ldap.c:(.text+0x665): undefined reference to `ber_free'
ldap.c:(.text+0x671): undefined reference to `ldap_err2string'
ldap.c:(.text+0x69d): undefined reference to `ldap_err2string'
ldap.c:(.text+0x6dc): undefined reference to `ldap_set_option'
ldap.c:(.text+0x702): undefined reference to `ldap_simple_bind_s'
ldap.c:(.text+0x714): undefined reference to `ldap_err2string'
ldap.c:(.text+0x768): undefined reference to `ldap_err2string'
ldap.c:(.text+0x77e): undefined reference to `ldap_err2string'
collect2: ld returned 1 exit status
configure: failed program was:
#line 26494 "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; }
 
Link to comment
https://forums.phpfreaks.com/topic/275304-how-to-compile-and-build-php-on-linux/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.