compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -


i using following configuration:

./configure --with-libdir=lib --with-config-file-path=/etc/ --with-config-file-scan-dir=/etc/php5/mods-available --with-pear --enable-cli --enable-intl --with-icu-dir=/opt/icu4c --enable-bcmath --disable-cgi --enable-fpm --with-zlib --with-openssl --with-kerberos --with-bz2 --with-curl --enable-ftp --enable-zip --enable-exif --with-gd --with-jpeg-dir=/usr/lib64 --with-freetype-dir=/usr/lib64 --enable-gd-native-ttf --with-gettext --with-gmp --with-mhash --with-iconv --with-imap --with-mysql --with-imap-ssl --enable-sockets --enable-soap --with-xmlrpc --with-mcrypt --enable-mbstring --enable-embedded-mysqli --with-mysqli=mysqlnd --with-mysql-sock --with-sqlite3 --with-pdo-mysql --with-pdo-mysql=mysqlnd --with-pdo-sqlite --enable-phar --enable-pcntl 

and make fails after sometime giving following error:

collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] error 1 

i searched , docs tell using make clean, did not , ‘-lresolve’ in makefile

following happens before error:

/tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:279: undefined reference `utext_getnativeindex_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:280: undefined reference `utext_clone_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:285: undefined reference `utext_setnativeindex_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:286: undefined reference `utext_getnativeindex_55' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::settext(utext*, uerrorcode&)': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:128: undefined reference `utext_clone_55' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::operator==(icu_55::breakiterator const&) const': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:84: undefined reference `utext_equals_55' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::codepointbreakiterator()': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:37: undefined reference `icu_55::breakiterator::breakiterator()' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:40: undefined reference `utext_openuchars_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:37: undefined reference `icu_55::breakiterator::~breakiterator()' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::operator=(php::codepointbreakiterator const&)': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:58: undefined reference `utext_clone_55' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::codepointbreakiterator(php::codepointbreakiterator const&)': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:44: undefined reference `icu_55::breakiterator::~breakiterator()' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::clone() const': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:93: undefined reference `icu_55::umemory::operator new(unsigned long)' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:93: undefined reference `icu_55::umemory::operator delete(void*)' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::createbufferclone(void*, int&, uerrorcode&)': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:255: undefined reference `icu_55::umemory::operator new(unsigned long)' /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:255: undefined reference `icu_55::umemory::operator delete(void*)' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::getutext(utext*, uerrorcode&) const': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:109: undefined reference `utext_clone_55' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::~codepointbreakiterator()': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:67: undefined reference `icu_55::breakiterator::~breakiterator()' ext/intl/breakiterator/.libs/codepointiterator_internal.o: in function `php::codepointbreakiterator::~codepointbreakiterator()': /tmp/kitchen/cache/php-5.6.20/ext/intl/breakiterator/codepointiterator_internal.cpp:73: undefined reference `icu_55::umemory::operator delete(void*)' ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ztin3php22codepointbreakiteratore[_ztin3php22codepointbreakiteratore]+0x10): undefined reference `typeinfo icu_55::breakiterator' ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ztvn3php22codepointbreakiteratore[_ztvn3php22codepointbreakiteratore]+0xa8): undefined reference `icu_55::breakiterator::getrulestatus() const' ext/intl/breakiterator/.libs/codepointiterator_internal.o:(.data.rel.ro._ztvn3php22codepointbreakiteratore[_ztvn3php22codepointbreakiteratore]+0xb0): undefined reference `icu_55::breakiterator::getrulestatusvec(int*, int, uerrorcode&)' ext/intl/idn/.libs/idn.o: in function `php_intl_idn_to': /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:233: undefined reference `uidna_idntoascii_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:235: undefined reference `uidna_idntounicode_55' ext/intl/idn/.libs/idn.o: in function `php_intl_idn_to_46': /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:147: undefined reference `uidna_openuts46_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:155: undefined reference `uidna_nametoascii_utf8_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:200: undefined reference `uidna_close_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:158: undefined reference `uidna_nametounicodeutf8_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/idn/idn.c:163: undefined reference `uidna_close_55' ext/intl/spoofchecker/.libs/spoofchecker_class.o: in function `spoofchecker_clone_obj': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_class.c:135: undefined reference `uspoof_clone_55' ext/intl/spoofchecker/.libs/spoofchecker_class.o: in function `spoofchecker_object_destroy': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_class.c:195: undefined reference `uspoof_close_55' ext/intl/spoofchecker/.libs/spoofchecker_create.o: in function `zim_spoofchecker___construct': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_create.c:40: undefined reference `uspoof_open_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_create.c:47: undefined reference `uspoof_getchecks_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_create.c:48: undefined reference `uspoof_setchecks_55' ext/intl/spoofchecker/.libs/spoofchecker_main.o: in function `zim_spoofchecker_issuspicious': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:41: undefined reference `uspoof_checkutf8_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:44: undefined reference `u_errorname_55' ext/intl/spoofchecker/.libs/spoofchecker_main.o: in function `zim_spoofchecker_areconfusable': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:74: undefined reference `uspoof_areconfusableutf8_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:77: undefined reference `u_errorname_55' ext/intl/spoofchecker/.libs/spoofchecker_main.o: in function `zim_spoofchecker_setallowedlocales': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:104: undefined reference `uspoof_setallowedlocales_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:107: undefined reference `u_errorname_55' ext/intl/spoofchecker/.libs/spoofchecker_main.o: in function `zim_spoofchecker_setchecks': /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:127: undefined reference `uspoof_setchecks_55' /tmp/kitchen/cache/php-5.6.20/ext/intl/spoofchecker/spoofchecker_main.c:130: undefined reference `u_errorname_55' collect2: error: ld returned 1 exit status make: *** [sapi/cli/php] error 1 

any appreciated. list of packages installed before compile:

git wget libbz2-dev libgmp-dev re2c libvpx-dev libxslt-dev libtidy-dev libreadline6 libreadline6-dev libfreetype6-dev libcurl4-gnutls-dev libldap2-dev libjpeg-dev libjpeg62-dev libpng-dev libbz2-dev libicu-dev libaspell-dev libgd-dev libgmp3-dev php-mail-mime libmcrypt-dev libc-client2007e-dev openssl libssl-dev libxml2-dev libxpm-dev libhiredis-dev 

ok, looks hit bug here.

i had icu installed source on machine , did mention it's path:

--with-icu-dir=/opt/icu4c 

however, still picking package 'libicu-dev', causing issue. should have picked path mentioned only, if there package that.

nevertheless, uninstalled 'libicu-dev' package , installation complete.


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -